Package org.cristalise.kernel.events
Class History
- All Implemented Interfaces:
Map<String,,Event> C2KLocalObject
The History is an instance of
C2KLocalObjectMap
which provides a live view onto the Events of an Item.-
Nested Class Summary
-
Field Summary
Fields inherited from class org.cristalise.kernel.persistency.C2KLocalObjectMap
clusterType, itemPath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEvent(AgentPath agentPath, String agentRole, String stepName, String stepPath, String stepType, StateMachine stateMachine, int transitionId) addEvent(AgentPath agentPath, String agentRole, String stepName, String stepPath, String stepType, StateMachine stateMachine, int transitionId, String timeString) addEvent(AgentPath agentPath, String agentRole, String stepName, String stepPath, String stepType, Schema schema, StateMachine stateMachine, int transitionId, String viewName) addEvent(AgentPath agentPath, String agentRole, String stepName, String stepPath, String stepType, Schema schema, StateMachine stateMachine, int transitionId, String viewName, boolean hasAttachment) addEvent(AgentPath agentPath, String agentRole, String stepName, String stepPath, String stepType, Schema schema, StateMachine stateMachine, int transitionId, String viewName, String timeString) booleancontainsKey(Integer id) Events are never deleted and they are numbered incrementally, which means id >= 0 and id invalid input: '<'= lastIdbooleancontainsKey(Object key) Events are never deleted and they are numbered incrementally, which means key >= 0 and key invalid input: '<'= lastIdentrySet()getEvent(int id) History contains the consecutive list of Event based in integer IDs, which means the list of Keys can be computed from lastId;intsize()values()Methods inherited from class org.cristalise.kernel.persistency.C2KLocalObjectMap
clear, containsValue, get, getClusterPath, getLastId, getName, isEmpty, keySet, put, putAll, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cristalise.kernel.entity.C2KLocalObject
getClusterTypeMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
History
-
History
-
-
Method Details
-
getEvent
-
get
-
remove
-
addEvent
-
addEvent
-
addEvent
-
addEvent
public Event addEvent(AgentPath agentPath, String agentRole, String stepName, String stepPath, String stepType, StateMachine stateMachine, int transitionId, String timeString) throws InvalidDataException - Throws:
InvalidDataException
-
addEvent
public Event addEvent(AgentPath agentPath, String agentRole, String stepName, String stepPath, String stepType, Schema schema, StateMachine stateMachine, int transitionId, String viewName, String timeString) throws InvalidDataException - Throws:
InvalidDataException
-
loadKeys
History contains the consecutive list of Event based in integer IDs, which means the list of Keys can be computed from lastId;- Overrides:
loadKeysin classC2KLocalObjectMap<Event>- Throws:
PersistencyException
-
list
-
entrySet
-
values
-
size
public int size() -
containsKey
Events are never deleted and they are numbered incrementally, which means id >= 0 and id invalid input: '<'= lastId -
containsKey
Events are never deleted and they are numbered incrementally, which means key >= 0 and key invalid input: '<'= lastId- Specified by:
containsKeyin interfaceMap<String,Event> - Overrides:
containsKeyin classC2KLocalObjectMap<Event>
-