Class DomainPath

java.lang.Object
org.cristalise.kernel.lookup.Path
org.cristalise.kernel.lookup.DomainPath
All Implemented Interfaces:
C2KLocalObject

@Immutable public class DomainPath extends Path
Very simple extension to Path. Only copies constructors and defines root
  • Constructor Details

    • DomainPath

      public DomainPath()
    • DomainPath

      public DomainPath(String[] path)
    • DomainPath

      public DomainPath(String path)
    • DomainPath

      public DomainPath(String path, ItemPath entity)
    • DomainPath

      public DomainPath(DomainPath parent, String child)
  • Method Details

    • getRoot

      public String getRoot()
      Description copied from class: Path
      Returns root as it is defined as 'domain', 'entity' or 'role' in subclasses
      Specified by:
      getRoot in class Path
      Returns:
      root as it is defined as 'domain', 'entity' or 'role' in subclasses
    • getParent

      public DomainPath getParent()
    • setItemPath

      public void setItemPath(ItemPath newTarget)
    • getTarget

      public ItemPath getTarget()
    • getItemPath

      public ItemPath getItemPath(TransactionKey transactionKey) throws ObjectNotFoundException
      Overrides:
      getItemPath in class Path
      Throws:
      ObjectNotFoundException
    • getTargetUUID

      public String getTargetUUID()
    • setTargetUUID

      public void setTargetUUID(String uuid)
    • isContext

      public boolean isContext()
      Checks if the DomainPath represents a context node (i.e. its target ItemPath is null). Use this method when target was set already.
      Returns:
      true if the DomainPath represents a context node
    • getName

      public String getName()
      Retrieves the domain name of the path
      Returns:
      the last path component;
    • getClusterPath

      public String getClusterPath()
      Description copied from interface: C2KLocalObject
      Each C2KLocalObject is stored with a path identifier starting with the ClusterType:
      • DomainPath: /Path/Domain/Name
      • ItemPath: /Path/Item
      • AgentPath: /Path/Agent
      • RolePath: /Path/Role/Name
      • Properties: /Property/Name
      • Workflow: /LifeCycle/workflow
      • Collections: /Collection/Name/Version (default Name='last')
      • Outcomes: /Outcome/SchemaName/SchemaVersion/EventID
      • Viewpoints: /ViewPoint/SchemaName/Name (default Name='last')
      • Events: /AuditTrail/EventID
      • Jobs: /Job/JobID
      Returns:
      The path identifier (i.e. primary key) of the object