Interface CollectClient
-
- All Superinterfaces:
java.lang.AutoCloseable
,MockOrRestClient
,VitamAutoCloseable
- All Known Implementing Classes:
CollectClientMock
,CollectClientRest
public interface CollectClient extends MockOrRestClient
Collect Client Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.Response
addBinary(java.lang.String unitId, java.lang.String usage, java.lang.Integer version, java.io.InputStream inputStreamUploaded)
ADD Binary Consume and produce MediaType.APPLICATION_JSONRequestResponseOK<com.fasterxml.jackson.databind.JsonNode>
addObjectGroup(java.lang.String unitId, java.lang.String usage, java.lang.Integer version, com.fasterxml.jackson.databind.JsonNode objectJsonNode)
ADD Object Group Consume and produce MediaType.APPLICATION_JSONjavax.ws.rs.core.Response
closeTransaction(java.lang.String transactionId)
Close Transaction Consume and produce MediaType.APPLICATION_JSONRequestResponseOK<com.fasterxml.jackson.databind.JsonNode>
ingest(java.lang.String transactionId)
Generate SIP + Send to Vitam Consume and produce MediaType.APPLICATION_JSONRequestResponse<com.fasterxml.jackson.databind.JsonNode>
initTransaction(TransactionDto transactionDto)
Initialize a collect transaction Consume and produce MediaType.APPLICATION_JSONRequestResponseOK<com.fasterxml.jackson.databind.JsonNode>
uploadArchiveUnit(java.lang.String transactionId, com.fasterxml.jackson.databind.JsonNode unitJsonNode)
ADD Archive Unit Consume and produce MediaType.APPLICATION_JSON-
Methods inherited from interface fr.gouv.vitam.common.client.MockOrRestClient
checkStatus, checkStatus, close, consumeAnyEntityAndClose, getResourcePath, getServiceUrl
-
-
-
-
Method Detail
-
initTransaction
RequestResponse<com.fasterxml.jackson.databind.JsonNode> initTransaction(TransactionDto transactionDto) throws InvalidParseOperationException
Initialize a collect transaction Consume and produce MediaType.APPLICATION_JSON- Returns:
- RequestResponse
guid created for the transaction - Throws:
InvalidParseOperationException
- exception occurs when parse operation failed
-
uploadArchiveUnit
RequestResponseOK<com.fasterxml.jackson.databind.JsonNode> uploadArchiveUnit(java.lang.String transactionId, com.fasterxml.jackson.databind.JsonNode unitJsonNode) throws InvalidParseOperationException
ADD Archive Unit Consume and produce MediaType.APPLICATION_JSON- Returns:
- RequestResponse
Archive Unit saved - Throws:
InvalidParseOperationException
- exception occurs when parse operation failed
-
addObjectGroup
RequestResponseOK<com.fasterxml.jackson.databind.JsonNode> addObjectGroup(java.lang.String unitId, java.lang.String usage, java.lang.Integer version, com.fasterxml.jackson.databind.JsonNode objectJsonNode) throws InvalidParseOperationException
ADD Object Group Consume and produce MediaType.APPLICATION_JSON- Returns:
- RequestResponse
Archive Unit saved - Throws:
InvalidParseOperationException
- exception occurs when parse operation failed
-
addBinary
javax.ws.rs.core.Response addBinary(java.lang.String unitId, java.lang.String usage, java.lang.Integer version, java.io.InputStream inputStreamUploaded) throws InvalidParseOperationException
ADD Binary Consume and produce MediaType.APPLICATION_JSON- Returns:
- RequestResponse
Archive Unit saved - Throws:
InvalidParseOperationException
- exception occurs when parse operation failed
-
closeTransaction
javax.ws.rs.core.Response closeTransaction(java.lang.String transactionId) throws InvalidParseOperationException
Close Transaction Consume and produce MediaType.APPLICATION_JSON- Returns:
- RequestResponse
Archive Unit saved - Throws:
InvalidParseOperationException
- exception occurs when parse operation failed
-
ingest
RequestResponseOK<com.fasterxml.jackson.databind.JsonNode> ingest(java.lang.String transactionId) throws InvalidParseOperationException
Generate SIP + Send to Vitam Consume and produce MediaType.APPLICATION_JSON- Returns:
- RequestResponse
Archive Unit saved - Throws:
InvalidParseOperationException
- exception occurs when parse operation failed
-
-