Class Context
- java.lang.Object
-
- org.bson.Document
-
- fr.gouv.vitam.common.database.server.mongodb.VitamDocument<Context>
-
- fr.gouv.vitam.functional.administration.common.Context
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<java.lang.String,java.lang.Object>
,org.bson.conversions.Bson
public class Context extends VitamDocument<Context>
Defines a Context collection.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
the Context idstatic java.lang.String
NAME
the Context namestatic java.lang.String
PERMISSION
the Context descriptionstatic java.lang.String
SECURITY_PROFILE
The security profile identifierstatic java.lang.String
STATUS
the Context status-
Fields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VitamDocument<Context>
newInstance(com.fasterxml.jackson.databind.JsonNode content)
Make a new instance of the document with the given json-
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 Context id- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
the Context name- See Also:
- Constant Field Values
-
STATUS
public static final java.lang.String STATUS
the Context status- See Also:
- Constant Field Values
-
SECURITY_PROFILE
public static final java.lang.String SECURITY_PROFILE
The security profile identifier- See Also:
- Constant Field Values
-
PERMISSION
public static final java.lang.String PERMISSION
the Context description- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Context
public Context()
Empty Constructor
-
Context
public Context(org.bson.Document document)
Constructor- Parameters:
document
- data in format Document to create context
-
Context
public Context(com.fasterxml.jackson.databind.JsonNode content)
- Parameters:
content
- in format JsonNode to create context
-
Context
public Context(java.lang.String content)
- Parameters:
content
- in format String to create context
-
-
Method Detail
-
newInstance
public VitamDocument<Context> 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<Context>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
-