Class GCubeContext

  • All Implemented Interfaces:
    Serializable, org.gcube.informationsystem.base.reference.Element, org.gcube.informationsystem.base.reference.entities.EntityElement, org.gcube.informationsystem.base.reference.IdentifiableElement, org.gcube.informationsystem.base.reference.SchemaMixedElement, org.gcube.informationsystem.contexts.reference.entities.Context

    public class GCubeContext
    extends org.gcube.informationsystem.contexts.impl.entities.ContextImpl
    Author:
    Luca Frosini (ISTI - CNR)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String AVAILABLE_AT_PROPERTY
      { ...
      protected List<String> availableAt  
      protected SortedSet<org.gcube.informationsystem.model.reference.properties.Event> events  
      static String EVENTS_PROPERTY
      The events occurred to the Contexts.
      protected BasicInformation information  
      static String INFORMATION_PROPERTY
      It contains the basic information for the context
      protected String key  
      static String KEY_PROPERTY
      This information is provided to allowed user only (by role) The symmetric key for the context
      • Fields inherited from class org.gcube.informationsystem.contexts.impl.entities.ContextImpl

        additionalProperties, allowedAdditionalKeys, children, name, parent, state
      • Fields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl

        metadata, uuid
      • Fields inherited from interface org.gcube.informationsystem.contexts.reference.entities.Context

        CHILDREN_PROPERTY, NAME, NAME_PROPERTY, PARENT_PROPERTY, STATE
      • Fields inherited from interface org.gcube.informationsystem.base.reference.Element

        DATETIME_PATTERN, NAME, TYPE_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement

        NAME
      • Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement

        ID_PROPERTY, METADATA_PROPERTY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEvent​(org.gcube.informationsystem.model.reference.properties.Event event)  
      List<String> getAvailableAt()  
      SortedSet<org.gcube.informationsystem.model.reference.properties.Event> getEvents()  
      BasicInformation getInformation()  
      String getKey()  
      void setAvailableAt​(List<String> availableAt)  
      void setEvents​(SortedSet<org.gcube.informationsystem.model.reference.properties.Event> events)  
      void setInformation​(BasicInformation information)  
      void setKey​(String key)  
      • Methods inherited from class org.gcube.informationsystem.contexts.impl.entities.ContextImpl

        addChild, addChild, addChild, addChildFromJson, getAdditionalProperties, getAdditionalProperty, getChildren, getName, getParent, getState, setAdditionalProperties, setAdditionalProperty, setChildrenFromJson, setName, setParent, setParent, setParent, setParentFromJson, setState
      • Methods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl

        getID, getMetadata, setID, setMetadata
      • Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl

        getTypeName, toString
      • Methods inherited from interface org.gcube.informationsystem.base.reference.Element

        getTypeName
      • Methods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement

        getID, getMetadata, setID, setMetadata
    • Field Detail

      • EVENTS_PROPERTY

        public static final String EVENTS_PROPERTY
        The events occurred to the Contexts. creation, renaming, parent change. Some of the event are managed by the resource-registry. Others can be added by an authorized client. This create a sort of journal. See #27707
        See Also:
        Constant Field Values
      • INFORMATION_PROPERTY

        public static final String INFORMATION_PROPERTY
        It contains the basic information for the context
        See Also:
        Constant Field Values
      • KEY_PROPERTY

        public static final String KEY_PROPERTY
        This information is provided to allowed user only (by role) The symmetric key for the context
        See Also:
        Constant Field Values
      • AVAILABLE_AT_PROPERTY

        public static final String AVAILABLE_AT_PROPERTY
        { ... "availableAt" : [ "https://i-marine.d4science.org/group/alienandinvasivespecies", "https://services.d4science.org/group/alienandinvasivespecies" ] ... } For non VRE context this field could be null or could have multiple value. For VRE it is normally one value only (but some exception could exists)
        See Also:
        Constant Field Values
      • events

        protected SortedSet<org.gcube.informationsystem.model.reference.properties.Event> events
    • Constructor Detail

      • GCubeContext

        public GCubeContext​(org.gcube.informationsystem.contexts.reference.entities.Context c)
      • GCubeContext

        protected GCubeContext()
      • GCubeContext

        public GCubeContext​(UUID uuid)
      • GCubeContext

        public GCubeContext​(String name)
      • GCubeContext

        public GCubeContext​(String name,
                            UUID uuid)
    • Method Detail

      • getEvents

        public SortedSet<org.gcube.informationsystem.model.reference.properties.Event> getEvents()
      • setEvents

        public void setEvents​(SortedSet<org.gcube.informationsystem.model.reference.properties.Event> events)
      • addEvent

        public void addEvent​(org.gcube.informationsystem.model.reference.properties.Event event)
      • getKey

        public String getKey()
      • setKey

        public void setKey​(String key)
      • getAvailableAt

        public List<String> getAvailableAt()
      • setAvailableAt

        public void setAvailableAt​(List<String> availableAt)