Search in sources :

Example 16 with OrcidProfile

use of org.orcid.jaxb.model.message.OrcidProfile in project ORCID-Source by ORCID.

the class OrcidMessageVersionConverterImplV1_2_rc6ToV1_2_rc7 method downgradeMessage.

@Override
public OrcidMessage downgradeMessage(OrcidMessage orcidMessage) {
    if (orcidMessage == null) {
        return null;
    }
    orcidMessage.setMessageVersion(FROM_VERSION);
    OrcidProfile orcidProfile = orcidMessage.getOrcidProfile();
    downgradeProfile(orcidProfile);
    downgradeSearchResults(orcidMessage);
    return orcidMessage;
}
Also used : OrcidProfile(org.orcid.jaxb.model.message.OrcidProfile)

Example 17 with OrcidProfile

use of org.orcid.jaxb.model.message.OrcidProfile in project ORCID-Source by ORCID.

the class OrcidMessageVersionConverterImplV1_2_rc4ToV1_2_rc5 method upgradeMessage.

@Override
public OrcidMessage upgradeMessage(OrcidMessage orcidMessage) {
    if (orcidMessage == null) {
        return null;
    }
    orcidMessage.setMessageVersion(TO_VERSION);
    OrcidProfile orcidProfile = orcidMessage.getOrcidProfile();
    upgradeProfile(orcidProfile);
    return orcidMessage;
}
Also used : OrcidProfile(org.orcid.jaxb.model.message.OrcidProfile)

Example 18 with OrcidProfile

use of org.orcid.jaxb.model.message.OrcidProfile in project ORCID-Source by ORCID.

the class OrcidMessageVersionConverterImplV1_1ToV1_2_rc1 method downgradeMessage.

@Override
public OrcidMessage downgradeMessage(OrcidMessage orcidMessage) {
    if (orcidMessage == null) {
        return null;
    }
    orcidMessage.setMessageVersion(FROM_VERSION);
    OrcidProfile orcidProfile = orcidMessage.getOrcidProfile();
    downgradeProfile(orcidProfile);
    downgradeSearchResults(orcidMessage);
    return orcidMessage;
}
Also used : OrcidProfile(org.orcid.jaxb.model.message.OrcidProfile)

Example 19 with OrcidProfile

use of org.orcid.jaxb.model.message.OrcidProfile in project ORCID-Source by ORCID.

the class OrcidMessageVersionConverterImplV1_2_rc1ToV1_2_rc2 method downgradeMessage.

@Override
public OrcidMessage downgradeMessage(OrcidMessage orcidMessage) {
    if (orcidMessage == null) {
        return null;
    }
    orcidMessage.setMessageVersion(FROM_VERSION);
    OrcidProfile orcidProfile = orcidMessage.getOrcidProfile();
    downgradeProfile(orcidProfile);
    downgradeSearchResults(orcidMessage);
    return orcidMessage;
}
Also used : OrcidProfile(org.orcid.jaxb.model.message.OrcidProfile)

Example 20 with OrcidProfile

use of org.orcid.jaxb.model.message.OrcidProfile in project ORCID-Source by ORCID.

the class OrcidMessageVersionConverterImplV1_2_rc3ToV1_2_rc4 method downgradeMessage.

@Override
public OrcidMessage downgradeMessage(OrcidMessage orcidMessage) {
    if (orcidMessage == null) {
        return null;
    }
    orcidMessage.setMessageVersion(FROM_VERSION);
    OrcidProfile orcidProfile = orcidMessage.getOrcidProfile();
    downgradeProfile(orcidProfile);
    downgradeSearchResults(orcidMessage);
    return orcidMessage;
}
Also used : OrcidProfile(org.orcid.jaxb.model.message.OrcidProfile)

Aggregations

OrcidProfile (org.orcid.jaxb.model.message.OrcidProfile)241 Test (org.junit.Test)118 OrcidMessage (org.orcid.jaxb.model.message.OrcidMessage)77 Transactional (org.springframework.transaction.annotation.Transactional)50 OrcidBio (org.orcid.jaxb.model.message.OrcidBio)45 OrcidWork (org.orcid.jaxb.model.message.OrcidWork)43 DBUnitTest (org.orcid.test.DBUnitTest)43 Rollback (org.springframework.test.annotation.Rollback)40 OrcidWorks (org.orcid.jaxb.model.message.OrcidWorks)36 OrcidActivities (org.orcid.jaxb.model.message.OrcidActivities)35 Date (java.util.Date)27 PersonalDetails (org.orcid.jaxb.model.message.PersonalDetails)27 OrcidIdentifier (org.orcid.jaxb.model.message.OrcidIdentifier)25 WorkExternalIdentifier (org.orcid.jaxb.model.message.WorkExternalIdentifier)23 Affiliations (org.orcid.jaxb.model.message.Affiliations)22 FundingTitle (org.orcid.jaxb.model.message.FundingTitle)22 Title (org.orcid.jaxb.model.message.Title)22 Email (org.orcid.jaxb.model.message.Email)21 GivenNames (org.orcid.jaxb.model.message.GivenNames)21 OrcidHistory (org.orcid.jaxb.model.message.OrcidHistory)21