@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,
java.lang.String personId) |
void |
checkOrphanedTodo(long todoId) |
void |
checkOrphanedTodosFor(java.lang.String personId,
java.util.Set<RoleUnitName> removedRoles) |
void |
delegate(long todoId,
java.util.Collection<java.lang.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,
java.lang.String reason)
Escalates to-do.
|
java.util.Collection<Person> |
getAllOnBehalfOf(long todoId,
java.lang.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,
java.lang.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.
|
java.util.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.
|
java.util.Collection<TodoEscalation> |
getEscalations(long todoId)
Returns a collection of todo escalations.
|
java.lang.String |
getImplementationType(long todoId) |
Todo |
getLockedTodo(long todoId)
Returns the to-do for the given ID including the to-do content and its performers.
|
java.util.List<java.lang.Long> |
getNextTodoIds(ExecutionTrace et,
long modelInstanceId,
java.lang.String thisTodoNamespace) |
TodoList |
getNextTodos(ExecutionTrace et,
long modelInstanceId,
java.lang.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.
|
java.util.Collection<Person> |
getRejecters(long todoId)
Gets persons who reject to-do specified by its ID.
|
java.util.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.
|
java.lang.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(java.lang.String personId,
TodoListCriteria criteria)
Returns the list of to-dos relevant for the user identified by the given
id. |
java.util.List<java.lang.Long> |
getTodoListIdsForPerson(java.lang.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,
java.lang.String personId)
Returns true if a todo is rejected by a user.
|
void |
lockTodo(long todoId)
Locks the to-do.
|
void |
lockTodoForPerson(long todoId,
java.lang.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,
java.util.Set<Performer> performers) |
void |
rejectAnyTodoForPerson(long todoId,
java.lang.String personId,
java.lang.String reason,
boolean rejectInaccessible)
Rejects a to-do specified by its ID by a user, with some reason.
|
void |
rejectTodo(long todoId,
java.lang.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,
java.lang.String personId,
java.lang.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,
java.lang.String notes)
Sets notes to the todo
|
void |
setPriority(long todoId,
java.lang.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,
java.lang.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 - java.lang.NullPointerException - if any of the arguments is null@RightsAllowed(value="ModelInstance:Create") public TodoList startInterpretModelInstance(long modelInstanceId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
TodoServicestartInterpretModelInstance in interface TodoServicemodelInstanceId - process IDModelInstanceNotFoundExceptionInvalidModelInstanceStateExceptionErrorException@RightsAllowed(value="ModelInstance:Create") public TodoList startInterpretModelInstanceWithDeadlockRetry(long modelInstanceId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, LspsException
TodoServicestartInterpretModelInstanceWithDeadlockRetry in interface TodoServicemodelInstanceId - process IDModelInstanceNotFoundExceptionInvalidModelInstanceStateExceptionErrorExceptionLspsException@RightsAllowed(value="ModelInstance:Create") public TodoList startInterpretModelInstanceInNewTransaction(long modelInstanceId) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
TodoServicestartInterpretModelInstanceInNewTransaction in interface TodoServicemodelInstanceId - process IDModelInstanceNotFoundExceptionInvalidModelInstanceStateExceptionErrorException@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"})
@DoNotLog(exceptionClasses=java.security.AccessControlException.class)
public Todo getTodo(long todoId)
TodoServicegetTodo in interface TodoServicetodoId - 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)
TodoServicegetTodoWithIncludes in interface TodoServicetodoId - to-do ID@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"})
@DoNotLog(exceptionClasses=java.security.AccessControlException.class)
public ByteData getTodoSavedState(long todoId)
TodoServicegetTodoSavedState in interface TodoServicetodoId - to-do ID@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"})
@DoNotLog(exceptionClasses=java.security.AccessControlException.class)
public CompressedData getCompressedTodoSavedState(long todoId)
TodoServicegetCompressedTodoSavedState in interface TodoServicetodoId - to-do ID@RightsAllowed(value="Todo:Write_All")
@DoNotLog(exceptionClasses=java.security.AccessControlException.class)
public void setTodoSavedState(long todoId,
ByteData data)
throws TodoNotFoundException,
InvalidTodoStatusException
TodoServicesetTodoSavedState in interface TodoServiceTodoNotFoundExceptionInvalidTodoStatusException - 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
TodoServicesetCompressedTodoSavedState in interface TodoServiceTodoNotFoundExceptionInvalidTodoStatusException - 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
TodoServicegetLockedTodo in interface TodoServicetodoId - to-do IDTodoAllocatedException@RightsAllowed(value="Todo:Process")
public void lockTodo(long todoId)
throws TodoNotFoundException,
InvalidTodoStatusException,
TodoAllocatedException
TodoServicelockTodo in interface TodoServicetodoId - to-do IDTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - 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,
java.lang.String personId)
throws TodoNotFoundException,
TodoAllocatedException,
InvalidTodoStatusException,
PersonNotFoundException
TodoServicelockTodoForPerson in interface TodoServicetodoId - 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@RightsAllowed(value="Todo:Process")
public void resetTodo(long todoId)
throws TodoNotFoundException
TodoServiceresetTodo in interface TodoServiceTodoNotFoundException - 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.TodoServiceLocalTodoNotFoundExceptionInvalidTodoStatusExceptionTodoNotAllocatedExceptionTodoAllocatedExceptionErrorException@RightsAllowed(value="Todo:Process") public TodoList submitTodo(long todoId, ByteData result) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException
TodoServicesubmitTodo in interface TodoServicetodoId - to-do IDresult - 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 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.TodoServiceLocalTodoNotFoundExceptionInvalidTodoStatusExceptionTodoNotAllocatedExceptionTodoAllocatedExceptionErrorException@RightsAllowed(value="Todo:Process") public TodoList submitTodoWithDeadlockRetry(long todoId, ByteData result) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException, LspsException
TodoServicesubmitTodoWithDeadlockRetry in interface TodoServicetodoId - to-do IDresult - data entered by user in the web pageTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - 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.TodoServiceLocalTodoNotFoundExceptionInvalidTodoStatusExceptionTodoNotAllocatedExceptionTodoAllocatedExceptionErrorExceptionLspsException@RightsAllowed(value="Todo:Process") public TodoList submitTodoInNewTransaction(long todoId, ByteData result) throws TodoNotFoundException, InvalidTodoStatusException, TodoNotAllocatedException, TodoAllocatedException, ErrorException
TodoServicesubmitTodoInNewTransaction in interface TodoServicetodoId - to-do IDresult - data entered by user in the web pageTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - 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.TodoServiceLocalTodoNotFoundExceptionInvalidTodoStatusExceptionTodoNotAllocatedExceptionTodoAllocatedExceptionErrorException@RightsAllowed(value="Todo:Process") public TodoList getNextTodos(ExecutionTrace et, long modelInstanceId, java.lang.String thisTodoNamespace)
getNextTodos in interface com.whitestein.lsps.human.ejb.TodoServiceLocal@RightsAllowed(value="Todo:Process") public java.util.List<java.lang.Long> getNextTodoIds(ExecutionTrace et, long modelInstanceId, java.lang.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
TodoServicesaveTodo in interface TodoServicetodoId - to-do IDdata - user-entered valuesTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymore@RightsAllowed(value="Todo:Process")
public void unlockTodo(long todoId)
throws TodoNotFoundException,
InvalidTodoStatusException
TodoServiceunlockTodo in interface TodoServicetodoId - to-do IDTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException@RightsAllowed(value="Signal:Send") public TodoList sendSignalToModelInstance(long modelInstanceId, ObjectValue signal) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
TodoServicesendSignalToModelInstance in interface TodoServicemodelInstanceId - model instance IDsignal - signal to be sent to the processModelInstanceNotFoundExceptionInvalidModelInstanceStateExceptionErrorException@RightsAllowed(value="Signal:Send") public TodoList sendSignalToModelInstanceWithDeadlockRetry(long modelInstanceId, ObjectValue signal) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException, LspsException
TodoServicesendSignalToModelInstanceWithDeadlockRetry in interface TodoServicemodelInstanceId - model instance IDsignal - signal to be sent to the processModelInstanceNotFoundExceptionInvalidModelInstanceStateExceptionErrorExceptionLspsException@RightsAllowed(value="Signal:Send") public TodoList sendSignalToModelInstanceInNewTransaction(long modelInstanceId, ObjectValue signal) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
TodoServicesendSignalToModelInstanceInNewTransaction in interface TodoServicemodelInstanceId - model instance IDsignal - signal to be sent to the processModelInstanceNotFoundExceptionInvalidModelInstanceStateExceptionErrorException@RightsAllowed(value={"Todo:Read_All","Todo:Read_Own"})
public TodoList getTodoList(TodoListCriteria criteria)
TodoServicegetTodoList in interface TodoServicepublic long getTodoCount(TodoListCriteria criteria)
TodoServicegetTodoCount in interface TodoService@RightsAllowed(value={"Todo:Read_All","Todo:Read_Own"})
@DoNotLog(exceptionClasses=java.security.AccessControlException.class)
public TodoList getTodoListForPerson(java.lang.String personId,
TodoListCriteria criteria)
throws PersonNotFoundException
TodoServiceid.getTodoListForPerson in interface TodoServicepersonId - the id of a personPersonNotFoundException - if no person with the given personId existspublic java.util.List<java.lang.Long> getTodoListIdsForPerson(java.lang.String personId,
TodoListCriteria criteria)
throws PersonNotFoundException
TodoServiceid.getTodoListIdsForPerson in interface TodoServicePersonNotFoundException@RightsAllowed(value="Todo:Read") public TodoList searchTodos(TodoCriteria criteria)
TodoServicesearchTodos in interface TodoServicecriteria - to-do criteria@RightsAllowed(value={"Todo:Read_All","Todo:Read_Own"})
public TodoList getPersonalTodoList(PagingCriteria criteria)
TodoServicegetPersonalTodoList in interface TodoServicecriteria - paging criteria@RightsAllowed(value={"Todo:Escalate_Own","Todo:Escalate_All"})
public void escalateTodo(long todoId,
java.lang.String reason)
throws TodoNotFoundException,
InvalidTodoStatusException,
ErrorException
TodoServiceescalateTodo in interface TodoServicetodoId - to-do IDreason - reason of escalationTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymoreErrorException@RightsAllowed(value="Todo:Reject")
public void rejectTodo(long todoId,
java.lang.String reason)
throws TodoNotFoundException,
InvalidTodoStatusException
TodoServicerejectTodo in interface TodoServicetodoId - to-do IDreason - reason of rejectionTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymore@RightsAllowed(value="Todo:Reject")
public void rejectTodoForPerson(long todoId,
java.lang.String personId,
java.lang.String reason)
throws TodoNotFoundException,
InvalidTodoStatusException
TodoServicerejectTodoForPerson in interface TodoServicetodoId - to-do IDreason - reason of rejectionTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymore@RightsAllowed(value="Todo:Reject")
public void rejectAnyTodoForPerson(long todoId,
java.lang.String personId,
java.lang.String reason,
boolean rejectInaccessible)
throws TodoNotFoundException,
InvalidTodoStatusException
TodoServicerejectAnyTodoForPerson in interface TodoServicetodoId - 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 todoIdInvalidTodoStatusException - if the to-do is not alive anymore@RightsAllowed(value="Todo:Undo_Reject")
public void undoRejectTodo(long todoId,
java.lang.String personId)
throws TodoNotFoundException,
InvalidTodoStatusException,
PersonNotFoundException
TodoServiceundoRejectTodo in interface TodoServicetodoId - to-do IDpersonId - id of person who rejected the to-doTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - if the to-do is not alive anymorePersonNotFoundException - if no person with the given id exists@RightsAllowed(value="Todo:Read_Assignees") public java.util.Collection<Person> getRejecters(long todoId) throws TodoNotFoundException
TodoServicegetRejecters in interface TodoServicetodoId - to-do IDTodoNotFoundException - if no to-do exists for the given todoId@RightsAllowed(value="Todo:Read_Assignees") public java.util.Collection<TodoRejection> getRejections(long todoId) throws TodoNotFoundException
TodoServicegetRejections in interface TodoServicetodoId - to-do IDTodoRejections 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
TodoServicegetEscalation in interface TodoServiceTodoEscalationNotFoundException@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"})
public java.util.Collection<TodoEscalation> getEscalations(long todoId)
throws TodoNotFoundException
TodoServicegetEscalations in interface TodoServiceTodoNotFoundException - if no to-do exists for the given todoId@RightsAllowed(value={"Todo:Delegate_All","Todo:Delegate_Own"})
public void delegate(long todoId,
java.util.Collection<java.lang.String> delegateIds)
throws TodoNotFoundException,
InvalidTodoStatusException,
PersonNotFoundException
TodoServicedelegate in interface TodoServicetodoId - to-do IDdelegateIds - Set of delegate's ID-sTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - 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
TodoServiceundoDelegation in interface TodoServicetodoId - to-do IDTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException@RightsAllowed(value="Todo:Read_Assignees") public java.util.Collection<Person> getCurrentAssignees(long todoId) throws TodoNotFoundException
TodoServicegetCurrentAssignees in interface TodoServicetodoId - 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,
java.lang.String personId)
throws TodoNotFoundException,
PersonNotFoundException
TodoServicegetAuthorization in interface TodoServicetodoId - to-do IDpersonId - ID of personTodoNotFoundException - if no to-do exists for the given todoIdPersonNotFoundException - if no person exists for the given personId@RightsAllowed(value={"Todo:Read_Own","Todo:Read_All"})
public java.util.Collection<Person> getAllOnBehalfOf(long todoId,
java.lang.String personId)
throws TodoNotFoundException,
PersonNotFoundException
TodoServiceTodoService.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 TodoServiceTodoNotFoundException - if no to-do exists for the given todoIdPersonNotFoundException - if no person exists for the given personId@RightsAllowed(value="Todo:Process")
public void setNotes(long todoId,
java.lang.String notes)
throws TodoNotFoundException,
InvalidTodoStatusException,
TodoNotAllocatedException,
TodoAllocatedException
TodoServicesetNotes in interface TodoServiceTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - 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,
java.lang.Integer priority)
throws TodoNotFoundException,
InvalidTodoStatusException,
TodoNotAllocatedException,
TodoAllocatedException
TodoServicesetPriority in interface TodoServiceTodoNotFoundException - if no to-do exists for the given todoIdInvalidTodoStatusException - 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(java.lang.String personId,
java.util.Set<RoleUnitName> removedRoles)
checkOrphanedTodosFor in interface com.whitestein.lsps.human.ejb.TodoServiceLocalpublic void reassign(long todoId,
PerformerList performers)
throws TodoNotFoundException,
InvalidTodoStatusException
TodoServicereassign in interface TodoServiceTodoNotFoundExceptionInvalidTodoStatusException@RightsAllowed(value="Todo:Reassign")
public void reassignTodo(long todoId,
java.util.Set<Performer> performers)
throws TodoNotFoundException,
InvalidTodoStatusException
reassignTodo in interface com.whitestein.lsps.human.ejb.TodoServiceLocalTodoNotFoundExceptionInvalidTodoStatusExceptionpublic void allocateTodo(long todoId,
java.lang.String personId)
throws TodoNotFoundException,
InvalidTodoStatusException,
ErrorException
allocateTodo in interface com.whitestein.lsps.human.ejb.TodoServiceLocalTodoNotFoundExceptionInvalidTodoStatusExceptionErrorExceptionpublic java.lang.String getImplementationType(long todoId)
throws TodoNotFoundException
getImplementationType in interface com.whitestein.lsps.human.ejb.TodoServiceLocalTodoNotFoundExceptionpublic boolean isUserRejected(long todoId,
java.lang.String personId)
TodoServiceisUserRejected in interface TodoServicepublic java.lang.Long getTodoId(long modelInstanceId,
long taskId)
getTodoId in interface com.whitestein.lsps.human.ejb.TodoServiceLocalmodelInstanceId - taskId - Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.