Class TransactionService
- java.lang.Object
-
- fr.gouv.vitam.collect.internal.service.TransactionService
-
public class TransactionService extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
UNABLE_TO_FIND_ARCHIVE_UNIT_ID
-
Constructor Summary
Constructors Constructor Description TransactionService(CollectService collectService, CollectConfiguration collectConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBinaryInfoToQualifier(DbObjectGroupModel dbObjectGroupModel, DataObjectVersionType usage, int version, java.io.InputStream uploadedInputStream)
void
addQualifierToObjectGroups(DbObjectGroupModel objectGroup, DataObjectVersionType usage, int version, ObjectGroupDto objectGroupDto)
void
addVersionToObjectGroups(DbQualifiersModel qualifierModelToUpdate, DbObjectGroupModel objectGroup, DataObjectVersionType usage, int version, java.util.List<DbQualifiersModel> qualifiers, ObjectGroupDto objectGroupDto)
void
checkParameters(java.lang.String unitId, DataObjectVersionType usage, java.lang.Integer version)
ArchiveUnitModel
getArchiveUnitModel(java.lang.String unitId)
DbObjectGroupModel
getDbObjectGroup(ArchiveUnitModel archiveUnitModel)
DbFormatIdentificationModel
getFormatIdentification(java.lang.String transactionId, java.lang.String objectName)
java.lang.String
pushStreamToWorkspace(java.lang.String containerName, java.io.InputStream uploadedInputStream, java.lang.String fileName)
com.fasterxml.jackson.databind.JsonNode
saveArchiveUnitInMetaData(com.fasterxml.jackson.databind.JsonNode unitJsonDto)
ObjectGroupDto
saveObjectGroupInMetaData(ArchiveUnitModel archiveUnitModel, DataObjectVersionType usage, int version, ObjectGroupDto objectGroupDto)
-
-
-
Field Detail
-
UNABLE_TO_FIND_ARCHIVE_UNIT_ID
public static final java.lang.String UNABLE_TO_FIND_ARCHIVE_UNIT_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TransactionService
public TransactionService(CollectService collectService, CollectConfiguration collectConfiguration)
-
-
Method Detail
-
checkParameters
public void checkParameters(java.lang.String unitId, DataObjectVersionType usage, java.lang.Integer version)
-
getArchiveUnitModel
public ArchiveUnitModel getArchiveUnitModel(java.lang.String unitId) throws CollectException
- Throws:
CollectException
-
saveObjectGroupInMetaData
public ObjectGroupDto saveObjectGroupInMetaData(ArchiveUnitModel archiveUnitModel, DataObjectVersionType usage, int version, ObjectGroupDto objectGroupDto) throws CollectException
- Throws:
CollectException
-
addQualifierToObjectGroups
public void addQualifierToObjectGroups(DbObjectGroupModel objectGroup, DataObjectVersionType usage, int version, ObjectGroupDto objectGroupDto) throws CollectException
- Throws:
CollectException
-
addVersionToObjectGroups
public void addVersionToObjectGroups(DbQualifiersModel qualifierModelToUpdate, DbObjectGroupModel objectGroup, DataObjectVersionType usage, int version, java.util.List<DbQualifiersModel> qualifiers, ObjectGroupDto objectGroupDto) throws CollectException
- Throws:
CollectException
-
getDbObjectGroup
public DbObjectGroupModel getDbObjectGroup(ArchiveUnitModel archiveUnitModel) throws CollectException
- Throws:
CollectException
-
addBinaryInfoToQualifier
public void addBinaryInfoToQualifier(DbObjectGroupModel dbObjectGroupModel, DataObjectVersionType usage, int version, java.io.InputStream uploadedInputStream) throws CollectException
- Throws:
CollectException
-
pushStreamToWorkspace
public java.lang.String pushStreamToWorkspace(java.lang.String containerName, java.io.InputStream uploadedInputStream, java.lang.String fileName) throws CollectException
- Throws:
CollectException
-
saveArchiveUnitInMetaData
public com.fasterxml.jackson.databind.JsonNode saveArchiveUnitInMetaData(com.fasterxml.jackson.databind.JsonNode unitJsonDto) throws CollectException
- Throws:
CollectException
-
getFormatIdentification
public DbFormatIdentificationModel getFormatIdentification(java.lang.String transactionId, java.lang.String objectName) throws CollectException
- Throws:
CollectException
-
-