Class AbstractContractModel
java.lang.Object
fr.gouv.vitam.common.model.administration.AbstractContractModel
- Direct Known Subclasses:
AccessContractModel
,IngestContractModel
,ManagementContractModel
Data Transfer Object Model of access contract (DTO).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withgetCreationDate()
Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withgetDeactivationDate()
Get the contract descriptiongetId()
Get the identifier of the contractDeprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withgetLastUpdate()
getName()
Get name of the contractGet the contract statussetActivationdate
(String activationdate) Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withsetActivationDate(String activationDate)
setActivationDate
(String activationDate) setCreationdate
(String creationdate) Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withsetCreationDate(String creationDate)
setCreationDate
(String creationDate) setDeactivationdate
(String deactivationdate) Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withsetDeactivationDate(String deactivationDate)
setDeactivationDate
(String deactivationDate) setDescription
(String description) Set or change the contract descriptionsetIdentifier
(String identifier) Set the identifier of the contract This value must be unique by tenantsetLastupdate
(String lastupdate) Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withsetLastUpdate(String lastUpdate)
setLastUpdate
(String lastUpdate) Set or change the contract namesetStatus
(ActivationStatus status) Set or change the contract statussetVersion
(Integer version)
-
Field Details
-
TAG_DESCRIPTION
- See Also:
-
TAG_NAME
- See Also:
-
TAG_IDENTIFIER
- See Also:
-
TAG_STATUS
- See Also:
-
TAG_CREATION_DATE
- See Also:
-
TAG_LAST_UPDATE
- See Also:
-
-
Constructor Details
-
AbstractContractModel
public AbstractContractModel()Constructor without fields use for jackson
-
-
Method Details
-
getId
- Returns:
- id
-
setId
- Parameters:
id
- value to set field- Returns:
- this
-
getTenant
- Returns:
- tenant
-
setTenant
- Parameters:
tenant
- value to set working tenant- Returns:
- this
-
getVersion
- Returns:
- version
-
setVersion
- Parameters:
version
-
-
getIdentifier
Get the identifier of the contract- Returns:
- String
-
setIdentifier
Set the identifier of the contract This value must be unique by tenant- Parameters:
identifier
- as String- Returns:
- this
-
getName
Get name of the contract- Returns:
- name as String
-
setName
Set or change the contract name- Parameters:
name
- as String to set- Returns:
- this
-
getDescription
Get the contract description- Returns:
- description of contract
-
setDescription
Set or change the contract description- Parameters:
description
- to set- Returns:
- this
-
getStatus
Get the contract status- Returns:
- status of contract
-
setStatus
Set or change the contract status- Parameters:
status
- toi set- Returns:
- this
-
getCreationDate
- Returns:
- the creation date of contract
-
getCreationdate
Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withgetCreationDate()
-
setCreationDate
- Parameters:
creationDate
- to set- Returns:
- this
-
setCreationdate
@Deprecated(forRemoval=true, since="8.0") public AbstractContractModel setCreationdate(String creationdate) Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withsetCreationDate(String creationDate)
-
getLastUpdate
- Returns:
- last update of contract
-
getLastupdate
Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withgetLastUpdate()
-
setLastUpdate
- Parameters:
lastUpdate
- to set- Returns:
- this
-
setLastupdate
@Deprecated(forRemoval=true, since="8.0") public AbstractContractModel setLastupdate(String lastupdate) Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withsetLastUpdate(String lastUpdate)
-
getActivationDate
- Returns:
- the activation date of contracr
-
getActivationdate
Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withgetActivationDate()
-
setActivationDate
- Parameters:
activationDate
- to set- Returns:
- this
-
setActivationdate
@Deprecated(forRemoval=true, since="8.0") public AbstractContractModel setActivationdate(String activationdate) Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withsetActivationDate(String activationDate)
-
getDeactivationDate
- Returns:
- the desactivation date of contract
-
getDeactivationdate
Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withgetDeactivationDate()
-
setDeactivationDate
- Parameters:
deactivationDate
- to set- Returns:
- this
-
setDeactivationdate
@Deprecated(forRemoval=true, since="8.0") public AbstractContractModel setDeactivationdate(String deactivationdate) Deprecated, for removal: This API element is subject to removal in a future version.since 8.0, replaced withsetDeactivationDate(String deactivationDate)
-
getActivationDate()