Class CollectService
java.lang.Object
fr.gouv.vitam.collect.internal.core.service.CollectService
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCollectService
(MetadataRepository metadataRepository, WorkspaceClientFactory workspaceCollectClientFactory, FormatIdentifierFactory formatIdentifierFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBinaryInfoToQualifier
(DbObjectGroupModel dbObjectGroupModel, DataObjectVersionType usage, int version, InputStream uploadedInputStream) detectFileFormat
(File fileToDetect) getArchiveUnitModel
(String unitId) javax.ws.rs.core.Response
getBinaryByUsageAndVersion
(CollectUnitModel unitModel, DataObjectVersionType usage, int version) getDbObjectGroup
(CollectUnitModel unitModel) getInputStreamFromWorkspace
(String containerName, String fileName) pushStreamToWorkspace
(String containerName, InputStream uploadedInputStream, String fileName) updateOrSaveObjectGroup
(CollectUnitModel unitModel, DataObjectVersionType usage, int version, ObjectDto objectDto)
-
Field Details
-
UNABLE_TO_FIND_ARCHIVE_UNIT_ID
- See Also:
-
-
Constructor Details
-
CollectService
public CollectService(MetadataRepository metadataRepository, WorkspaceClientFactory workspaceCollectClientFactory, FormatIdentifierFactory formatIdentifierFactory)
-
-
Method Details
-
getArchiveUnitModel
- Throws:
CollectInternalException
-
updateOrSaveObjectGroup
public ObjectDto updateOrSaveObjectGroup(CollectUnitModel unitModel, DataObjectVersionType usage, int version, ObjectDto objectDto) throws CollectInternalException - Throws:
CollectInternalException
-
getDbObjectGroup
public DbObjectGroupModel getDbObjectGroup(CollectUnitModel unitModel) throws CollectInternalException - Throws:
CollectInternalException
-
addBinaryInfoToQualifier
public void addBinaryInfoToQualifier(DbObjectGroupModel dbObjectGroupModel, DataObjectVersionType usage, int version, InputStream uploadedInputStream) throws CollectInternalException - Throws:
CollectInternalException
-
pushStreamToWorkspace
public String pushStreamToWorkspace(String containerName, InputStream uploadedInputStream, String fileName) throws CollectInternalException - Throws:
CollectInternalException
-
getInputStreamFromWorkspace
public InputStream getInputStreamFromWorkspace(String containerName, String fileName) throws CollectInternalException - Throws:
CollectInternalException
-
detectFileFormat
public Optional<FormatIdentifierResponse> detectFileFormat(File fileToDetect) throws CollectInternalException - Throws:
CollectInternalException
-
getBinaryByUsageAndVersion
public javax.ws.rs.core.Response getBinaryByUsageAndVersion(CollectUnitModel unitModel, DataObjectVersionType usage, int version) throws StorageNotFoundException, CollectInternalException
-