Search in sources :

Example 1 with ArticleItemIdentifier

use of org.ambraproject.rhino.identity.ArticleItemIdentifier in project rhino by PLOS.

the class ArticleCrudServiceImpl method getManuscriptMetadata.

@Override
public RepoObjectMetadata getManuscriptMetadata(ArticleIngestion ingestion) {
    Doi articleDoi = Doi.create(ingestion.getArticle().getDoi());
    ArticleIngestionIdentifier ingestionId = ArticleIngestionIdentifier.create(articleDoi, ingestion.getIngestionNumber());
    ArticleItemIdentifier articleItemId = ingestionId.getItemFor();
    ArticleFileIdentifier manuscriptId = ArticleFileIdentifier.create(articleItemId, "manuscript");
    RepoObjectMetadata objectMetadata = assetCrudService.getArticleItemFile(manuscriptId);
    return objectMetadata;
}
Also used : ArticleIngestionIdentifier(org.ambraproject.rhino.identity.ArticleIngestionIdentifier) RepoObjectMetadata(org.plos.crepo.model.metadata.RepoObjectMetadata) ArticleItemIdentifier(org.ambraproject.rhino.identity.ArticleItemIdentifier) ArticleFileIdentifier(org.ambraproject.rhino.identity.ArticleFileIdentifier) Doi(org.ambraproject.rhino.identity.Doi)

Aggregations

ArticleFileIdentifier (org.ambraproject.rhino.identity.ArticleFileIdentifier)1 ArticleIngestionIdentifier (org.ambraproject.rhino.identity.ArticleIngestionIdentifier)1 ArticleItemIdentifier (org.ambraproject.rhino.identity.ArticleItemIdentifier)1 Doi (org.ambraproject.rhino.identity.Doi)1 RepoObjectMetadata (org.plos.crepo.model.metadata.RepoObjectMetadata)1