Class AccessContract
java.lang.Object
org.bson.Document
fr.gouv.vitam.common.database.server.mongodb.VitamDocument<AccessContract>
fr.gouv.vitam.functional.administration.common.AccessContract
- All Implemented Interfaces:
Serializable,Map<String,,Object> org.bson.conversions.Bson
Defines an Access contract model for SIP transfer control.
- 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 Stringthe contract descriptionstatic final Stringthe contract idstatic final Stringthe last update of contractstatic final Stringthe contract namestatic final Stringthe originating agenciesstatic final Stringthe contract statusFields 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 ConstructorAccessContract(com.fasterxml.jackson.databind.JsonNode content) AccessContract(Integer tenantId) AccessContract(String content) AccessContract(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 namesetOriginatingAgencies(Set<String> originatingAgencies) Set the collection of originating agenciessetStatus(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:
-
ORIGINATINGAGENCIES
the originating agencies- 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:
-
-
Constructor Details
-
AccessContract
public AccessContract()Empty Constructor -
AccessContract
public AccessContract(org.bson.Document document) Constructor- Parameters:
document- data in format Document to create contact
-
AccessContract
public AccessContract(com.fasterxml.jackson.databind.JsonNode content) - Parameters:
content- in format JsonNode to create contract
-
AccessContract
- Parameters:
content- in format String to create contract
-
AccessContract
- Parameters:
tenantId- the working tenant
-
-
Method Details
-
newInstance
Description copied from class:VitamDocumentMake a new instance of the document with the given json- Specified by:
newInstancein classVitamDocument<AccessContract>- Parameters:
content- document structure as json- Returns:
- new document with the json as content
-
setId
- Parameters:
id- the id of access contract- Returns:
- AccessionRegisterDetail
-
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 access contact
-
setStatus
Set or change the contract status- Parameters:
status- to set- Returns:
- this
-
getOriginatingAgencies
- Returns:
- collection of originating agencies
-
setOriginatingAgencies
Set the collection of originating agencies- Parameters:
originatingAgencies-- 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
-