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 booleancheckStatus(CollectModel collectModel, TransactionStatus... transactionStatus)voidcloseTransaction(java.lang.String transactionId)voidcreateCollect(TransactionDto transactionDto)create a collect modeljava.lang.StringcreateRequestId()java.util.Optional<CollectModel>findCollect(java.lang.String id)return collection according to idvoidreplaceCollect(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)
-
-