Class AbstractContractModel
- java.lang.Object
-
- fr.gouv.vitam.common.model.administration.AbstractContractModel
-
- Direct Known Subclasses:
AccessContractModel
,IngestContractModel
,ManagementContractModel
public class AbstractContractModel extends java.lang.Object
Data Transfer Object Model of access contract (DTO).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TAG_CREATION_DATE
static java.lang.String
TAG_DESCRIPTION
static java.lang.String
TAG_IDENTIFIER
static java.lang.String
TAG_LAST_UPDATE
static java.lang.String
TAG_NAME
static java.lang.String
TAG_STATUS
-
Constructor Summary
Constructors Constructor Description AbstractContractModel()
Constructor without fields use for jackson
-
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
getDescription()
Get the contract descriptionjava.lang.String
getId()
java.lang.String
getIdentifier()
Get the identifier of the contractjava.lang.String
getLastupdate()
java.lang.String
getName()
Get name of the contractActivationStatus
getStatus()
Get the contract statusjava.lang.Integer
getTenant()
java.lang.Integer
getVersion()
AbstractContractModel
setActivationdate(java.lang.String activationdate)
AbstractContractModel
setCreationdate(java.lang.String creationdate)
AbstractContractModel
setDeactivationdate(java.lang.String deactivationdate)
AbstractContractModel
setDescription(java.lang.String description)
Set or change the contract descriptionAbstractContractModel
setId(java.lang.String id)
AbstractContractModel
setIdentifier(java.lang.String identifier)
Set the identifier of the contract This value must be unique by tenantAbstractContractModel
setLastupdate(java.lang.String lastupdate)
AbstractContractModel
setName(java.lang.String name)
Set or change the contract nameAbstractContractModel
setStatus(ActivationStatus status)
Set or change the contract statusAbstractContractModel
setTenant(java.lang.Integer tenant)
void
setVersion(java.lang.Integer version)
-
-
-
Field Detail
-
TAG_DESCRIPTION
public static final java.lang.String TAG_DESCRIPTION
- See Also:
- Constant Field Values
-
TAG_NAME
public static final java.lang.String TAG_NAME
- See Also:
- Constant Field Values
-
TAG_IDENTIFIER
public static final java.lang.String TAG_IDENTIFIER
- See Also:
- Constant Field Values
-
TAG_STATUS
public static final java.lang.String TAG_STATUS
- See Also:
- Constant Field Values
-
TAG_CREATION_DATE
public static final java.lang.String TAG_CREATION_DATE
- See Also:
- Constant Field Values
-
TAG_LAST_UPDATE
public static final java.lang.String TAG_LAST_UPDATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
- Returns:
- id
-
setId
public AbstractContractModel setId(java.lang.String id)
- Parameters:
id
- value to set field- Returns:
- this
-
getTenant
public java.lang.Integer getTenant()
- Returns:
- tenant
-
setTenant
public AbstractContractModel 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 contract- Returns:
- String
-
setIdentifier
public AbstractContractModel setIdentifier(java.lang.String identifier)
Set the identifier of the contract This value must be unique by tenant- Parameters:
identifier
- as String- Returns:
- this
-
getName
public java.lang.String getName()
Get name of the contract- Returns:
- name as String
-
setName
public AbstractContractModel setName(java.lang.String name)
Set or change the contract name- Parameters:
name
- as String to set- Returns:
- this
-
getDescription
public java.lang.String getDescription()
Get the contract description- Returns:
- description of contract
-
setDescription
public AbstractContractModel setDescription(java.lang.String description)
Set or change the contract description- Parameters:
description
- to set- Returns:
- this
-
getStatus
public ActivationStatus getStatus()
Get the contract status- Returns:
- status of contract
-
setStatus
public AbstractContractModel setStatus(ActivationStatus status)
Set or change the contract status- Parameters:
status
- toi set- Returns:
- this
-
getCreationdate
public java.lang.String getCreationdate()
- Returns:
- the creation date of contract
-
setCreationdate
public AbstractContractModel setCreationdate(java.lang.String creationdate)
- Parameters:
creationdate
- to set- Returns:
- this
-
getLastupdate
public java.lang.String getLastupdate()
- Returns:
- last update of contract
-
setLastupdate
public AbstractContractModel setLastupdate(java.lang.String lastupdate)
- Parameters:
lastupdate
- to set- Returns:
- this
-
getActivationdate
public java.lang.String getActivationdate()
- Returns:
- the activation date of contracr
-
setActivationdate
public AbstractContractModel setActivationdate(java.lang.String activationdate)
- Parameters:
activationdate
- to set- Returns:
- this
-
getDeactivationdate
public java.lang.String getDeactivationdate()
- Returns:
- the desactivation date of contract
-
setDeactivationdate
public AbstractContractModel setDeactivationdate(java.lang.String deactivationdate)
- Parameters:
deactivationdate
- to set- Returns:
- this
-
-