Class ContractHelper
java.lang.Object
fr.gouv.vitam.functional.administration.core.contract.ContractHelper
Common utils for contract services
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DbRequestResult
findByIdentifier
(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.
-
Constructor Details
-
ContractHelper
public ContractHelper()
-
-
Method Details
-
findByIdentifier
public static DbRequestResult findByIdentifier(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
-