@PermitAll public class TodoServiceBean extends com.whitestein.lsps.common.SecureAndLoggingService implements com.whitestein.lsps.human.ejb.TodoServiceLocal, TodoServiceRemote
TodoService
.Constructor and Description |
---|
TodoServiceBean()
Creates new instance.
|
TodoServiceBean(TodoDao todoDao,
PersonServiceLocal personService,
ProcessServiceLocal processService,
SecurityManagerServiceLocal securityManager,
CommunicationService communicationService)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
allocateTodo(long todoId,
String personId) |
void |
checkOrphanedTodo(long todoId) |
void |
checkOrphanedTodosFor(String personId,
Set<RoleUnitName> removedRoles) |
void |
delegate(long todoId,
Collection<String> delegateIds)
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.
|
String |
getImplementationType(long todoId) |
Todo |
getLockedTodo(long todoId)
Returns the to-do for the given ID including the to-do content and its performers.
|
List<Long> |
getNextTodoIds(ExecutionTrace et,
long modelInstanceId,
String thisTodoNamespace) |
TodoList |
getNextTodos(ExecutionTrace et,
long modelInstanceId,
String thisTodoNamespace) |
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.
|
Long |
getTodoId(long modelInstanceId,
long taskId)
Returns to-do id.
|
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 |
reassignTodo(long todoId,
Set<Performer> 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.
|
ExecutionTrace |
submit(long todoId,
ModelInstance detachedModelInstance) |
TodoList |
submitTodo(long todoId,
ByteData result)
Submits the to-do and returns the next to-do group.
|
TodoList |
submitTodo(long todoId,
ModelInstance detachedModelInstance) |
TodoList |
submitTodoInNewTransaction(long todoId,
ByteData result)
Submits the to-do and returns the next to-do group.
|
TodoList |
submitTodoInNewTransaction(long todoId,
ModelInstance detachedModelInstance) |
TodoList |
submitTodoWithDeadlockRetry(long todoId,
ByteData result)
Submits the to-do and returns the next to-do group.
|
TodoList |
submitTodoWithDeadlockRetry(long todoId,
ModelInstance detachedModelInstance) |
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.
|
public TodoServiceBean()
public TodoServiceBean(TodoDao todoDao, PersonServiceLocal personService, ProcessServiceLocal processService, SecurityManagerServiceLocal securityManager, CommunicationService communicationService)
todoDao
- personService
- processService
- securityManager
- communicationService
- NullPointerException
- if any of the arguments is null@RightsAllowed(value="ModelInstance:Create") public TodoList startInterpretModelInstance(long modelInstanceId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
TodoService
startInterpretModelInstance
in interface TodoService
modelInstanceId
- process IDModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
@RightsAllowed(value="ModelInstance:Create") public TodoList startInterpretModelInstanceWithDeadlockRetry(long modelInstanceId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, LspsException
TodoService
startInterpretModelInstanceWithDeadlockRetry
in interface TodoService
modelInstanceId
- process IDModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
LspsException
@RightsAllowed(value="ModelInstance:Create") public TodoList startInterpretModelInstanceInNewTransaction(long modelInstanceId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
TodoService
startInterpretModelInstanceInNewTransaction
in interface TodoService
modelInstanceId
- process IDModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"}) @DoNotLog(exceptionClasses=java.security.AccessControlException.class) public Todo getTodo(long todoId)
TodoService
getTodo
in interface TodoService
todoId
- to-do ID@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"}) @DoNotLog(exceptionClasses=java.security.AccessControlException.class) public Todo getTodoWithIncludes(long todoId, boolean includeContent, boolean includePerformers)
TodoService
getTodoWithIncludes
in interface TodoService
todoId
- to-do ID@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"}) @DoNotLog(exceptionClasses=java.security.AccessControlException.class) public ByteData getTodoSavedState(long todoId)
TodoService
getTodoSavedState
in interface TodoService
todoId
- to-do ID@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"}) @DoNotLog(exceptionClasses=java.security.AccessControlException.class) public CompressedData getCompressedTodoSavedState(long todoId)
TodoService
getCompressedTodoSavedState
in interface TodoService
todoId
- to-do ID@RightsAllowed(value="Todo:Write_All") @DoNotLog(exceptionClasses=java.security.AccessControlException.class) public void setTodoSavedState(long todoId, ByteData data) throws TodoNotFoundException, InvalidTodoStatusException
TodoService
setTodoSavedState
in interface TodoService
TodoNotFoundException
InvalidTodoStatusException
- if the todo is not alive@RightsAllowed(value="Todo:Write_All") @DoNotLog(exceptionClasses=java.security.AccessControlException.class) public void setCompressedTodoSavedState(long todoId, CompressedData data) throws TodoNotFoundException, InvalidTodoStatusException
TodoService
setCompressedTodoSavedState
in interface TodoService
TodoNotFoundException
InvalidTodoStatusException
- if the todo is not alive@RightsAllowed(value="Todo:Process") @DoNotLog(exceptionClasses={TodoAllocatedException.class,java.security.AccessControlException.class}) public Todo getLockedTodo(long todoId) throws TodoAllocatedException
TodoService
getLockedTodo
in interface TodoService
todoId
- to-do IDTodoAllocatedException
@RightsAllowed(value="Todo:Process") public void lockTodo(long todoId) throws TodoNotFoundException, InvalidTodoStatusException, TodoAllocatedException
TodoService
lockTodo
in interface TodoService
todoId
- to-do IDTodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not aliveTodoAllocatedException
- if the to-do is already allocated to another person@RightsAllowed(value="Todo:Process") public void lockTodoForPerson(long todoId, String personId) throws TodoNotFoundException, TodoAllocatedException, InvalidTodoStatusException, PersonNotFoundException
TodoService
lockTodoForPerson
in interface TodoService
todoId
- to-do IDpersonId
- person ID which will have the to-do lockedTodoNotFoundException
- if no to-do exists for the given todoId
TodoAllocatedException
- 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@RightsAllowed(value="Todo:Process") public void resetTodo(long todoId) throws TodoNotFoundException
TodoService
resetTodo
in interface TodoService
TodoNotFoundException
- if no to-do exists for the given todoId
@RightsAllowed(value="Todo:Process") public ExecutionTrace submit(long todoId, ModelInstance detachedModelInstance) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException
submit
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
TodoNotFoundException
InvalidTodoStatusException
TodoNotAllocatedException
TodoAllocatedException
ErrorException
@RightsAllowed(value="Todo:Process") public TodoList submitTodo(long todoId, ByteData result) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException
TodoService
submitTodo
in interface TodoService
todoId
- to-do IDresult
- data entered by user in the web page, may be null.TodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not alive anymoreTodoNotAllocatedException
- if the to-do is not allocated to the current personTodoAllocatedException
- if the to-do is allocated to another personErrorException
- if there is an error processing the to-do@RightsAllowed(value="Todo:Process") public TodoList submitTodo(long todoId, ModelInstance detachedModelInstance) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException
submitTodo
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
TodoNotFoundException
InvalidTodoStatusException
TodoNotAllocatedException
TodoAllocatedException
ErrorException
@RightsAllowed(value="Todo:Process") public TodoList submitTodoWithDeadlockRetry(long todoId, ByteData result) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException, LspsException
TodoService
submitTodoWithDeadlockRetry
in interface TodoService
todoId
- to-do IDresult
- data entered by user in the web pageTodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not alive anymoreTodoNotAllocatedException
- if the to-do is not allocated to the current personTodoAllocatedException
- if the to-do is allocated to another personErrorException
- if there is an error processing the to-doLspsException
@RightsAllowed(value="Todo:Process") public TodoList submitTodoWithDeadlockRetry(long todoId, ModelInstance detachedModelInstance) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException, LspsException
submitTodoWithDeadlockRetry
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
TodoNotFoundException
InvalidTodoStatusException
TodoNotAllocatedException
TodoAllocatedException
ErrorException
LspsException
@RightsAllowed(value="Todo:Process") public TodoList submitTodoInNewTransaction(long todoId, ByteData result) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException
TodoService
submitTodoInNewTransaction
in interface TodoService
todoId
- to-do IDresult
- data entered by user in the web pageTodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not alive anymoreTodoNotAllocatedException
- if the to-do is not allocated to the current personTodoAllocatedException
- if the to-do is allocated to another personErrorException
- if there is an error processing the to-do@RightsAllowed(value="Todo:Process") public TodoList submitTodoInNewTransaction(long todoId, ModelInstance detachedModelInstance) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException
submitTodoInNewTransaction
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
TodoNotFoundException
InvalidTodoStatusException
TodoNotAllocatedException
TodoAllocatedException
ErrorException
@RightsAllowed(value="Todo:Process") public TodoList getNextTodos(ExecutionTrace et, long modelInstanceId, String thisTodoNamespace)
getNextTodos
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
@RightsAllowed(value="Todo:Process") public List<Long> getNextTodoIds(ExecutionTrace et, long modelInstanceId, String thisTodoNamespace)
getNextTodoIds
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
@RightsAllowed(value="Todo:Process") public void saveTodo(long todoId, ByteData data) throws TodoNotFoundException, InvalidTodoStatusException
TodoService
saveTodo
in interface TodoService
todoId
- to-do IDdata
- user-entered valuesTodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not alive anymore@RightsAllowed(value="Todo:Process") public void unlockTodo(long todoId) throws TodoNotFoundException, InvalidTodoStatusException
TodoService
unlockTodo
in interface TodoService
todoId
- to-do IDTodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
@RightsAllowed(value="Signal:Send") public TodoList sendSignalToModelInstance(long modelInstanceId, ObjectValue signal) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
TodoService
sendSignalToModelInstance
in interface TodoService
modelInstanceId
- model instance IDsignal
- signal to be sent to the processModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
@RightsAllowed(value="Signal:Send") public TodoList sendSignalToModelInstanceWithDeadlockRetry(long modelInstanceId, ObjectValue signal) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException, LspsException
TodoService
sendSignalToModelInstanceWithDeadlockRetry
in interface TodoService
modelInstanceId
- model instance IDsignal
- signal to be sent to the processModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
LspsException
@RightsAllowed(value="Signal:Send") public TodoList sendSignalToModelInstanceInNewTransaction(long modelInstanceId, ObjectValue signal) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
TodoService
sendSignalToModelInstanceInNewTransaction
in interface TodoService
modelInstanceId
- model instance IDsignal
- signal to be sent to the processModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
@RightsAllowed(value={"Todo:Read_All","Todo:Read_Own"}) public TodoList getTodoList(TodoListCriteria criteria)
TodoService
getTodoList
in interface TodoService
public long getTodoCount(TodoListCriteria criteria)
TodoService
getTodoCount
in interface TodoService
@RightsAllowed(value={"Todo:Read_All","Todo:Read_Own"}) @DoNotLog(exceptionClasses=java.security.AccessControlException.class) public TodoList getTodoListForPerson(String personId, TodoListCriteria criteria) throws PersonNotFoundException
TodoService
id
.getTodoListForPerson
in interface TodoService
personId
- the id of a personPersonNotFoundException
- if no person with the given personId
existspublic List<Long> getTodoListIdsForPerson(String personId, TodoListCriteria criteria) throws PersonNotFoundException
TodoService
id
.getTodoListIdsForPerson
in interface TodoService
PersonNotFoundException
@RightsAllowed(value="Todo:Read") public TodoList searchTodos(TodoCriteria criteria)
TodoService
searchTodos
in interface TodoService
criteria
- to-do criteria@RightsAllowed(value={"Todo:Read_All","Todo:Read_Own"}) public TodoList getPersonalTodoList(PagingCriteria criteria)
TodoService
getPersonalTodoList
in interface TodoService
criteria
- paging criteria@RightsAllowed(value={"Todo:Escalate_Own","Todo:Escalate_All"}) public void escalateTodo(long todoId, String reason) throws TodoNotFoundException, InvalidTodoStatusException, ErrorException
TodoService
escalateTodo
in interface TodoService
todoId
- to-do IDreason
- reason of escalationTodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not alive anymoreErrorException
@RightsAllowed(value="Todo:Reject") public void rejectTodo(long todoId, String reason) throws TodoNotFoundException, InvalidTodoStatusException
TodoService
rejectTodo
in interface TodoService
todoId
- to-do IDreason
- reason of rejectionTodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not alive anymore@RightsAllowed(value="Todo:Reject") public void rejectTodoForPerson(long todoId, String personId, String reason) throws TodoNotFoundException, InvalidTodoStatusException
TodoService
rejectTodoForPerson
in interface TodoService
todoId
- to-do IDreason
- reason of rejectionTodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not alive anymore@RightsAllowed(value="Todo:Reject") public void rejectAnyTodoForPerson(long todoId, String personId, String reason, boolean rejectInaccessible) throws TodoNotFoundException, InvalidTodoStatusException
TodoService
rejectAnyTodoForPerson
in interface TodoService
todoId
- to-do IDreason
- 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 todoId
InvalidTodoStatusException
- if the to-do is not alive anymore@RightsAllowed(value="Todo:Undo_Reject") public void undoRejectTodo(long todoId, String personId) throws TodoNotFoundException, InvalidTodoStatusException, PersonNotFoundException
TodoService
undoRejectTodo
in interface TodoService
todoId
- to-do IDpersonId
- id of person who rejected the to-doTodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not alive anymorePersonNotFoundException
- if no person with the given id
exists@RightsAllowed(value="Todo:Read_Assignees") public Collection<Person> getRejecters(long todoId) throws TodoNotFoundException
TodoService
getRejecters
in interface TodoService
todoId
- to-do IDTodoNotFoundException
- if no to-do exists for the given todoId
@RightsAllowed(value="Todo:Read_Assignees") public Collection<TodoRejection> getRejections(long todoId) throws TodoNotFoundException
TodoService
getRejections
in interface TodoService
todoId
- to-do IDTodoRejection
s for the to-doTodoNotFoundException
- if no to-do exists for the given todoId
@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"}) public TodoEscalation getEscalation(long escalationId) throws TodoEscalationNotFoundException
TodoService
getEscalation
in interface TodoService
TodoEscalationNotFoundException
@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"}) public Collection<TodoEscalation> getEscalations(long todoId) throws TodoNotFoundException
TodoService
getEscalations
in interface TodoService
TodoNotFoundException
- if no to-do exists for the given todoId
@RightsAllowed(value={"Todo:Delegate_All","Todo:Delegate_Own"}) public void delegate(long todoId, Collection<String> delegateIds) throws TodoNotFoundException, InvalidTodoStatusException, PersonNotFoundException
TodoService
delegate
in interface TodoService
todoId
- to-do IDdelegateIds
- Set of delegate's ID-sTodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not alive anymorePersonNotFoundException
- if no person with the given delegates
exist@RightsAllowed(value="Todo:Delegate_All") public void undoDelegation(long todoId) throws TodoNotFoundException, InvalidTodoStatusException
TodoService
undoDelegation
in interface TodoService
todoId
- to-do IDTodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
@RightsAllowed(value="Todo:Read_Assignees") public Collection<Person> getCurrentAssignees(long todoId) throws TodoNotFoundException
TodoService
getCurrentAssignees
in interface TodoService
todoId
- to-do IDTodoNotFoundException
- if no to-do exists for the given todoId
@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"}) public TodoAuthorization getAuthorization(long todoId, String personId) throws TodoNotFoundException, PersonNotFoundException
TodoService
getAuthorization
in interface TodoService
todoId
- to-do IDpersonId
- ID of personTodoNotFoundException
- if no to-do exists for the given todoId
PersonNotFoundException
- if no person exists for the given personId
@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"}) public Collection<Person> getAllOnBehalfOf(long todoId, String personId) throws TodoNotFoundException, PersonNotFoundException
TodoService
TodoService.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.getAllOnBehalfOf
in interface TodoService
TodoNotFoundException
- if no to-do exists for the given todoId
PersonNotFoundException
- if no person exists for the given personId
@RightsAllowed(value="Todo:Process") public void setNotes(long todoId, String notes) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException
TodoService
setNotes
in interface TodoService
TodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not alive anymoreTodoNotAllocatedException
- if the to-do is not allocated to the current personTodoAllocatedException
- if the to-do is allocated to another person@RightsAllowed(value="Todo:Process") public void setPriority(long todoId, Integer priority) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException
TodoService
setPriority
in interface TodoService
TodoNotFoundException
- if no to-do exists for the given todoId
InvalidTodoStatusException
- if the to-do is not alive anymoreTodoNotAllocatedException
- if the to-do is not allocated to the current personTodoAllocatedException
- if the to-do is allocated to another person@RightsAllowed(value="Todo:Read_All") public void checkOrphanedTodo(long todoId)
checkOrphanedTodo
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
@RightsAllowed(value="Todo:Read_All") public void checkOrphanedTodosFor(String personId, Set<RoleUnitName> removedRoles)
checkOrphanedTodosFor
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
public void reassign(long todoId, PerformerList performers) throws TodoNotFoundException, InvalidTodoStatusException
TodoService
reassign
in interface TodoService
TodoNotFoundException
InvalidTodoStatusException
@RightsAllowed(value="Todo:Reassign") public void reassignTodo(long todoId, Set<Performer> performers) throws TodoNotFoundException, InvalidTodoStatusException
reassignTodo
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
TodoNotFoundException
InvalidTodoStatusException
public void allocateTodo(long todoId, String personId) throws TodoNotFoundException, InvalidTodoStatusException, ErrorException
allocateTodo
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
TodoNotFoundException
InvalidTodoStatusException
ErrorException
public String getImplementationType(long todoId) throws TodoNotFoundException
getImplementationType
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
TodoNotFoundException
public boolean isUserRejected(long todoId, String personId)
TodoService
isUserRejected
in interface TodoService
public Long getTodoId(long modelInstanceId, long taskId)
getTodoId
in interface com.whitestein.lsps.human.ejb.TodoServiceLocal
modelInstanceId
- taskId
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.