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:
java.io.Serializable
,java.util.Map<java.lang.String,java.lang.Object>
,org.bson.conversions.Bson
public class ArchiveUnitProfile extends VitamDocument<ArchiveUnitProfile>
Defines an archive unit Profile collection.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTIVATIONDATE
the activation date of the profilestatic java.lang.String
CONTROLSCHEMA
the controlSchema of the profilestatic java.lang.String
CREATIONDATE
the creatation date of the profilestatic java.lang.String
DEACTIVATIONDATE
the desactication date of the profilestatic java.lang.String
DESCRIPTION
the profile descriptionstatic java.lang.String
IDENTIFIER
the profile idstatic java.lang.String
LAST_UPDATE
the last update of profilestatic java.lang.String
NAME
the profile namestatic java.lang.String
STATUS
the profile status-
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 ArchiveUnitProfile()
Empty ConstructorArchiveUnitProfile(com.fasterxml.jackson.databind.JsonNode content)
ArchiveUnitProfile(java.lang.Integer tenantId)
ArchiveUnitProfile(java.lang.String content)
ArchiveUnitProfile(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
getControlSchema()
java.lang.String
getCreationdate()
java.lang.String
getDeactivationdate()
java.lang.String
getDescription()
Get the profile descriptionjava.lang.String
getIdentifier()
The profile idjava.lang.String
getLastupdate()
java.lang.String
getName()
Name of the profileProfileStatus
getStatus()
Get the profile status If toJson called without MongoClient configuration this will thow codec exceptionVitamDocument<ArchiveUnitProfile>
newInstance(com.fasterxml.jackson.databind.JsonNode content)
Make a new instance of the document with the given jsonArchiveUnitProfile
setActivationdate(java.lang.String activationdate)
ArchiveUnitProfile
setControlSchema(java.lang.String ControlSchema)
ArchiveUnitProfile
setCreationdate(java.lang.String creationdate)
ArchiveUnitProfile
setDeactivationdate(java.lang.String deactivationdate)
ArchiveUnitProfile
setDescription(java.lang.String description)
Set or change the profile descriptionArchiveUnitProfile
setId(java.lang.String id)
ArchiveUnitProfile
setIdentifier(java.lang.String identifier)
Set or change the profile id, the identifier must be unique by tenantArchiveUnitProfile
setLastupdate(java.lang.String lastupdate)
ArchiveUnitProfile
setName(java.lang.String name)
Set or change the profile nameArchiveUnitProfile
setStatus(ProfileStatus status)
Set or change the profile 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 profile id- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
the profile name- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
the profile description- See Also:
- Constant Field Values
-
STATUS
public static final java.lang.String STATUS
the profile status- See Also:
- Constant Field Values
-
CREATIONDATE
public static final java.lang.String CREATIONDATE
the creatation date of the profile- See Also:
- Constant Field Values
-
LAST_UPDATE
public static final java.lang.String LAST_UPDATE
the last update of profile- See Also:
- Constant Field Values
-
ACTIVATIONDATE
public static final java.lang.String ACTIVATIONDATE
the activation date of the profile- See Also:
- Constant Field Values
-
DEACTIVATIONDATE
public static final java.lang.String DEACTIVATIONDATE
the desactication date of the profile- See Also:
- Constant Field Values
-
CONTROLSCHEMA
public static final java.lang.String CONTROLSCHEMA
the controlSchema of the profile- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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
public ArchiveUnitProfile(java.lang.String content)
- Parameters:
content
- in format String to create profile
-
ArchiveUnitProfile
public ArchiveUnitProfile(java.lang.Integer tenantId)
- Parameters:
tenantId
- the working tenant
-
-
Method Detail
-
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
public ArchiveUnitProfile setId(java.lang.String id)
- Parameters:
id
- the id of ingest profile- Returns:
- AccessionRegisterDetail
-
getIdentifier
public java.lang.String getIdentifier()
The profile id- Returns:
- the id of the profile
-
setIdentifier
public ArchiveUnitProfile setIdentifier(java.lang.String identifier)
Set or change the profile id, the identifier must be unique by tenant- Parameters:
identifier
-- Returns:
- this
-
getName
public java.lang.String getName()
Name of the profile- Returns:
- name of profile
-
setName
public ArchiveUnitProfile setName(java.lang.String name)
Set or change the profile name- Parameters:
name
- to set- Returns:
- this
-
getDescription
public java.lang.String getDescription()
Get the profile description- Returns:
- this
-
setDescription
public ArchiveUnitProfile setDescription(java.lang.String description)
Set or change the profile description- Parameters:
description
- to set to contact- Returns:
- this
-
getStatus
public ProfileStatus getStatus()
Get the profile status If toJson called without MongoClient configuration this will thow codec exception- Returns:
- status of ingest contact
-
setStatus
public ArchiveUnitProfile setStatus(ProfileStatus status)
Set or change the profile status- Parameters:
status
- to set- Returns:
- this
-
getCreationdate
public java.lang.String getCreationdate()
- Returns:
- creation date of profile
-
setCreationdate
public ArchiveUnitProfile setCreationdate(java.lang.String creationdate)
- Parameters:
creationdate
- to set- Returns:
- this
-
getLastupdate
public java.lang.String getLastupdate()
- Returns:
- last update of profile
-
setLastupdate
public ArchiveUnitProfile setLastupdate(java.lang.String lastupdate)
- Parameters:
lastupdate
- to set- Returns:
- this
-
getActivationdate
public java.lang.String getActivationdate()
- Returns:
- activation date of profile
-
setActivationdate
public ArchiveUnitProfile setActivationdate(java.lang.String activationdate)
- Parameters:
activationdate
- to set- Returns:
- this
-
getDeactivationdate
public java.lang.String getDeactivationdate()
- Returns:
- desactivation date of profile
-
setDeactivationdate
public ArchiveUnitProfile setDeactivationdate(java.lang.String deactivationdate)
- Parameters:
deactivationdate
- to set- Returns:
- this
-
getControlSchema
public java.lang.String getControlSchema()
- Returns:
- the ControlSchema of the profile
-
setControlSchema
public ArchiveUnitProfile setControlSchema(java.lang.String ControlSchema)
- Parameters:
ControlSchema
- to set- Returns:
- this
-
-