Class ContractHelper
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.contract.core.ContractHelper
-
public class ContractHelper extends java.lang.Object
Common utils for contract services
-
-
Constructor Summary
Constructors Constructor Description ContractHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DbRequestResult
findByIdentifier(java.lang.String identifier, FunctionalAdminCollections collection, MongoDbAccessReferential mongoAccess)
Find contracts by idenfierstatic void
setIdentifier(boolean slaveMode, AbstractContractModel cm, VitamCounterService vitamCounterService, SequenceType sequenceType)
Init idenfier in contract if slave not activated.
-
-
-
Method Detail
-
findByIdentifier
public static DbRequestResult findByIdentifier(java.lang.String identifier, FunctionalAdminCollections collection, MongoDbAccessReferential mongoAccess) throws InvalidParseOperationException, ReferentialException
Find contracts by idenfier- Parameters:
identifier
- identifiercollection
- mongo collection of the contractmongoAccess
- mongo access service- Returns:
- DbRequestResult
- Throws:
InvalidParseOperationException
ReferentialException
-
setIdentifier
public static void setIdentifier(boolean slaveMode, AbstractContractModel cm, VitamCounterService vitamCounterService, SequenceType sequenceType) throws ReferentialException
Init idenfier in contract if slave not activated.- Parameters:
slaveMode
- slaveModecm
- contractvitamCounterService
- counter servicesequenceType
- sequence collection- Throws:
ReferentialException
-
-