Class RolePath

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

@Immutable public class RolePath extends Path
  • Constructor Details

    • RolePath

      public RolePath()
    • RolePath

      public RolePath(String path)
    • RolePath

      public RolePath(RolePath parent, String roleName)
    • RolePath

      public RolePath(RolePath parent, String roleName, Set<String> newPermissions)
    • RolePath

      public RolePath(RolePath parent, String roleName, List<String> newPermissions)
    • RolePath

      public RolePath(String path, boolean jobList)
    • RolePath

      public RolePath(String path, boolean jobList, Set<String> newPermissions)
    • RolePath

      public RolePath(String path, boolean jobList, List<String> newPermissions)
    • RolePath

      public RolePath(String[] path, boolean jobList)
    • RolePath

      public RolePath(String[] path, boolean jobList, Set<String> newPermissions)
    • RolePath

      public RolePath(String[] path, boolean jobList, List<String> newPermissions)
    • RolePath

      public RolePath(RolePath parent, String roleName, boolean jobList)
    • RolePath

      public RolePath(RolePath parent, String roleName, boolean jobList, Set<String> newPermissions)
    • RolePath

      public RolePath(RolePath parent, String roleName, boolean jobList, List<String> newPermissions)
  • Method Details

    • getParent

      public RolePath getParent() throws ObjectNotFoundException
      Throws:
      ObjectNotFoundException
    • getParent

      public RolePath getParent(TransactionKey transactionKey) throws ObjectNotFoundException
      Throws:
      ObjectNotFoundException
    • hasJobList

      public boolean hasJobList()
      Returns:
      Returns the hasJobList.
    • setHasJobList

      public void setHasJobList(boolean hasJobList)
      Parameters:
      hasJobList - The hasJobList to set.
    • getPermissions

      public Set<String> getPermissions()
    • getPermissionsList

      public List<String> getPermissionsList()
    • setPermissions

      public void setPermissions(List<String> newPermissions)
    • setPermissions

      public void setPermissions(Set<String> newPermissions)
    • getChildren

      public Iterator<Path> getChildren()
    • getChildren

      public Iterator<Path> getChildren(TransactionKey transactionKey)
    • dump

      public String dump()
      Overrides:
      dump in class Path
    • 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
    • getName

      public String getName()
      Description copied from interface: C2KLocalObject
      Gets the name of the C2KLocalObject
      Returns:
      name of the C2KLocalObject
    • 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