Class VitamSequence
- java.lang.Object
-
- org.bson.Document
-
- fr.gouv.vitam.common.database.server.mongodb.VitamDocument<VitamSequence>
-
- fr.gouv.vitam.functional.administration.common.VitamSequence
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<java.lang.String,java.lang.Object>
,org.bson.conversions.Bson
public class VitamSequence extends VitamDocument<VitamSequence>
Defines a Contract Sequence collection.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COUNTER
the contract sequence descriptionstatic java.lang.String
NAME
the contract sequence name-
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 VitamSequence()
Empty ConstructorVitamSequence(com.fasterxml.jackson.databind.JsonNode content)
VitamSequence(java.lang.Integer tenantId)
VitamSequence(java.lang.String content, java.lang.Integer tenant)
VitamSequence(org.bson.Document document)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
getCounter()
Get the contract sequence counterjava.lang.String
getName()
Name of the contract sequenceVitamDocument<VitamSequence>
newInstance(com.fasterxml.jackson.databind.JsonNode content)
Make a new instance of the document with the given jsonVitamSequence
setCounter(java.lang.String counter)
Set or change the contract sequence counterVitamSequence
setId(java.lang.String id)
VitamSequence
setName(java.lang.String name)
Set or change the contract sequence name-
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
-
NAME
public static final java.lang.String NAME
the contract sequence name- See Also:
- Constant Field Values
-
COUNTER
public static final java.lang.String COUNTER
the contract sequence description- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VitamSequence
public VitamSequence()
Empty Constructor
-
VitamSequence
public VitamSequence(org.bson.Document document)
Constructor- Parameters:
document
- data in format Document to create contact
-
VitamSequence
public VitamSequence(com.fasterxml.jackson.databind.JsonNode content)
- Parameters:
content
- in format JsonNode to create contract sequence
-
VitamSequence
public VitamSequence(java.lang.String content, java.lang.Integer tenant)
- Parameters:
content
- in format String to create contract sequence
-
VitamSequence
public VitamSequence(java.lang.Integer tenantId)
- Parameters:
tenantId
- the working tenant
-
-
Method Detail
-
newInstance
public VitamDocument<VitamSequence> 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<VitamSequence>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
setId
public VitamSequence setId(java.lang.String id)
- Parameters:
id
- the id of ingest contract sequence- Returns:
- AccessionRegisterDetail
-
getName
public java.lang.String getName()
Name of the contract sequence- Returns:
- name of contract sequence
-
setName
public VitamSequence setName(java.lang.String name)
Set or change the contract sequence name- Parameters:
name
- to set- Returns:
- this
-
getCounter
public java.lang.Integer getCounter()
Get the contract sequence counter- Returns:
- this
-
setCounter
public VitamSequence setCounter(java.lang.String counter)
Set or change the contract sequence counter- Parameters:
counter
- to set- Returns:
- this
-
-