Class ProfileModel
- java.lang.Object
-
- fr.gouv.vitam.common.model.administration.ProfileModel
-
public class ProfileModel extends java.lang.ObjectData Transfer Object Model of Profile (DTO).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACTIVATION_DATEstatic java.lang.StringCREATION_DATEstatic java.lang.StringDEACTIVATION_DATEstatic java.lang.StringLAST_UPDATEstatic java.lang.StringTAG_DESCRIPTIONstatic java.lang.StringTAG_FORMATstatic java.lang.StringTAG_IDENTIFIERstatic java.lang.StringTAG_NAMEstatic java.lang.StringTAG_PATHstatic java.lang.StringTAG_STATUS
-
Constructor Summary
Constructors Constructor Description ProfileModel()Constructor without fields use for jackson
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetActivationdate()java.lang.StringgetCreationdate()java.lang.StringgetDeactivationdate()java.lang.StringgetDescription()Get the profile descriptionProfileFormatgetFormat()Get the format of the profile file (xsd, rng, ...)java.lang.StringgetId()java.lang.StringgetIdentifier()Get the identifier of the profilejava.lang.StringgetLastupdate()java.lang.StringgetName()Get name of the profilejava.lang.StringgetPath()ProfileStatusgetStatus()Get the profile statusjava.lang.IntegergetTenant()java.lang.IntegergetVersion()ProfileModelsetActivationdate(java.lang.String activationdate)ProfileModelsetCreationdate(java.lang.String creationdate)ProfileModelsetDeactivationdate(java.lang.String deactivationdate)ProfileModelsetDescription(java.lang.String description)Set or change the profile descriptionProfileModelsetFormat(ProfileFormat format)Set the profile file format (xsd, rng, ...)ProfileModelsetId(java.lang.String id)ProfileModelsetIdentifier(java.lang.String identifier)Set the identifier of the profile This value must be unique by tenantProfileModelsetLastupdate(java.lang.String lastupdate)ProfileModelsetName(java.lang.String name)Set or change the profile nameProfileModelsetPath(java.lang.String path)Profile path in storageProfileModelsetStatus(ProfileStatus status)Set or change the profile statusProfileModelsetTenant(java.lang.Integer tenant)voidsetVersion(java.lang.Integer version)
-
-
-
Field Detail
-
TAG_IDENTIFIER
public static final java.lang.String TAG_IDENTIFIER
- See Also:
- Constant Field Values
-
TAG_NAME
public static final java.lang.String TAG_NAME
- See Also:
- Constant Field Values
-
TAG_DESCRIPTION
public static final java.lang.String TAG_DESCRIPTION
- See Also:
- Constant Field Values
-
TAG_STATUS
public static final java.lang.String TAG_STATUS
- See Also:
- Constant Field Values
-
TAG_FORMAT
public static final java.lang.String TAG_FORMAT
- See Also:
- Constant Field Values
-
TAG_PATH
public static final java.lang.String TAG_PATH
- See Also:
- Constant Field Values
-
CREATION_DATE
public static final java.lang.String CREATION_DATE
- See Also:
- Constant Field Values
-
LAST_UPDATE
public static final java.lang.String LAST_UPDATE
- See Also:
- Constant Field Values
-
ACTIVATION_DATE
public static final java.lang.String ACTIVATION_DATE
- See Also:
- Constant Field Values
-
DEACTIVATION_DATE
public static final java.lang.String DEACTIVATION_DATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
- Returns:
- id
-
setId
public ProfileModel setId(java.lang.String id)
- Parameters:
id- value to set field- Returns:
- this
-
getTenant
public java.lang.Integer getTenant()
- Returns:
- tenant
-
setTenant
public ProfileModel setTenant(java.lang.Integer tenant)
- Parameters:
tenant- value to set working tenant- Returns:
- this
-
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 profile- Returns:
- identifier as String
-
setIdentifier
public ProfileModel setIdentifier(java.lang.String identifier)
Set the identifier of the profile This value must be unique by tenant- Parameters:
identifier- as String- Returns:
- this
-
getName
public java.lang.String getName()
Get name of the profile- Returns:
- name as String
-
setName
public ProfileModel setName(java.lang.String name)
Set or change the profile name- Parameters:
name- as String to set- Returns:
- this
-
getDescription
public java.lang.String getDescription()
Get the profile description- Returns:
- description of profile
-
setDescription
public ProfileModel setDescription(java.lang.String description)
Set or change the profile description- Parameters:
description- to set- Returns:
- this
-
getStatus
public ProfileStatus getStatus()
Get the profile status- Returns:
- status of profile
-
setStatus
public ProfileModel setStatus(ProfileStatus status)
Set or change the profile status- Parameters:
status- toi set- Returns:
- this
-
getFormat
public ProfileFormat getFormat()
Get the format of the profile file (xsd, rng, ...)- Returns:
- the file format as string
-
setFormat
public ProfileModel setFormat(ProfileFormat format)
Set the profile file format (xsd, rng, ...)- Parameters:
format-- Returns:
- this
-
getPath
public java.lang.String getPath()
- Returns:
- path as String
-
setPath
public ProfileModel setPath(java.lang.String path)
Profile path in storage- Parameters:
path-- Returns:
- this
-
getCreationdate
public java.lang.String getCreationdate()
- Returns:
- the creation date of profile
-
setCreationdate
public ProfileModel setCreationdate(java.lang.String creationdate)
- Parameters:
creationdate- to set- Returns:
- this
-
getLastupdate
public java.lang.String getLastupdate()
- Returns:
- last update of profile
-
setLastupdate
public ProfileModel setLastupdate(java.lang.String lastupdate)
- Parameters:
lastupdate- to set- Returns:
- this
-
getActivationdate
public java.lang.String getActivationdate()
- Returns:
- the activation date of profile
-
setActivationdate
public ProfileModel setActivationdate(java.lang.String activationdate)
- Parameters:
activationdate- to set- Returns:
- this
-
getDeactivationdate
public java.lang.String getDeactivationdate()
- Returns:
- the desactivation date of profile
-
setDeactivationdate
public ProfileModel setDeactivationdate(java.lang.String deactivationdate)
- Parameters:
deactivationdate- to set- Returns:
- this
-
-