Package org.cristalise.kernel.entity
Interface C2KLocalObject
- All Known Subinterfaces:
CollectionDescription<E>
- All Known Implementing Classes:
ActivityDef,AgentPath,Aggregation,AggregationDescription,AggregationInstance,C2KLocalObjectMap,Collection,CompositeActivityDef,Dependency,DependencyDescription,DomainPath,Event,History,ItemPath,Job,Outcome,OutcomeAttachment,Path,Property,RolePath,Viewpoint,Workflow
public interface C2KLocalObject
Objects that are to be stored by CRISTAL-iSE Items must implement this interface and be
(un)marshallable by Castor i.e. have a map file properly registered in the kernel.
Domain implementors shall not create new C2KLocalObjects
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidenforceValidName(String name) Use this method to ensure very strict name policyEach 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/JobIDEach object belongs to a specific type defined inClusterTypegetName()Gets the name of the C2KLocalObjectvoidSets the name of the C2KLocalObject
-
Method Details
-
setName
Sets the name of the C2KLocalObject- Parameters:
name- Name of the C2KLocalObject
-
getName
String getName()Gets the name of the C2KLocalObject- Returns:
- name of the C2KLocalObject
-
getClusterType
ClusterType getClusterType()Each object belongs to a specific type defined inClusterType- Returns:
- string id of the type
-
getClusterPath
String getClusterPath()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
-
enforceValidName
Use this method to ensure very strict name policy- Parameters:
name- to be checked- Throws:
IllegalArgumentException- name must be alphanumeric with '_-:~' characters
-