use of org.orcid.core.exception.OrcidNoBioException in project ORCID-Source by ORCID.
the class MemberV2ApiServiceDelegatorImpl method viewBiography.
@Override
public Response viewBiography(String orcid) {
Biography bio = biographyManagerReadOnly.getBiography(orcid);
if (bio == null) {
throw new OrcidNoBioException();
}
orcidSecurityManager.checkAndFilter(orcid, bio, ScopePathType.ORCID_BIO_READ_LIMITED);
ElementUtils.setPathToBiography(bio, orcid);
return Response.ok(bio).build();
}
use of org.orcid.core.exception.OrcidNoBioException in project ORCID-Source by ORCID.
the class MemberV3ApiServiceDelegatorImpl method viewBiography.
@Override
public Response viewBiography(String orcid) {
Biography bio = biographyManagerReadOnly.getBiography(orcid);
if (bio == null) {
throw new OrcidNoBioException();
}
orcidSecurityManager.checkAndFilter(orcid, bio, ScopePathType.ORCID_BIO_READ_LIMITED);
ElementUtils.setPathToBiography(bio, orcid);
return Response.ok(bio).build();
}
Aggregations