public interface TodoService
| Modifier and Type | Method and Description |
|---|---|
void |
delegate(long todoId,
Collection<String> delegates)
Delegates the to-do identified by its ID to a given set of delegates identified by their
ID-s.
|
void |
escalateTodo(long todoId,
String reason)
Escalates to-do.
|
Collection<Person> |
getAllOnBehalfOf(long todoId,
String personId)
Returns the set of persons on behalf of which the user sees the to-do in his to-do list.
|
TodoAuthorization |
getAuthorization(long todoId,
String personId)
Returns the reason why the person can see the to-do in his to-do list.
|
CompressedData |
getCompressedTodoSavedState(long todoId)
Returns the content of a saved to-do.
|
Collection<Person> |
getCurrentAssignees(long todoId)
Find current assignees for a to-do specified by its ID.
|
TodoEscalation |
getEscalation(long escalationId)
Returns todo escalation for the given id.
|
Collection<TodoEscalation> |
getEscalations(long todoId)
Returns a collection of todo escalations.
|
Todo |
getLockedTodo(long todoId)
Returns the to-do for the given ID including the to-do content and its performers.
|
TodoList |
getPersonalTodoList(PagingCriteria criteria)
Returns the personal list for the current user, the to-dos do not contain the to-do content
nor the to-do performers.
|
Collection<Person> |
getRejecters(long todoId)
Gets persons who reject to-do specified by its ID.
|
Collection<TodoRejection> |
getRejections(long todoId)
Gets rejections for to-do specified by its ID.
|
Todo |
getTodo(long todoId)
Returns the to-do for the given ID including the to-do content and its performers.
|
long |
getTodoCount(TodoListCriteria criteria)
Returns the count of to-dos relevant for the current user.
|
TodoList |
getTodoList(TodoListCriteria criteria)
Returns the list of to-dos relevant for the current user.
|
TodoList |
getTodoListForPerson(String personId,
TodoListCriteria criteria)
Returns the list of to-dos relevant for the user identified by the given
id. |
List<Long> |
getTodoListIdsForPerson(String personId,
TodoListCriteria criteria)
Returns the list of to-dos ids relevant for the user identified by the given
id. |
ByteData |
getTodoSavedState(long todoId)
Returns the content of a saved to-do.
|
Todo |
getTodoWithIncludes(long todoId,
boolean includeContent,
boolean includePerformers)
Returns the to-do for the given ID.
|
boolean |
isUserRejected(long todoId,
String personId)
Returns true if a todo is rejected by a user.
|
void |
lockTodo(long todoId)
Locks the to-do.
|
void |
lockTodoForPerson(long todoId,
String personId)
Locks the to-do for the given person.
|
void |
reassign(long todoId,
PerformerList performers)
Reassigns todo to new performers.
|
void |
rejectAnyTodoForPerson(long todoId,
String personId,
String reason,
boolean rejectInaccessible)
Rejects a to-do specified by its ID by a user, with some reason.
|
void |
rejectTodo(long todoId,
String reason)
Rejects a to-do specified by its ID by a user that is currently logged in, with some reason.
|
void |
rejectTodoForPerson(long todoId,
String personId,
String reason)
Rejects a to-do specified by its ID by a user, with some reason.
|
void |
resetTodo(long todoId)
Resets to-do state.
|
void |
saveTodo(long todoId,
ByteData data)
Saves to-do.
|
TodoList |
searchTodos(TodoCriteria criteria)
Returns the list of to-dos for the given criteria.
|
TodoList |
sendSignalToModelInstance(long modelInstanceId,
ObjectValue signal)
Sends a signal to the process and returns next to-do group.
|
TodoList |
sendSignalToModelInstanceInNewTransaction(long modelInstanceId,
ObjectValue signal)
Sends a signal to the process and returns next to-do group.
|
TodoList |
sendSignalToModelInstanceWithDeadlockRetry(long modelInstanceId,
ObjectValue signal)
Sends a signal to the process and returns next to-do group.
|
void |
setCompressedTodoSavedState(long todoId,
CompressedData data)
Sets the todo saved state.
|
void |
setNotes(long todoId,
String notes)
Sets notes to the todo
|
void |
setPriority(long todoId,
Integer priority)
Sets priority of the todo in personal todo list
|
void |
setTodoSavedState(long todoId,
ByteData data)
Sets the todo saved state.
|
TodoList |
startInterpretModelInstance(long modelInstanceId)
Starts the interpretation of an existing process for given process ID.
|
TodoList |
startInterpretModelInstanceInNewTransaction(long modelInstanceId)
Starts the interpretation of an existing process for given process ID.
|
TodoList |
startInterpretModelInstanceWithDeadlockRetry(long modelInstanceId)
Starts the interpretation of an existing process for given process ID.
|
TodoList |
submitTodo(long todoId,
ByteData data)
Submits the to-do and returns the next to-do group.
|
TodoList |
submitTodoInNewTransaction(long todoId,
ByteData data)
Submits the to-do and returns the next to-do group.
|
TodoList |
submitTodoWithDeadlockRetry(long todoId,
ByteData data)
Submits the to-do and returns the next to-do group.
|
void |
undoDelegation(long todoId)
Undo the to-do delegation for a to-do specified by its ID.
|
void |
undoRejectTodo(long todoId,
String personId)
Undo the rejection of a to-do specified by its ID, by a person specified by its id.
|
void |
unlockTodo(long todoId)
Unlocks to-do.
|
Todo getTodo(long todoId)
todoId - to-do IDTodo getTodoWithIncludes(long todoId, boolean includeContent, boolean includePerformers)
todoId - to-do IDincludeContent - includePerformers - Todo getLockedTodo(long todoId) throws TodoAllocatedException
todoId - to-do IDTodoAllocatedExceptionvoid lockTodo(long todoId)
throws TodoNotFoundException,
TodoAllocatedException,
InvalidTodoStatusException
todoId - to-do IDTodoNotFoundException - if no to-do exists for the given todoIdTodoAllocatedException - if the to-do is already allocated to another personInvalidTodoStatusException - if the to-do is not alivevoid lockTodoForPerson(long todoId,
String personId)
throws TodoNotFoundException,
TodoAllocatedException,
InvalidTodoStatusException,
PersonNotFoundException
todoId - to-do IDpersonId - person ID which will have the to-do lockedTodoNotFoundException - if no to-do exists for the given todoIdTodoAllocatedException - if the to-do is already allocated to another personInvalidTodoStatusException - if the to-do is not alivePersonNotFoundException - if the person with a given id does not exist@RequestWrapper(className="com.whitestein.lsps.human.todo.StartInterpretModelInstance") TodoList startInterpretModelInstance(long modelInstanceId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
modelInstanceId - process IDErrorExceptionInvalidModelInstanceStateExceptionModelInstanceNotFoundException@RequestWrapper(className="com.whitestein.lsps.human.todo.StartInterpretModelInstanceWithDeadlockRetry") TodoList startInterpretModelInstanceWithDeadlockRetry(long modelInstanceId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException, LspsException
modelInstanceId - process IDErrorExceptionInvalidModelInstanceStateExceptionModelInstanceNotFoundExceptionLspsException@RequestWrapper(className="com.whitestein.lsps.human.todo.StartInterpretModelInstanceInNewTransaction") TodoList startInterpretModelInstanceInNewTransaction(long modelInstanceId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
modelInstanceId - process IDErrorExceptionInvalidModelInstanceStateExceptionModelInstanceNotFoundExceptionTodoList sendSignalToModelInstance(long modelInstanceId, ObjectValue signal) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
modelInstanceId - model instance IDsignal - signal to be sent to the processErrorExceptionInvalidModelInstanceStateExceptionModelInstanceNotFoundExceptionTodoList sendSignalToModelInstanceWithDeadlockRetry(long modelInstanceId, ObjectValue signal) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException, LspsException
modelInstanceId - model instance IDsignal - signal to be sent to the processErrorExceptionInvalidModelInstanceStateExceptionModelInstanceNotFoundExceptionLspsExceptionTodoList sendSignalToModelInstanceInNewTransaction(long modelInstanceId, ObjectValue signal) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
modelInstanceId - model instance IDsignal - signal to be sent to the processErrorExceptionInvalidModelInstanceStateExceptionModelInstanceNotFoundExceptionTodoList submitTodo(long todoId, ByteData data) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException
todoId - to-do IDdata - data entered by user in the web page, may be null.TodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymoreTodoAllocatedException - if the to-do is allocated to another personTodoNotAllocatedException - if the to-do is not allocated to the current personErrorException - if there is an error processing the to-doTodoList submitTodoWithDeadlockRetry(long todoId, ByteData data) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException, LspsException
todoId - to-do IDdata - data entered by user in the web pageTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymoreTodoAllocatedException - if the to-do is allocated to another personTodoNotAllocatedException - if the to-do is not allocated to the current personErrorException - if there is an error processing the to-doLspsExceptionTodoList submitTodoInNewTransaction(long todoId, ByteData data) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException
todoId - to-do IDdata - data entered by user in the web pageTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymoreTodoAllocatedException - if the to-do is allocated to another personTodoNotAllocatedException - if the to-do is not allocated to the current personErrorException - if there is an error processing the to-dovoid saveTodo(long todoId,
ByteData data)
throws TodoNotFoundException,
InvalidTodoStatusException,
TodoNotAllocatedException,
TodoAllocatedException
todoId - to-do IDdata - user-entered valuesTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymoreTodoAllocatedException - if the to-do is allocated to another personTodoNotAllocatedException - if the to-do is not allocated to the current personvoid resetTodo(long todoId)
throws TodoNotFoundException
todoId - TodoNotFoundException - if no to-do exists for the given todoIdvoid unlockTodo(long todoId)
throws TodoNotFoundException,
InvalidTodoStatusException
todoId - to-do IDTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusExceptionTodoList getTodoList(TodoListCriteria criteria)
criteria - NullPointerException - if criteria is nulllong getTodoCount(TodoListCriteria criteria)
criteria - NullPointerException - if criteria is nullTodoList getTodoListForPerson(String personId, TodoListCriteria criteria) throws PersonNotFoundException
id.personId - the id of a personcriteria - NullPointerException - if personId or criteria is nullPersonNotFoundException - if no person with the given personId existsList<Long> getTodoListIdsForPerson(String personId, TodoListCriteria criteria) throws PersonNotFoundException
id.personId - criteria - PersonNotFoundExceptionTodoList searchTodos(TodoCriteria criteria)
criteria - to-do criteriaNullPointerException - if criteria is nullTodoList getPersonalTodoList(PagingCriteria criteria)
criteria - paging criteriaNullPointerException - if criteria is nullvoid escalateTodo(long todoId,
String reason)
throws TodoNotFoundException,
InvalidTodoStatusException,
ErrorException
todoId - to-do IDreason - reason of escalationTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymoreErrorExceptionvoid rejectTodo(long todoId,
String reason)
throws TodoNotFoundException,
InvalidTodoStatusException
todoId - to-do IDreason - reason of rejectionTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymorevoid rejectTodoForPerson(long todoId,
String personId,
String reason)
throws TodoNotFoundException,
InvalidTodoStatusException
todoId - to-do IDpersonId - reason - reason of rejectionTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymorevoid rejectAnyTodoForPerson(long todoId,
String personId,
String reason,
boolean rejectInaccessible)
throws TodoNotFoundException,
InvalidTodoStatusException
todoId - to-do IDpersonId - reason - reason of rejectionrejectInaccessible - if true todos for that the current person can't access can be rejectedTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymorevoid undoRejectTodo(long todoId,
String personId)
throws TodoNotFoundException,
InvalidTodoStatusException,
PersonNotFoundException
todoId - to-do IDpersonId - id of person who rejected the to-doNullPointerException - if personId is nullTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymorePersonNotFoundException - if no person with the given id existsCollection<Person> getRejecters(long todoId) throws TodoNotFoundException
todoId - to-do IDTodoNotFoundException - if no to-do exists for the given todoIdCollection<TodoRejection> getRejections(long todoId) throws TodoNotFoundException
todoId - to-do IDTodoRejections for the to-doTodoNotFoundException - if no to-do exists for the given todoIdTodoEscalation getEscalation(long escalationId) throws TodoEscalationNotFoundException
escalationId - TodoEscalationNotFoundExceptionCollection<TodoEscalation> getEscalations(long todoId) throws TodoNotFoundException
todoId - TodoNotFoundException - if no to-do exists for the given todoIdvoid delegate(long todoId,
Collection<String> delegates)
throws TodoNotFoundException,
InvalidTodoStatusException,
PersonNotFoundException
todoId - to-do IDdelegates - Set of delegate's ID-sNullPointerException - if delegates or any element of delegates is
nullTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymorePersonNotFoundException - if no person with the given delegates existvoid undoDelegation(long todoId)
throws TodoNotFoundException,
InvalidTodoStatusException
todoId - to-do IDTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusExceptionvoid reassign(long todoId,
PerformerList performers)
throws TodoNotFoundException,
InvalidTodoStatusException
todoId - performers - TodoNotFoundExceptionInvalidTodoStatusExceptionCollection<Person> getCurrentAssignees(long todoId) throws TodoNotFoundException
todoId - to-do IDTodoNotFoundException - if no to-do exists for the given todoIdTodoAuthorization getAuthorization(long todoId, String personId) throws TodoNotFoundException, PersonNotFoundException
todoId - to-do IDpersonId - ID of personTodoNotFoundException - if no to-do exists for the given todoIdPersonNotFoundException - if no person exists for the given personIdCollection<Person> getAllOnBehalfOf(long todoId, String personId) throws TodoNotFoundException, PersonNotFoundException
getAuthorization(long, String)), this method returns the set of the to-do
performers that have this user as their substitute. If the to-do is in the user's to-do list
because it was delegated to him, this method returns the person that performed the
delegation. In other cases an empty set will be returned.todoId - personId - TodoNotFoundException - if no to-do exists for the given todoIdPersonNotFoundException - if no person exists for the given personIdvoid setPriority(long todoId,
Integer priority)
throws TodoNotFoundException,
InvalidTodoStatusException,
TodoNotAllocatedException,
TodoAllocatedException
todoId - priority - TodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymoreTodoAllocatedException - if the to-do is allocated to another personTodoNotAllocatedException - if the to-do is not allocated to the current personvoid setNotes(long todoId,
String notes)
throws TodoNotFoundException,
InvalidTodoStatusException,
TodoNotAllocatedException,
TodoAllocatedException
todoId - notes - TodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymoreTodoAllocatedException - if the to-do is allocated to another personTodoNotAllocatedException - if the to-do is not allocated to the current personIllegalArgumentException - if notes is too longboolean isUserRejected(long todoId,
String personId)
todoId - personId - ByteData getTodoSavedState(long todoId)
todoId - to-do IDCompressedData getCompressedTodoSavedState(long todoId)
todoId - to-do IDvoid setTodoSavedState(long todoId,
ByteData data)
throws TodoNotFoundException,
InvalidTodoStatusException
todoId - data - TodoNotFoundExceptionInvalidTodoStatusException - if the todo is not alivevoid setCompressedTodoSavedState(long todoId,
CompressedData data)
throws TodoNotFoundException,
InvalidTodoStatusException
todoId - data - TodoNotFoundExceptionInvalidTodoStatusException - if the todo is not aliveCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.