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