@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
HumanFunctions
getTodoSubmitter
in interface HumanFunctions
ErrorException
public SetHolder getTodoCurrentAssignees(ExecutionContext context, RecordHolder todo) throws ErrorException
HumanFunctions
getTodoCurrentAssignees
in interface HumanFunctions
ErrorException
public SetHolder getTodoPerformers(ExecutionContext context, RecordHolder todo) throws ErrorException
HumanFunctions
getTodoPerformers
in interface HumanFunctions
ErrorException
public SetHolder getTodosFor(ExecutionContext context, RecordHolder person, TodoListCriteria todoListCriteria) throws ErrorException
HumanFunctions
getTodosFor
in interface HumanFunctions
ErrorException
public SetHolder getTodosFor(ExecutionContext context, RecordHolder person, Boolean includeAllocatedByOthers) throws ErrorException
HumanFunctions
getTodosFor
in interface HumanFunctions
ErrorException
public SetHolder getTodosFor(ExecutionContext context, RecordHolder person) throws ErrorException
HumanFunctions
getTodosFor
in interface HumanFunctions
ErrorException
public void unallocateTodo(ExecutionContext context, RecordHolder todo) throws ErrorException
HumanFunctions
unallocateTodo
in interface HumanFunctions
ErrorException
public void allocateTodo(ExecutionContext context, RecordHolder todo, RecordHolder person) throws ErrorException
HumanFunctions
allocateTodo
in interface HumanFunctions
ErrorException
public void reassignTodo(ExecutionContext context, RecordHolder todo, SetHolder performers) throws ErrorException
HumanFunctions
reassignTodo
in interface HumanFunctions
ErrorException
public void rejectTodo(ExecutionContext context, RecordHolder todo, SetHolder persons, String reason)
HumanFunctions
rejectTodo
in interface HumanFunctions
public void deleteSavedDocuments(ExecutionContext context, SetHolder documents) throws ErrorException
HumanFunctions
deleteSavedDocuments
in interface HumanFunctions
ErrorException
public MapHolder getUIHistory(ExecutionContext context) throws ErrorException
HumanFunctions
getUIHistory
in interface HumanFunctions
ErrorException
public RecordHolder getCurrentTodo(ExecutionContext context)
HumanFunctions
getCurrentTodo
in interface HumanFunctions
public void resetTodo(ExecutionContext ctx, RecordHolder todo) throws ErrorException
HumanFunctions
resetTodo
in interface HumanFunctions
ErrorException
public SetHolder getTodoIdsFor(ExecutionContext ctx, RecordHolder person, String titlePattern) throws ErrorException
HumanFunctions
getTodoIdsFor
in interface HumanFunctions
ErrorException
public ListHolder submit(ExecutionContext ctx) throws ErrorException, OptimisticLockException
HumanFunctions
submit
in interface HumanFunctions
ErrorException
OptimisticLockException
public void persist(ExecutionContext ctx) throws ErrorException
persist
in interface HumanFunctions
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.