|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.agila.services.task.AbstractTaskService
org.apache.agila.impl.dao.TaskServiceImpl
public class TaskServiceImpl
A provide which delegates to an AgilaDAO
for all of the detailed
persistence methods.
Constructor Summary | |
---|---|
TaskServiceImpl(AgilaDAO dao)
|
Method Summary | |
---|---|
java.util.List |
getTasksForGroups(GroupID[] teamIDs,
int status)
Returns a list of tasks for the groups in which a user belongs. |
java.util.List |
getTasksForInstance(InstanceID instanceID,
int status)
Returns a list of tasks for the given workflow instance which are at the specified status |
protected Task |
internalGetTask(TaskID taskID)
|
protected java.util.List |
internalGetTasksByUserID(UserID userID,
int status)
|
protected void |
internalSave(Task task)
Add or update a task. |
boolean |
lockTaskForUser(TaskID taskID,
UserID userID)
Attempts to lock the given task for the user, to take ownership of the task if noone else has locked it yet. |
int |
setTaskStatusForInstance(InstanceID instanceID,
int oldStatus,
int newStatus)
Updates the status of all tasks of the oldStatus on the given workflow instance to the newStatus. |
void |
unlockTaskForUser(TaskID taskID,
UserID userID)
Unlocks the task for the given user so that its given back to the team for another user to complete. |
Methods inherited from class org.apache.agila.services.task.AbstractTaskService |
---|
assignTask, assignTaskToActors, assignTaskToTeam, getRendererForTask, getResponseHandlerForTask, getTaskByID, getTasksForUser, setActorResolverService, setBusinessProcessService, setInstanceService, setNotificationService, setTaskStatus, setTimerService, setTokenService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskServiceImpl(AgilaDAO dao)
Method Detail |
---|
public java.util.List getTasksForGroups(GroupID[] teamIDs, int status)
TaskService
public boolean lockTaskForUser(TaskID taskID, UserID userID)
TaskService
public java.util.List getTasksForInstance(InstanceID instanceID, int status)
TaskService
public void unlockTaskForUser(TaskID taskID, UserID userID)
TaskService
public int setTaskStatusForInstance(InstanceID instanceID, int oldStatus, int newStatus)
TaskService
oldStatus
- the current status of the tasksnewStatus
- the new status of the tasks
protected void internalSave(Task task)
internalSave
in class AbstractTaskService
protected java.util.List internalGetTasksByUserID(UserID userID, int status)
internalGetTasksByUserID
in class AbstractTaskService
protected Task internalGetTask(TaskID taskID)
internalGetTask
in class AbstractTaskService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |