Class CollectHelper
java.lang.Object
fr.gouv.vitam.collect.internal.core.helpers.CollectHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkVersion
(int version, int lastVersion) static ProjectDto
convertProjectModeltoProjectDto
(ProjectModel projectModel) static TransactionDto
convertTransactionModelToTransactionDto
(TransactionModel transactionModel) static void
createGraph
(com.google.common.collect.ListMultimap<String, String> multimap, Set<String> originatingAgencies, Map<String, String> ogs, com.fasterxml.jackson.databind.JsonNode result) static DataObjectVersionType
fetchUsage
(String usageString) static DbQualifiersModel
findQualifier
(List<DbQualifiersModel> qualifiers, DataObjectVersionType usage) static FormatIdentifierResponse
getFirstPronomFormat
(List<FormatIdentifierResponse> formats) static int
getLastVersion
(DbQualifiersModel qualifierModelToUpdate) static DbVersionsModel
getObjectVersionsModel
(DbObjectGroupModel dbObjectGroupModel, DataObjectVersionType usage, int version) static ManifestContext
mapProjectDtoToManifestContext
(ProjectDto projectDto) static ManifestContext
mapTransactionDtoToManifestContext
(TransactionDto transactionDto, ProjectDto projectDto) static File
writeToTemporaryFile
(InputStream inputStream, String extension)
-
Method Details
-
fetchUsage
- Throws:
CollectInternalException
-
getFirstPronomFormat
-
getObjectVersionsModel
public static DbVersionsModel getObjectVersionsModel(DbObjectGroupModel dbObjectGroupModel, DataObjectVersionType usage, int version) -
getLastVersion
-
findQualifier
public static DbQualifiersModel findQualifier(List<DbQualifiersModel> qualifiers, DataObjectVersionType usage) -
checkVersion
public static void checkVersion(int version, int lastVersion) -
createGraph
-
convertProjectModeltoProjectDto
-
convertTransactionModelToTransactionDto
public static TransactionDto convertTransactionModelToTransactionDto(TransactionModel transactionModel) -
mapProjectDtoToManifestContext
-
mapTransactionDtoToManifestContext
public static ManifestContext mapTransactionDtoToManifestContext(TransactionDto transactionDto, ProjectDto projectDto) -
writeToTemporaryFile
public static File writeToTemporaryFile(InputStream inputStream, String extension) throws IOException - Throws:
IOException
-