@PermitAll public class HumanFunctionsImpl extends Object implements HumanFunctions
| Constructor and Description |
|---|
HumanFunctionsImpl()
Creates new instance.
|
HumanFunctionsImpl(com.whitestein.lsps.human.ejb.TodoServiceLocal todoService,
OrgTypeFactory orgTypeFactory,
HumanTypeFactory humanTypeFactory)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
allocateTodo(ExecutionContext context,
RecordHolder todo,
RecordHolder person)
Allocates the specified todo to the person.
|
void |
deleteSavedDocuments(ExecutionContext context,
SetHolder documents)
Deletes the specified saved documents.
|
RecordHolder |
getCurrentTodo(ExecutionContext context)
Returns the currently opened to-do.
|
SetHolder |
getTodoCurrentAssignees(ExecutionContext context,
RecordHolder todo)
Returns a set of persons the specified todo is currently issued (visible) to, taking into
account also delegation, rejection and substitution.
|
SetHolder |
getTodoIdsFor(ExecutionContext ctx,
RecordHolder person,
String titlePattern)
Returns a set of active todo ids assigned to the specified person according to the criteria.
|
SetHolder |
getTodoPerformers(ExecutionContext context,
RecordHolder todo)
Returns a set of the original performers of the specified todo, as given by the corresponding
task.
|
SetHolder |
getTodosFor(ExecutionContext context,
RecordHolder person)
Returns a set of active todos assigned to the specified person.
|
SetHolder |
getTodosFor(ExecutionContext context,
RecordHolder person,
Boolean includeAllocatedByOthers)
Returns a set of active todos assigned to the specified person.
|
SetHolder |
getTodosFor(ExecutionContext context,
RecordHolder person,
TodoListCriteria todoListCriteria)
Returns a set of active todos assigned to the specified person according to the criteria.
|
RecordHolder |
getTodoSubmitter(ExecutionContext context,
RecordHolder todo)
If the specified todo is in the "Accomplished" state, the function returns the person who
submitted that todo.
|
MapHolder |
getUIHistory(ExecutionContext context)
A function which returns UI history.
|
void |
persist(ExecutionContext ctx) |
void |
reassignTodo(ExecutionContext context,
RecordHolder todo,
SetHolder performers)
Changes the set of performers of the specified todo.
|
void |
rejectTodo(ExecutionContext context,
RecordHolder todo,
SetHolder persons,
String reason)
Reject todo for all specified persons.
|
void |
resetTodo(ExecutionContext ctx,
RecordHolder todo)
Reset state of the todo.
|
ListHolder |
submit(ExecutionContext ctx)
Submits a form that do not use evaluation levels:
Todo Form: Submits todos that do not use evaluation levels.
|
void |
unallocateTodo(ExecutionContext context,
RecordHolder todo)
Unallocates todo.
|
public HumanFunctionsImpl()
public HumanFunctionsImpl(com.whitestein.lsps.human.ejb.TodoServiceLocal todoService,
OrgTypeFactory orgTypeFactory,
HumanTypeFactory humanTypeFactory)
todoService - orgTypeFactory - humanTypeFactory - NullPointerException - if any of the arguments is nullpublic RecordHolder getTodoSubmitter(ExecutionContext context, RecordHolder todo) throws ErrorException
HumanFunctionsgetTodoSubmitter in interface HumanFunctionsErrorExceptionpublic SetHolder getTodoCurrentAssignees(ExecutionContext context, RecordHolder todo) throws ErrorException
HumanFunctionsgetTodoCurrentAssignees in interface HumanFunctionsErrorExceptionpublic SetHolder getTodoPerformers(ExecutionContext context, RecordHolder todo) throws ErrorException
HumanFunctionsgetTodoPerformers in interface HumanFunctionsErrorExceptionpublic SetHolder getTodosFor(ExecutionContext context, RecordHolder person, TodoListCriteria todoListCriteria) throws ErrorException
HumanFunctionsgetTodosFor in interface HumanFunctionsErrorExceptionpublic SetHolder getTodosFor(ExecutionContext context, RecordHolder person, Boolean includeAllocatedByOthers) throws ErrorException
HumanFunctionsgetTodosFor in interface HumanFunctionsErrorExceptionpublic SetHolder getTodosFor(ExecutionContext context, RecordHolder person) throws ErrorException
HumanFunctionsgetTodosFor in interface HumanFunctionsErrorExceptionpublic void unallocateTodo(ExecutionContext context, RecordHolder todo) throws ErrorException
HumanFunctionsunallocateTodo in interface HumanFunctionsErrorExceptionpublic void allocateTodo(ExecutionContext context, RecordHolder todo, RecordHolder person) throws ErrorException
HumanFunctionsallocateTodo in interface HumanFunctionsErrorExceptionpublic void reassignTodo(ExecutionContext context, RecordHolder todo, SetHolder performers) throws ErrorException
HumanFunctionsreassignTodo in interface HumanFunctionsErrorExceptionpublic void rejectTodo(ExecutionContext context, RecordHolder todo, SetHolder persons, String reason)
HumanFunctionsrejectTodo in interface HumanFunctionspublic void deleteSavedDocuments(ExecutionContext context, SetHolder documents) throws ErrorException
HumanFunctionsdeleteSavedDocuments in interface HumanFunctionsErrorExceptionpublic MapHolder getUIHistory(ExecutionContext context) throws ErrorException
HumanFunctionsgetUIHistory in interface HumanFunctionsErrorExceptionpublic RecordHolder getCurrentTodo(ExecutionContext context)
HumanFunctionsgetCurrentTodo in interface HumanFunctionspublic void resetTodo(ExecutionContext ctx, RecordHolder todo) throws ErrorException
HumanFunctionsresetTodo in interface HumanFunctionsErrorExceptionpublic SetHolder getTodoIdsFor(ExecutionContext ctx, RecordHolder person, String titlePattern) throws ErrorException
HumanFunctionsgetTodoIdsFor in interface HumanFunctionsErrorExceptionpublic ListHolder submit(ExecutionContext ctx) throws ErrorException, OptimisticLockException
HumanFunctionssubmit in interface HumanFunctionsErrorExceptionOptimisticLockExceptionpublic void persist(ExecutionContext ctx) throws ErrorException
persist in interface HumanFunctionsErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.