Class ManagementContract
java.lang.Object
org.bson.Document
fr.gouv.vitam.common.database.server.mongodb.VitamDocument<ManagementContract>
fr.gouv.vitam.functional.administration.common.ManagementContract
- All Implemented Interfaces:
Serializable
,Map<String,
,Object> org.bson.conversions.Bson
Defines an Management contract model
- See Also:
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
the activation date of contractstatic final String
the creatation date of contractstatic final String
the desactication date of contractstatic final String
static final String
the contract descriptionstatic final String
the contract idstatic final String
static final String
static final String
the last update of contractstatic final String
the contract namestatic final String
the Object Strategystatic final String
the Object Group Strategystatic final String
the contract statusstatic final String
the Storagestatic final String
the Unit Strategystatic final String
static final String
Fields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSION
Fields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty ConstructorManagementContract
(com.fasterxml.jackson.databind.JsonNode content) ManagementContract
(Integer tenantId) ManagementContract
(String content) ManagementContract
(org.bson.Document document) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the contract descriptiongetName()
Name of the contractGet the contract statusnewInstance
(com.fasterxml.jackson.databind.JsonNode content) Make a new instance of the document with the given jsonsetActivationdate
(String activationdate) setCreationdate
(String creationdate) setDeactivationdate
(String deactivationdate) setDescription
(String description) Set or change the contract descriptionsetLastupdate
(String lastupdate) Set or change the contract namesetStatus
(ActivationStatus status) Set or change the contract statusMethods inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
checkId, getConcernedDiffLines, getId, getOriginalDiffLines, getTenantId, getUnifiedDiff, getVersion, toString, toStringDirect
Methods inherited from class org.bson.Document
append, clear, containsKey, containsValue, entrySet, equals, get, get, get, getBoolean, getBoolean, getDate, getDouble, getEmbedded, getEmbedded, getInteger, getInteger, getList, getList, getLong, getObjectId, getString, hashCode, isEmpty, keySet, parse, parse, put, putAll, remove, size, toBsonDocument, toJson, toJson, toJson, toJson, values
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bson.conversions.Bson
toBsonDocument
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
IDENTIFIER
the contract id- See Also:
-
NAME
the contract name- See Also:
-
DESCRIPTION
the contract description- See Also:
-
STATUS
the contract status- See Also:
-
CREATIONDATE
the creatation date of contract- See Also:
-
LAST_UPDATE
the last update of contract- See Also:
-
ACTIVATIONDATE
the activation date of contract- See Also:
-
DEACTIVATIONDATE
the desactication date of contract- See Also:
-
STORAGE
the Storage- See Also:
-
OBJECTGROUP_STRATEGY
the Object Group Strategy- See Also:
-
UNIT_STRATEGY
the Unit Strategy- See Also:
-
OBJECT_STRATEGY
the Object Strategy- See Also:
-
VERSION_RETENTION_POLICY
- See Also:
-
INITIAL_VERSION
- See Also:
-
INTERMEDIARY_VERSION
- See Also:
-
USAGES
- See Also:
-
DEFAULT_USAGE
- See Also:
-
-
Constructor Details
-
ManagementContract
public ManagementContract()Empty Constructor -
ManagementContract
public ManagementContract(org.bson.Document document) Constructor- Parameters:
document
- data in format Document to create contact
-
ManagementContract
public ManagementContract(com.fasterxml.jackson.databind.JsonNode content) - Parameters:
content
- in format JsonNode to create contract
-
ManagementContract
- Parameters:
content
- in format String to create contract
-
ManagementContract
- Parameters:
tenantId
- the working tenant
-
-
Method Details
-
setId
- Parameters:
id
- the id of ingest contract- Returns:
- AccessionRegisterDetail
-
newInstance
public VitamDocument<ManagementContract> newInstance(com.fasterxml.jackson.databind.JsonNode content) Description copied from class:VitamDocument
Make a new instance of the document with the given json- Specified by:
newInstance
in classVitamDocument<ManagementContract>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
getName
Name of the contract- Returns:
- name of contract
-
setName
Set or change the contract name- Parameters:
name
- to set- Returns:
- this
-
getDescription
Get the contract description- Returns:
- this
-
setDescription
Set or change the contract description- Parameters:
description
- to set to contact- Returns:
- this
-
getStatus
Get the contract status- Returns:
- status of ingest contact
-
setStatus
Set or change the contract status- Parameters:
status
- to set- Returns:
- this
-
getCreationdate
- Returns:
- creation date of contract
-
setCreationdate
- Parameters:
creationdate
- to set- Returns:
- this
-
getLastupdate
- Returns:
- last update of contract
-
setLastupdate
- Parameters:
lastupdate
- to set- Returns:
- this
-
getActivationdate
- Returns:
- activation date of contract
-
setActivationdate
- Parameters:
activationdate
- to set- Returns:
- this
-
getDeactivationdate
- Returns:
- desactivation date of contract
-
setDeactivationdate
- Parameters:
deactivationdate
- to set- Returns:
- this
-