Package pro.taskana.spi.history.api
Interface TaskanaHistory
-
public interface TaskanaHistoryInterface for TASKANA History Service Provider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreate(ClassificationHistoryEvent event)Create a new ClassificationHistoryEvent.voidcreate(TaskHistoryEvent event)Create a new TaskHistoryEvent.voidcreate(WorkbasketHistoryEvent event)Create a new WorkbasketHistoryEvent.voiddeleteHistoryEventsByTaskIds(List<String> taskIds)Delete history events by taskIds.voidinitialize(TaskanaEngine taskanaEngine)Initialize TaskanaHistory service.
-
-
-
Method Detail
-
initialize
void initialize(TaskanaEngine taskanaEngine)
Initialize TaskanaHistory service.- Parameters:
taskanaEngine- TaskanaEngine The Taskana engine for needed initialization.
-
create
void create(TaskHistoryEvent event)
Create a new TaskHistoryEvent.- Parameters:
event- TaskHistoryEvent The event to be created.
-
create
void create(WorkbasketHistoryEvent event)
Create a new WorkbasketHistoryEvent.- Parameters:
event- WorkbasketHistoryEvent The event to be created.
-
create
void create(ClassificationHistoryEvent event)
Create a new ClassificationHistoryEvent.- Parameters:
event- ClassificationHistoryEvent The event to be created.
-
deleteHistoryEventsByTaskIds
void deleteHistoryEventsByTaskIds(List<String> taskIds) throws InvalidArgumentException, NotAuthorizedException
Delete history events by taskIds. Invalid/non-existing taskIds will be ignored- Parameters:
taskIds- the task ids for which all history events must be deleted- Throws:
InvalidArgumentException- If the list of taskIds is nullNotAuthorizedException- If the user has no permission to delete events
-
-