Class SecurityProfileModel
java.lang.Object
fr.gouv.vitam.common.model.administration.SecurityProfileModel
Data Transfer Object Model of security profile (DTO).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Get the identifier of the security profilegetName()
Get name of the security profileGets the set of permissions of the security profile.void
setFullAccess
(Boolean fullAccess) Sets / unsets full access to all permissions for security profile.void
void
setIdentifier
(String identifier) Set the identifier of the security profile.void
Set or change the security profile namevoid
setPermissions
(Set<String> permissions) Sets the permission set of the security profile.void
setVersion
(Integer version)
-
Constructor Details
-
SecurityProfileModel
public SecurityProfileModel()Default constructor for jackson -
SecurityProfileModel
public SecurityProfileModel(String id, String identifier, String name, boolean fullAccess, Set<String> permissions) Constructor- Parameters:
id
- unique identifieridentifier
- the identifier of the security profile. This value must be unique.name
- security profile namefullAccess
- defines whether security profile has full access to all permissions.permissions
- set of permissions of the security profile (should not be defined when fullAccess is true)
-
-
Method Details
-
getId
- Returns:
- id
-
setId
- Parameters:
id
- value to set
-
getVersion
- Returns:
- version
-
setVersion
- Parameters:
version
-
-
getIdentifier
Get the identifier of the security profile- Returns:
- String
-
setIdentifier
Set the identifier of the security profile. This value must be unique.- Parameters:
identifier
-
-
getName
Get name of the security profile- Returns:
- name as String
-
setName
Set or change the security profile name- Parameters:
name
- as String to set
-
getFullAccess
- Returns:
- true if security profile has full access to all permissions. false otherwise. When set to true, all permissions are granted and "Permissions" set is ignored and should not be set.
-
setFullAccess
Sets / unsets full access to all permissions for security profile. When set to true, all permissions are granted and "Permissions" set is ignored and should not be set.- Parameters:
fullAccess
-
-
getPermissions
Gets the set of permissions of the security profile.- Returns:
- the
-
setPermissions
Sets the permission set of the security profile. Should not be defined when fullAccess is true- Parameters:
permissions
-
-