Class SecurityProfileModel
- java.lang.Object
-
- fr.gouv.vitam.common.model.administration.SecurityProfileModel
-
public class SecurityProfileModel extends java.lang.Object
Data Transfer Object Model of security profile (DTO).
-
-
Constructor Summary
Constructors Constructor Description SecurityProfileModel()
Default constructor for jacksonSecurityProfileModel(java.lang.String id, java.lang.String identifier, java.lang.String name, boolean fullAccess, java.util.Set<java.lang.String> permissions)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getFullAccess()
java.lang.String
getId()
java.lang.String
getIdentifier()
Get the identifier of the security profilejava.lang.String
getName()
Get name of the security profilejava.util.Set<java.lang.String>
getPermissions()
Gets the set of permissions of the security profile.java.lang.Integer
getVersion()
void
setFullAccess(java.lang.Boolean fullAccess)
Sets / unsets full access to all permissions for security profile.void
setId(java.lang.String id)
void
setIdentifier(java.lang.String identifier)
Set the identifier of the security profile.void
setName(java.lang.String name)
Set or change the security profile namevoid
setPermissions(java.util.Set<java.lang.String> permissions)
Sets the permission set of the security profile.void
setVersion(java.lang.Integer version)
-
-
-
Constructor Detail
-
SecurityProfileModel
public SecurityProfileModel()
Default constructor for jackson
-
SecurityProfileModel
public SecurityProfileModel(java.lang.String id, java.lang.String identifier, java.lang.String name, boolean fullAccess, java.util.Set<java.lang.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 Detail
-
getId
public java.lang.String getId()
- Returns:
- id
-
setId
public void setId(java.lang.String id)
- Parameters:
id
- value to set
-
getVersion
public java.lang.Integer getVersion()
- Returns:
- version
-
setVersion
public void setVersion(java.lang.Integer version)
- Parameters:
version
-
-
getIdentifier
public java.lang.String getIdentifier()
Get the identifier of the security profile- Returns:
- String
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
Set the identifier of the security profile. This value must be unique.- Parameters:
identifier
-
-
getName
public java.lang.String getName()
Get name of the security profile- Returns:
- name as String
-
setName
public void setName(java.lang.String name)
Set or change the security profile name- Parameters:
name
- as String to set
-
getFullAccess
public java.lang.Boolean 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
public void setFullAccess(java.lang.Boolean fullAccess)
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
public java.util.Set<java.lang.String> getPermissions()
Gets the set of permissions of the security profile.- Returns:
- the
-
setPermissions
public void setPermissions(java.util.Set<java.lang.String> permissions)
Sets the permission set of the security profile. Should not be defined when fullAccess is true- Parameters:
permissions
-
-
-