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 Stringthe activation date of contractstatic final Stringthe creatation date of contractstatic final Stringthe desactication date of contractstatic final Stringstatic final Stringthe contract descriptionstatic final Stringthe contract idstatic final Stringstatic final Stringstatic final Stringthe last update of contractstatic final Stringthe contract namestatic final Stringthe Object Strategystatic final Stringthe Object Group Strategystatic final Stringthe contract statusstatic final Stringthe Storagestatic final Stringthe Unit Strategystatic final Stringstatic final StringFields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSIONFields 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, toStringDirectMethods 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, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bson.conversions.Bson
toBsonDocumentMethods 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:VitamDocumentMake a new instance of the document with the given json- Specified by:
newInstancein 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
-