Class ContextModel
- java.lang.Object
-
- fr.gouv.vitam.common.model.administration.ContextModel
-
public class ContextModel extends java.lang.Object
Data Transfer Object Model of Context
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TAG_CREATION_DATE
static java.lang.String
TAG_ENABLE_CONTROL
static java.lang.String
TAG_IDENTIFIER
static java.lang.String
TAG_LAST_UPDATE
static java.lang.String
TAG_NAME
static java.lang.String
TAG_PERMISSIONS
static java.lang.String
TAG_SECURITY_PROFILE
static java.lang.String
TAG_STATUS
-
Constructor Summary
Constructors Constructor Description ContextModel()
empty constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getActivationdate()
java.lang.String
getCreationdate()
java.lang.String
getDeactivationdate()
java.lang.String
getId()
java.lang.String
getIdentifier()
java.lang.String
getLastupdate()
java.lang.String
getName()
java.util.List<PermissionModel>
getPermissions()
java.lang.String
getSecurityProfileIdentifier()
ContextStatus
getStatus()
java.lang.Integer
getVersion()
java.lang.Boolean
isEnablecontrol()
ContextModel
setActivationdate(java.lang.String activationdate)
ContextModel
setCreationdate(java.lang.String creationdate)
ContextModel
setDeactivationdate(java.lang.String deactivationdate)
void
setEnablecontrol(java.lang.Boolean enablecontrol)
void
setId(java.lang.String id)
ContextModel
setIdentifier(java.lang.String identifier)
ContextModel
setLastupdate(java.lang.String lastupdate)
void
setName(java.lang.String name)
void
setPermissions(java.util.List<PermissionModel> permissions)
ContextModel
setSecurityProfileIdentifier(java.lang.String securityProfileIdentifier)
void
setStatus(ContextStatus status)
void
setVersion(java.lang.Integer version)
-
-
-
Field Detail
-
TAG_SECURITY_PROFILE
public static final java.lang.String TAG_SECURITY_PROFILE
- See Also:
- Constant Field Values
-
TAG_LAST_UPDATE
public static final java.lang.String TAG_LAST_UPDATE
- See Also:
- Constant Field Values
-
TAG_CREATION_DATE
public static final java.lang.String TAG_CREATION_DATE
- See Also:
- Constant Field Values
-
TAG_NAME
public static final java.lang.String TAG_NAME
- See Also:
- Constant Field Values
-
TAG_STATUS
public static final java.lang.String TAG_STATUS
- See Also:
- Constant Field Values
-
TAG_ENABLE_CONTROL
public static final java.lang.String TAG_ENABLE_CONTROL
- See Also:
- Constant Field Values
-
TAG_IDENTIFIER
public static final java.lang.String TAG_IDENTIFIER
- See Also:
- Constant Field Values
-
TAG_PERMISSIONS
public static final java.lang.String TAG_PERMISSIONS
- See Also:
- Constant Field Values
-
-
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
-
-
getName
public java.lang.String getName()
- Returns:
- name
-
setName
public void setName(java.lang.String name)
- Parameters:
name
-
-
getStatus
public ContextStatus getStatus()
- Returns:
- status
-
setStatus
public void setStatus(ContextStatus status)
- Parameters:
status
-
-
isEnablecontrol
public java.lang.Boolean isEnablecontrol()
- Returns:
- enableControle true we must check contract given contract exists in the current context, false else
-
setEnablecontrol
public void setEnablecontrol(java.lang.Boolean enablecontrol)
- Parameters:
enablecontrol
-
-
getPermissions
public java.util.List<PermissionModel> getPermissions()
- Returns:
- list of PermissionModel
-
setPermissions
public void setPermissions(java.util.List<PermissionModel> permissions)
- Parameters:
permissions
-
-
getIdentifier
public java.lang.String getIdentifier()
- Returns:
- identifier
-
setIdentifier
public ContextModel setIdentifier(java.lang.String identifier)
- Parameters:
identifier
-- Returns:
- ContextModel
-
getCreationdate
public java.lang.String getCreationdate()
- Returns:
- the creation date of context
-
setCreationdate
public ContextModel setCreationdate(java.lang.String creationdate)
- Parameters:
creationdate
- to set- Returns:
- this
-
getLastupdate
public java.lang.String getLastupdate()
- Returns:
- last update of context
-
setLastupdate
public ContextModel setLastupdate(java.lang.String lastupdate)
- Parameters:
lastupdate
- to set- Returns:
- this
-
getActivationdate
public java.lang.String getActivationdate()
- Returns:
- the activation date of context
-
setActivationdate
public ContextModel setActivationdate(java.lang.String activationdate)
- Parameters:
activationdate
- to set- Returns:
- this
-
getDeactivationdate
public java.lang.String getDeactivationdate()
- Returns:
- the desactivation date of context
-
setDeactivationdate
public ContextModel setDeactivationdate(java.lang.String deactivationdate)
- Parameters:
deactivationdate
- to set- Returns:
- this
-
getSecurityProfileIdentifier
public java.lang.String getSecurityProfileIdentifier()
- Returns:
- the security profile identifier
-
setSecurityProfileIdentifier
public ContextModel setSecurityProfileIdentifier(java.lang.String securityProfileIdentifier)
- Parameters:
securityProfileIdentifier
- tbe security profile identifier to set.- Returns:
- this
-
-