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;
}
Aggregations