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:
java.io.Serializable
,java.util.Map<java.lang.String,java.lang.Object>
,org.bson.conversions.Bson
public class ManagementContract extends VitamDocument<ManagementContract>
Defines an Management contract model- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTIVATIONDATE
the activation date of contractstatic java.lang.String
CREATIONDATE
the creatation date of contractstatic java.lang.String
DEACTIVATIONDATE
the desactication date of contractstatic java.lang.String
DESCRIPTION
the contract descriptionstatic java.lang.String
IDENTIFIER
the contract idstatic java.lang.String
LAST_UPDATE
the last update of contractstatic java.lang.String
NAME
the contract namestatic java.lang.String
OBJECT_STRATEGY
the Object Strategystatic java.lang.String
OBJECTGROUP_STRATEGY
the Object Group Strategystatic java.lang.String
STATUS
the contract statusstatic java.lang.String
STORAGE
the Storagestatic java.lang.String
UNIT_STRATEGY
the Unit Strategy-
Fields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSION
-
-
Constructor Summary
Constructors Constructor Description ManagementContract()
Empty ConstructorManagementContract(com.fasterxml.jackson.databind.JsonNode content)
ManagementContract(java.lang.Integer tenantId)
ManagementContract(java.lang.String content)
ManagementContract(org.bson.Document document)
Constructor
-
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
getLastupdate()
java.lang.String
getName()
Name of the contractActivationStatus
getStatus()
Get the contract statusVitamDocument<ManagementContract>
newInstance(com.fasterxml.jackson.databind.JsonNode content)
Make a new instance of the document with the given jsonManagementContract
setActivationdate(java.lang.String activationdate)
ManagementContract
setCreationdate(java.lang.String creationdate)
ManagementContract
setDeactivationdate(java.lang.String deactivationdate)
ManagementContract
setDescription(java.lang.String description)
Set or change the contract descriptionManagementContract
setId(java.lang.String id)
ManagementContract
setLastupdate(java.lang.String lastupdate)
ManagementContract
setName(java.lang.String name)
Set or change the contract nameManagementContract
setStatus(ActivationStatus status)
Set or change the contract status-
Methods 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
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
the contract id- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
the contract name- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
the contract description- See Also:
- Constant Field Values
-
STATUS
public static final java.lang.String STATUS
the contract status- See Also:
- Constant Field Values
-
CREATIONDATE
public static final java.lang.String CREATIONDATE
the creatation date of contract- See Also:
- Constant Field Values
-
LAST_UPDATE
public static final java.lang.String LAST_UPDATE
the last update of contract- See Also:
- Constant Field Values
-
ACTIVATIONDATE
public static final java.lang.String ACTIVATIONDATE
the activation date of contract- See Also:
- Constant Field Values
-
DEACTIVATIONDATE
public static final java.lang.String DEACTIVATIONDATE
the desactication date of contract- See Also:
- Constant Field Values
-
STORAGE
public static final java.lang.String STORAGE
the Storage- See Also:
- Constant Field Values
-
OBJECTGROUP_STRATEGY
public static final java.lang.String OBJECTGROUP_STRATEGY
the Object Group Strategy- See Also:
- Constant Field Values
-
UNIT_STRATEGY
public static final java.lang.String UNIT_STRATEGY
the Unit Strategy- See Also:
- Constant Field Values
-
OBJECT_STRATEGY
public static final java.lang.String OBJECT_STRATEGY
the Object Strategy- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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
public ManagementContract(java.lang.String content)
- Parameters:
content
- in format String to create contract
-
ManagementContract
public ManagementContract(java.lang.Integer tenantId)
- Parameters:
tenantId
- the working tenant
-
-
Method Detail
-
setId
public ManagementContract setId(java.lang.String id)
- 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
public java.lang.String getName()
Name of the contract- Returns:
- name of contract
-
setName
public ManagementContract setName(java.lang.String name)
Set or change the contract name- Parameters:
name
- to set- Returns:
- this
-
getDescription
public java.lang.String getDescription()
Get the contract description- Returns:
- this
-
setDescription
public ManagementContract setDescription(java.lang.String description)
Set or change the contract description- Parameters:
description
- to set to contact- Returns:
- this
-
getStatus
public ActivationStatus getStatus()
Get the contract status- Returns:
- status of ingest contact
-
setStatus
public ManagementContract setStatus(ActivationStatus status)
Set or change the contract status- Parameters:
status
- to set- Returns:
- this
-
getCreationdate
public java.lang.String getCreationdate()
- Returns:
- creation date of contract
-
setCreationdate
public ManagementContract setCreationdate(java.lang.String creationdate)
- Parameters:
creationdate
- to set- Returns:
- this
-
getLastupdate
public java.lang.String getLastupdate()
- Returns:
- last update of contract
-
setLastupdate
public ManagementContract setLastupdate(java.lang.String lastupdate)
- Parameters:
lastupdate
- to set- Returns:
- this
-
getActivationdate
public java.lang.String getActivationdate()
- Returns:
- activation date of contract
-
setActivationdate
public ManagementContract setActivationdate(java.lang.String activationdate)
- Parameters:
activationdate
- to set- Returns:
- this
-
getDeactivationdate
public java.lang.String getDeactivationdate()
- Returns:
- desactivation date of contract
-
setDeactivationdate
public ManagementContract setDeactivationdate(java.lang.String deactivationdate)
- Parameters:
deactivationdate
- to set- Returns:
- this
-
-