Class TaskService
- java.lang.Object
-
- fr.paris.lutece.plugins.taskstack.service.TaskService
-
public class TaskService extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskDtocreateTask(TaskDto taskDto, RequestAuthor author, String clientCode)voiddeleteTask(Task task)TaskDtogetTask(String strTaskCode)List<TaskDto>getTasks(String strResourceId, String strResourceType)static TaskServiceinstance()List<TaskDto>search(String _strTaskType, List<TaskStatusType> _enumTaskStatus, Integer _nNbDaysSinceCreated, CreationDateOrdering creationDateOrdering)voidupdateTaskStatus(String strTaskCode, TaskStatusType newStatus, RequestAuthor author, String clientCode)
-
-
-
Method Detail
-
instance
public static TaskService instance()
-
createTask
public TaskDto createTask(TaskDto taskDto, RequestAuthor author, String clientCode) throws TaskStackException
- Throws:
TaskStackException
-
updateTaskStatus
public void updateTaskStatus(String strTaskCode, TaskStatusType newStatus, RequestAuthor author, String clientCode) throws TaskStackException
- Throws:
TaskStackException
-
getTask
public TaskDto getTask(String strTaskCode) throws TaskStackException
- Throws:
TaskStackException
-
getTasks
public List<TaskDto> getTasks(String strResourceId, String strResourceType) throws TaskStackException
- Throws:
TaskStackException
-
search
public List<TaskDto> search(String _strTaskType, List<TaskStatusType> _enumTaskStatus, Integer _nNbDaysSinceCreated, CreationDateOrdering creationDateOrdering) throws TaskStackException
- Throws:
TaskStackException
-
deleteTask
public void deleteTask(Task task) throws TaskStackException
- Throws:
TaskStackException
-
-