Class GCubeContext
java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.entities.EntityElementImpl
org.gcube.informationsystem.contexts.impl.entities.ContextImpl
org.gcube.resourcemanagement.contexts.impl.entities.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
Extension of Context specific for gCube Resource Management
It contains additional properties like events, information, key, availableAt
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String{ ...The list of availableAt URLsprotected SortedSet<org.gcube.informationsystem.model.reference.properties.Event>The events occurred to the Contextstatic final StringThe events occurred to the Contexts.protected BasicInformationThe basic information for the contextstatic final StringIt contains the basic information for the contextprotected StringThe symmetric key for the contextstatic final StringThis information is provided to allowed user only (by role) The symmetric key for the contextFields inherited from class org.gcube.informationsystem.contexts.impl.entities.ContextImpl
additionalProperties, allowedAdditionalKeys, children, name, parent, stateFields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuidFields inherited from interface org.gcube.informationsystem.contexts.reference.entities.Context
CHILDREN_PROPERTY, NAME, NAME_PROPERTY, PARENT_PROPERTY, STATEFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructorGCubeContext(String name) Constructs a GCubeContext with the given nameGCubeContext(String name, UUID uuid) Constructs a GCubeContext with the given name and UUIDGCubeContext(UUID uuid) Constructs a GCubeContext with the given UUIDGCubeContext(org.gcube.informationsystem.contexts.reference.entities.Context c) Constructs a GCubeContext from a Context -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvent(org.gcube.informationsystem.model.reference.properties.Event event) Adds an event to the Context.Gets the list of availableAt URLsSortedSet<org.gcube.informationsystem.model.reference.properties.Event>Sets the events occurred to the ContextGets the basic information for the contextgetKey()Gets the symmetric key for the contextvoidsetAvailableAt(List<String> availableAt) Sets the list of availableAt URLsvoidSets the events occurred to the ContextvoidsetInformation(BasicInformation information) Sets the basic information for the contextvoidSets the symmetric key for the contextMethods 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, setStateMethods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadataMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadata
-
Field Details
-
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:
-
INFORMATION_PROPERTY
It contains the basic information for the context- See Also:
-
KEY_PROPERTY
This information is provided to allowed user only (by role) The symmetric key for the context- See Also:
-
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:
-
events
The events occurred to the Context -
information
The basic information for the context -
key
The symmetric key for the context -
availableAt
The list of availableAt URLs
-
-
Constructor Details
-
GCubeContext
public GCubeContext(org.gcube.informationsystem.contexts.reference.entities.Context c) Constructs a GCubeContext from a Context- Parameters:
c- the Context
-
GCubeContext
protected GCubeContext()Default constructor -
GCubeContext
Constructs a GCubeContext with the given UUID- Parameters:
uuid- the UUID
-
GCubeContext
Constructs a GCubeContext with the given name- Parameters:
name- the name
-
GCubeContext
Constructs a GCubeContext with the given name and UUID- Parameters:
name- the nameuuid- the UUID
-
-
Method Details
-
getEvents
Sets the events occurred to the Context- Returns:
- the events
-
setEvents
public void setEvents(SortedSet<org.gcube.informationsystem.model.reference.properties.Event> events) Sets the events occurred to the Context- Parameters:
events- the events to set
-
addEvent
public void addEvent(org.gcube.informationsystem.model.reference.properties.Event event) Adds an event to the Context. 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- Parameters:
event- the event to add
-
getInformation
Gets the basic information for the context- Returns:
- the information
-
setInformation
Sets the basic information for the context- Parameters:
information- the information to set
-
getKey
Gets the symmetric key for the context- Returns:
- the key
-
setKey
Sets the symmetric key for the context- Parameters:
key- the key to set
-
getAvailableAt
Gets the list of availableAt URLs- Returns:
- the availableAt
-
setAvailableAt
Sets the list of availableAt URLs- Parameters:
availableAt- the availableAt to set
-