throws MetadataResolutionException
{
String key = new ProjectVersionMetadataModel.KeyBuilder().withRepository( repoId ).withNamespace(
namespace ).withProjectId( projectId ).withId( projectVersion ).build();
ProjectVersionMetadataModel projectVersionMetadataModel =
getProjectVersionMetadataModelEntityManager().get( key );
if ( projectVersionMetadataModel == null )
{
logger.debug(
"getProjectVersion repoId: '{}', namespace: '{}', projectId: '{}', projectVersion: {} -> not found",
repoId, namespace, projectId, projectVersion );
return null;
}
ProjectVersionMetadata projectVersionMetadata =
getModelMapper().map( projectVersionMetadataModel, ProjectVersionMetadata.class );
logger.debug( "getProjectVersion repoId: '{}', namespace: '{}', projectId: '{}', projectVersion: {} -> {}",
repoId, namespace, projectId, projectVersion, projectVersionMetadata );
projectVersionMetadata.setCiManagement( projectVersionMetadataModel.getCiManagement() );
projectVersionMetadata.setIssueManagement( projectVersionMetadataModel.getIssueManagement() );
projectVersionMetadata.setOrganization( projectVersionMetadataModel.getOrganization() );
projectVersionMetadata.setScm( projectVersionMetadataModel.getScm() );
// FIXME complete collections !!
// facets
final List<MetadataFacetModel> metadataFacetModels = new ArrayList<MetadataFacetModel>();