Interface Context
-
- All Superinterfaces:
Element,EntityElement,IdentifiableElement,SchemaMixedElement,Serializable
- All Known Implementing Classes:
ContextImpl
@TypeMetadata(name="Context", description="This type is the used to define a Context", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface Context extends EntityElement, SchemaMixedElement
https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#Context- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHILDREN_PROPERTYstatic StringNAMEstatic StringNAME_PROPERTYstatic StringPARENT_PROPERTYstatic StringSTATEIndicates the state of Context.-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChild(UUID uuid)voidaddChild(Context child)voidaddChild(IsParentOf isParentOf)Map<String,Object>getAdditionalProperties()ObjectgetAdditionalProperty(String key)List<IsParentOf>getChildren()StringgetName()IsParentOfgetParent()StringgetState()voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String key, Object value)voidsetName(String name)voidsetParent(UUID uuid)voidsetParent(Context context)voidsetParent(IsParentOf isParentOf)voidsetState(String state)-
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
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
NAME_PROPERTY
static final String NAME_PROPERTY
- See Also:
- Constant Field Values
-
PARENT_PROPERTY
static final String PARENT_PROPERTY
- See Also:
- Constant Field Values
-
CHILDREN_PROPERTY
static final String CHILDREN_PROPERTY
- See Also:
- Constant Field Values
-
STATE
static final String STATE
Indicates the state of Context. See #27706 The resource-registry only knows: - created - active - deleted Other statuses can be set by a Manager. The resource-registry will allow the management of instances from non-managers if and only if the state is active. The resource-registry sets the states according to the following: A newly created Context is set as created. Only a manager can use the instances collection; The active state can be set only by a Manager; When a context is deleted, the state is set to deleted, and the security space is removed, but the Vertex representing the Context will be maintained see #19428.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
@ISProperty(name="name", mandatory=true, nullable=false) String getName()
-
setName
void setName(String name)
-
getState
@ISProperty(name="state", mandatory=true, nullable=false, regexpr="[a-z]+") String getState()
-
setState
void setState(String state)
-
getParent
IsParentOf getParent()
-
setParent
void setParent(UUID uuid)
-
setParent
void setParent(Context context)
-
setParent
void setParent(IsParentOf isParentOf)
-
getChildren
List<IsParentOf> getChildren()
-
addChild
void addChild(UUID uuid)
-
addChild
void addChild(Context child)
-
addChild
void addChild(IsParentOf isParentOf)
-
getAdditionalProperties
Map<String,Object> getAdditionalProperties()
- Specified by:
getAdditionalPropertiesin interfaceSchemaMixedElement
-
setAdditionalProperties
void setAdditionalProperties(Map<String,Object> additionalProperties)
- Specified by:
setAdditionalPropertiesin interfaceSchemaMixedElement
-
getAdditionalProperty
Object getAdditionalProperty(String key)
- Specified by:
getAdditionalPropertyin interfaceSchemaMixedElement
-
setAdditionalProperty
void setAdditionalProperty(String key, Object value)
- Specified by:
setAdditionalPropertyin interfaceSchemaMixedElement
-
-