Class CollectService
- java.lang.Object
-
- fr.gouv.vitam.collect.internal.service.CollectService
-
public class CollectService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CollectService(CollectRepository collectRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkStatus(CollectModel collectModel, TransactionStatus... transactionStatus)
void
closeTransaction(java.lang.String transactionId)
void
createCollect(TransactionDto transactionDto)
create a collect modeljava.lang.String
createRequestId()
java.util.Optional<CollectModel>
findCollect(java.lang.String id)
return collection according to idvoid
replaceCollect(CollectModel collectModel)
-
-
-
Constructor Detail
-
CollectService
public CollectService(CollectRepository collectRepository)
-
-
Method Detail
-
createCollect
public void createCollect(TransactionDto transactionDto) throws CollectException
create a collect model- Throws:
CollectException
- exception thrown in case of error
-
findCollect
public java.util.Optional<CollectModel> findCollect(java.lang.String id) throws CollectException
return collection according to id- Parameters:
id
- model id to find- Returns:
- Optional
- Throws:
CollectException
- exception thrown in case of error
-
closeTransaction
public void closeTransaction(java.lang.String transactionId) throws CollectException
- Throws:
CollectException
-
replaceCollect
public void replaceCollect(CollectModel collectModel) throws CollectException
- Throws:
CollectException
-
createRequestId
public java.lang.String createRequestId()
-
checkStatus
public boolean checkStatus(CollectModel collectModel, TransactionStatus... transactionStatus)
-
-