Class SecurityProfileService
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.core.security.profile.SecurityProfileService
-
- All Implemented Interfaces:
VitamAutoCloseable
,java.lang.AutoCloseable
public class SecurityProfileService extends java.lang.Object implements VitamAutoCloseable
-
-
Constructor Summary
Constructors Constructor Description SecurityProfileService(MongoDbAccessAdminImpl dbConfiguration, VitamCounterService vitamCounterService, FunctionalBackupService functionalBackupService)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
RequestResponse<SecurityProfileModel>
createSecurityProfiles(java.util.List<SecurityProfileModel> securityProfileList)
RequestResponse<SecurityProfileModel>
deleteSecurityProfile(java.lang.String securityProfileId)
java.util.Optional<SecurityProfileModel>
findOneByIdentifier(java.lang.String identifier)
RequestResponseOK<SecurityProfileModel>
findSecurityProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl)
void
setContextService(ContextService contextService)
RequestResponse<SecurityProfileModel>
updateSecurityProfile(java.lang.String identifier, com.fasterxml.jackson.databind.JsonNode queryDsl)
-
-
-
Constructor Detail
-
SecurityProfileService
public SecurityProfileService(MongoDbAccessAdminImpl dbConfiguration, VitamCounterService vitamCounterService, FunctionalBackupService functionalBackupService)
Constructor- Parameters:
dbConfiguration
-vitamCounterService
-functionalBackupService
-
-
-
Method Detail
-
createSecurityProfiles
public RequestResponse<SecurityProfileModel> createSecurityProfiles(java.util.List<SecurityProfileModel> securityProfileList) throws VitamException
- Throws:
VitamException
-
findOneByIdentifier
public java.util.Optional<SecurityProfileModel> findOneByIdentifier(java.lang.String identifier) throws ReferentialException, InvalidParseOperationException
-
findSecurityProfiles
public RequestResponseOK<SecurityProfileModel> findSecurityProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException
-
updateSecurityProfile
public RequestResponse<SecurityProfileModel> updateSecurityProfile(java.lang.String identifier, com.fasterxml.jackson.databind.JsonNode queryDsl) throws VitamException
- Throws:
VitamException
-
deleteSecurityProfile
public RequestResponse<SecurityProfileModel> deleteSecurityProfile(java.lang.String securityProfileId) throws VitamException
- Throws:
VitamException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceVitamAutoCloseable
-
setContextService
public void setContextService(ContextService contextService)
-
-