Package org.cristalise.kernel.lookup
Class ItemPath
java.lang.Object
org.cristalise.kernel.lookup.Path
org.cristalise.kernel.lookup.ItemPath
- All Implemented Interfaces:
C2KLocalObject
- Direct Known Subclasses:
AgentPath
Extends Path to enforce SystemKey structure and support UUID form
-
Field Summary
-
Constructor Summary
Constructors -
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/JobIDgetItemName(TransactionKey transactionKey) getItemPath(TransactionKey transactionKey) getName()Returns the UUID in String formbyte[]getOID()getProxy()getProxy(TransactionKey transactionKey) getRoot()The root of ItemPath is /entitygetUUID()static booleanCheck if the given string contains a UUID.voidvoidString array path e.g.voidclones the path objectprotected voidMethods inherited from class org.cristalise.kernel.lookup.Path
dump, equals, exists, exists, getClusterType, getItemPath, getPath, getString, getStringPath, getStringPath, hashCode, setName, toString
-
Constructor Details
-
ItemPath
public ItemPath() -
ItemPath
-
ItemPath
- Throws:
InvalidItemPathException
-
ItemPath
- Throws:
InvalidItemPathException
-
-
Method Details
-
setPath
Description copied from class:PathString array path e.g. { "Product", "Crystal", "Barrel", "2L", "331013013348" }. The root node name (i.e. entity, domain or role) is removed from the beginning. -
setPath
-
setPath
Description copied from class:Pathclones the path object -
getRoot
The root of ItemPath is /entity -
getItemPath
- Overrides:
getItemPathin classPath- Throws:
ObjectNotFoundException
-
getOID
public byte[] getOID() -
setSysKey
-
getUUID
-
getName
Returns the UUID in String form- Returns:
- name of the C2KLocalObject
-
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
-
isUUID
Check if the given string contains a UUID. Remove the cristal-ise specific '/entity/' prefix if present- Parameters:
entityKey- the entity key of an Item, can contain the '/entity/' prefix- Returns:
- whether the entytyKey is a UUID or not
-
getItemName
-
getItemName
-
getProxy
- Throws:
ObjectNotFoundException
-
getProxy
- Throws:
ObjectNotFoundException
-