Class ContextInformation
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.api.contexts.ContextInformation
-
- All Implemented Interfaces:
org.gcube.informationsystem.dag.NodeInformation<org.gcube.informationsystem.contexts.reference.entities.Context>
public class ContextInformation extends Object implements org.gcube.informationsystem.dag.NodeInformation<org.gcube.informationsystem.contexts.reference.entities.Context>
NodeInformationadapter exposing aContext's identity (its UUID) and its parent linkage, so that a collection ofContextinstances can be assembled into aDag-backed tree byContextCache.- Author:
- Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description ContextInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIdentifier(org.gcube.informationsystem.contexts.reference.entities.Context context)List<String>getParentIdentifiers(org.gcube.informationsystem.contexts.reference.entities.Context root, org.gcube.informationsystem.contexts.reference.entities.Context context)
-
-
-
Method Detail
-
getIdentifier
public String getIdentifier(org.gcube.informationsystem.contexts.reference.entities.Context context)
- Specified by:
getIdentifierin interfaceorg.gcube.informationsystem.dag.NodeInformation<org.gcube.informationsystem.contexts.reference.entities.Context>
-
getParentIdentifiers
public List<String> getParentIdentifiers(org.gcube.informationsystem.contexts.reference.entities.Context root, org.gcube.informationsystem.contexts.reference.entities.Context context)
- Specified by:
getParentIdentifiersin interfaceorg.gcube.informationsystem.dag.NodeInformation<org.gcube.informationsystem.contexts.reference.entities.Context>
-
-