Class ArchiveUnitProfile
java.lang.Object
org.bson.Document
fr.gouv.vitam.common.database.server.mongodb.VitamDocument<ArchiveUnitProfile>
fr.gouv.vitam.functional.administration.common.ArchiveUnitProfile
- All Implemented Interfaces:
Serializable
,Map<String,
,Object> org.bson.conversions.Bson
Defines an archive unit Profile collection.
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
the activation date of the profilestatic final String
the controlSchema of the profilestatic final String
the creatation date of the profilestatic final String
the desactication date of the profilestatic final String
the profile descriptionstatic final String
the profile idstatic final String
the last update of profilestatic final String
the profile namestatic final String
the profile's seda versionstatic final String
the profile statusFields 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
ConstructorDescriptionEmpty ConstructorArchiveUnitProfile
(com.fasterxml.jackson.databind.JsonNode content) ArchiveUnitProfile
(Integer tenantId) ArchiveUnitProfile
(String content) ArchiveUnitProfile
(org.bson.Document document) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the profile descriptionThe profile idgetName()
Name of the profileGet the profile seda versionGet the profile status If toJson called without MongoClient configuration this will thow codec exceptionnewInstance
(com.fasterxml.jackson.databind.JsonNode content) Make a new instance of the document with the given jsonsetActivationdate
(String activationdate) setControlSchema
(String ControlSchema) setCreationdate
(String creationdate) setDeactivationdate
(String deactivationdate) setDescription
(String description) Set or change the profile descriptionsetIdentifier
(String identifier) Set or change the profile id, the identifier must be unique by tenantsetLastupdate
(String lastupdate) Set or change the profile namesetSedaVersion
(ArchiveUnitProfileSedaVersion sedaVersion) Set the profile seda versionsetStatus
(ArchiveUnitProfileStatus status) Set or change the profile 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 profile id- See Also:
-
NAME
the profile name- See Also:
-
DESCRIPTION
the profile description- See Also:
-
STATUS
the profile status- See Also:
-
SEDA_VERSION
the profile's seda version- See Also:
-
CREATIONDATE
the creatation date of the profile- See Also:
-
LAST_UPDATE
the last update of profile- See Also:
-
ACTIVATIONDATE
the activation date of the profile- See Also:
-
DEACTIVATIONDATE
the desactication date of the profile- See Also:
-
CONTROLSCHEMA
the controlSchema of the profile- See Also:
-
-
Constructor Details
-
ArchiveUnitProfile
public ArchiveUnitProfile()Empty Constructor -
ArchiveUnitProfile
public ArchiveUnitProfile(org.bson.Document document) Constructor- Parameters:
document
- data in format Document to create contact
-
ArchiveUnitProfile
public ArchiveUnitProfile(com.fasterxml.jackson.databind.JsonNode content) - Parameters:
content
- in format JsonNode to create profile
-
ArchiveUnitProfile
- Parameters:
content
- in format String to create profile
-
ArchiveUnitProfile
- Parameters:
tenantId
- the working tenant
-
-
Method Details
-
newInstance
public VitamDocument<ArchiveUnitProfile> 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<ArchiveUnitProfile>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
setId
- Parameters:
id
- the id of ingest profile- Returns:
- AccessionRegisterDetail
-
getIdentifier
The profile id- Returns:
- the id of the profile
-
setIdentifier
Set or change the profile id, the identifier must be unique by tenant- Parameters:
identifier
-- Returns:
- this
-
getName
Name of the profile- Returns:
- name of profile
-
setName
Set or change the profile name- Parameters:
name
- to set- Returns:
- this
-
getDescription
Get the profile description- Returns:
- this
-
setDescription
Set or change the profile description- Parameters:
description
- to set to contact- Returns:
- this
-
getStatus
Get the profile status If toJson called without MongoClient configuration this will thow codec exception- Returns:
- status of ingest contact
-
setStatus
Set or change the profile status- Parameters:
status
- to set- Returns:
- this
-
getSedaVersion
Get the profile seda version- Returns:
- the seda version
-
setSedaVersion
Set the profile seda version- Parameters:
sedaVersion
-- Returns:
- this
-
getCreationdate
- Returns:
- creation date of profile
-
setCreationdate
- Parameters:
creationdate
- to set- Returns:
- this
-
getLastupdate
- Returns:
- last update of profile
-
setLastupdate
- Parameters:
lastupdate
- to set- Returns:
- this
-
getActivationdate
- Returns:
- activation date of profile
-
setActivationdate
- Parameters:
activationdate
- to set- Returns:
- this
-
getDeactivationdate
- Returns:
- desactivation date of profile
-
setDeactivationdate
- Parameters:
deactivationdate
- to set- Returns:
- this
-
getControlSchema
- Returns:
- the ControlSchema of the profile
-
setControlSchema
- Parameters:
ControlSchema
- to set- Returns:
- this
-