Class 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 Detail

      • ContextInformation

        public ContextInformation()
    • Method Detail

      • 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>