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>
NodeInformation adapter exposing a Context's identity (its UUID) and its parent linkage, so that a collection of Context instances can be assembled into a Dag-backed tree by ContextCache.
Author:
Luca Frosini (ISTI - CNR)
  • Constructor Details

    • ContextInformation

      public ContextInformation()
  • Method Details

    • getIdentifier

      public String getIdentifier(org.gcube.informationsystem.contexts.reference.entities.Context context)
      Specified by:
      getIdentifier in interface org.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:
      getParentIdentifiers in interface org.gcube.informationsystem.dag.NodeInformation<org.gcube.informationsystem.contexts.reference.entities.Context>