public class ArchiveUnitProfileServiceImpl extends Object implements ArchiveUnitProfileService
Modifier and Type | Field and Description |
---|---|
static String |
ARCHIVE_UNIT_PROFILE_IDENTIFIER_ALREADY_EXISTS_IN_DATABASE |
static String |
ARCHIVE_UNIT_PROFILE_IDENTIFIER_MUST_BE_STRING |
Constructor and Description |
---|
ArchiveUnitProfileServiceImpl(MongoDbAccessAdminImpl mongoAccess,
VitamCounterService vitamCounterService,
FunctionalBackupService functionalBackupService)
Constructor
|
ArchiveUnitProfileServiceImpl(MongoDbAccessAdminImpl mongoAccess,
VitamCounterService vitamCounterService,
FunctionalBackupService functionalBackupService,
boolean checkOntology)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
RequestResponse<ArchiveUnitProfileModel> |
createArchiveUnitProfiles(List<ArchiveUnitProfileModel> profileModelList)
Create a collections of profile After passing the validation steps.
|
RequestResponseOK<ArchiveUnitProfileModel> |
findArchiveUnitProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl)
find archive unit profiles by QueryDsl
|
ArchiveUnitProfileModel |
findByIdentifier(String id) |
RequestResponse |
updateArchiveUnitProfile(String id,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update an archive unit profile after passing validation steps :
Field modified :
- ActivationDate
- DesactivationDate
- LastUpdate
- Status
|
public static final String ARCHIVE_UNIT_PROFILE_IDENTIFIER_ALREADY_EXISTS_IN_DATABASE
public static final String ARCHIVE_UNIT_PROFILE_IDENTIFIER_MUST_BE_STRING
public ArchiveUnitProfileServiceImpl(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService, FunctionalBackupService functionalBackupService)
mongoAccess
- MongoDB clientvitamCounterService
- the vitam counter servicefunctionalBackupService
- the functional backup servicepublic ArchiveUnitProfileServiceImpl(MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService, FunctionalBackupService functionalBackupService, boolean checkOntology)
mongoAccess
- MongoDB clientvitamCounterService
- the vitam counter servicefunctionalBackupService
- the functional backup servicecheckOntology
- true or false to determine if ontology check is requiredpublic RequestResponse<ArchiveUnitProfileModel> createArchiveUnitProfiles(List<ArchiveUnitProfileModel> profileModelList) throws VitamException
ArchiveUnitProfileService
createArchiveUnitProfiles
in interface ArchiveUnitProfileService
profileModelList
- the list of profiles to be createdVitamException
- if in error occurs while validating contractspublic RequestResponseOK<ArchiveUnitProfileModel> findArchiveUnitProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException
ArchiveUnitProfileService
findArchiveUnitProfiles
in interface ArchiveUnitProfileService
queryDsl
- the query as a json to be executedReferentialException
- thrown if the query could not be executedInvalidParseOperationException
- thrown if the query could not be executedpublic RequestResponse updateArchiveUnitProfile(String id, com.fasterxml.jackson.databind.JsonNode queryDsl) throws VitamException
ArchiveUnitProfileService
updateArchiveUnitProfile
in interface ArchiveUnitProfileService
id
- identifier of the archive unit profile to updateVitamException
- if in error occurs while validating contractspublic void close()
close
in interface VitamAutoCloseable
close
in interface AutoCloseable
public ArchiveUnitProfileModel findByIdentifier(String id) throws ReferentialException, InvalidParseOperationException
Copyright © 2018 Vitam. All rights reserved.