Package org.cristalise.kernel.lookup
Class DomainPath
java.lang.Object
org.cristalise.kernel.lookup.Path
org.cristalise.kernel.lookup.DomainPath
- All Implemented Interfaces:
C2KLocalObject
Very simple extension to Path. Only copies constructors and defines root
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDomainPath(String path) DomainPath(String[] path) DomainPath(String path, ItemPath entity) DomainPath(DomainPath parent, String child) -
Method Summary
Modifier and TypeMethodDescriptionEach 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/JobIDgetItemPath(TransactionKey transactionKey) getName()Retrieves the domain name of the pathgetRoot()Returns root as it is defined as 'domain', 'entity' or 'role' in subclassesbooleanChecks if the DomainPath represents a context node (i.e.voidsetItemPath(ItemPath newTarget) voidsetTargetUUID(String uuid) Methods inherited from class org.cristalise.kernel.lookup.Path
dump, equals, exists, exists, getClusterType, getItemPath, getPath, getString, getStringPath, getStringPath, getUUID, hashCode, setName, setPath, setPath, setPath, toString
-
Constructor Details
-
DomainPath
public DomainPath() -
DomainPath
-
DomainPath
-
DomainPath
-
DomainPath
-
-
Method Details
-
getRoot
Description copied from class:PathReturns root as it is defined as 'domain', 'entity' or 'role' in subclasses -
getParent
-
setItemPath
-
getTarget
-
getItemPath
- Overrides:
getItemPathin classPath- Throws:
ObjectNotFoundException
-
getTargetUUID
-
setTargetUUID
-
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
Retrieves the domain name of the path- Returns:
- the last path component;
-
getClusterPath
Description copied from interface:C2KLocalObjectEach 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
-