Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      Context()
      Empty Constructor
      Context​(com.fasterxml.jackson.databind.JsonNode content)  
      Context​(java.lang.String content)  
      Context​(org.bson.Document document)
      Constructor
    • 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 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 java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Field Detail

      • IDENTIFIER

        public static final java.lang.String IDENTIFIER
        the Context id
        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 class VitamDocument<Context>
        Parameters:
        content - document structure as json
        Returns:
        new document with the json as content