use of org.orcid.jaxb.model.message.OrcidMessage in project ORCID-Source by ORCID.
the class T2OrcidApiServiceVersionedDelegatorImpl method addAffiliations.
@Override
public Response addAffiliations(UriInfo uriInfo, String orcid, OrcidMessage orcidMessage) {
checkAffiliationsSupport();
validateIncomingMessage(orcidMessage, orcid);
OrcidMessage upgradedMessage = upgradeMessage(orcidMessage);
return t2OrcidApiServiceDelegator.addAffiliations(uriInfo, orcid, upgradedMessage);
}
use of org.orcid.jaxb.model.message.OrcidMessage in project ORCID-Source by ORCID.
the class T2OrcidApiServiceVersionedDelegatorImpl method addExternalIdentifiers.
@Override
public Response addExternalIdentifiers(UriInfo uriInfo, String orcid, OrcidMessage orcidMessage) {
Response response = null;
validateIncomingMessage(orcidMessage, orcid);
OrcidMessage upgradedMessage = upgradeMessage(orcidMessage);
response = t2OrcidApiServiceDelegator.addExternalIdentifiers(uriInfo, orcid, upgradedMessage);
return downgradeAndValidateResponse(response);
}
use of org.orcid.jaxb.model.message.OrcidMessage in project ORCID-Source by ORCID.
the class T2OrcidApiServiceVersionedDelegatorImpl method updateBioDetails.
@Override
public Response updateBioDetails(UriInfo uriInfo, String orcid, OrcidMessage orcidMessage) {
Response response = null;
validateBioUpdateMessage(orcidMessage);
validateEmailAvailability(orcidMessage, orcid);
OrcidMessage upgradedMessage = upgradeMessage(orcidMessage);
response = t2OrcidApiServiceDelegator.updateBioDetails(uriInfo, orcid, upgradedMessage);
return downgradeAndValidateResponse(response);
}
use of org.orcid.jaxb.model.message.OrcidMessage in project ORCID-Source by ORCID.
the class T2OrcidApiServiceVersionedDelegatorImpl method updateFunding.
@Override
public Response updateFunding(UriInfo uriInfo, String orcid, OrcidMessage orcidMessage) {
validateIncomingMessage(orcidMessage, orcid);
OrcidMessage upgradedMessage = upgradeMessage(orcidMessage);
return t2OrcidApiServiceDelegator.updateFunding(uriInfo, orcid, upgradedMessage);
}
use of org.orcid.jaxb.model.message.OrcidMessage in project ORCID-Source by ORCID.
the class T2OrcidApiServiceVersionedDelegatorImpl method createProfile.
@Override
public Response createProfile(UriInfo uriInfo, OrcidMessage orcidMessage) {
Response response = null;
validateRegistrationMessage(orcidMessage);
OrcidMessage upgradedMessage = upgradeMessage(orcidMessage);
response = t2OrcidApiServiceDelegator.createProfile(uriInfo, upgradedMessage);
return response;
}
Aggregations