Class TaskHome
- java.lang.Object
-
- fr.paris.lutece.plugins.taskstack.business.task.TaskHome
-
public class TaskHome extends Object
-
-
Constructor Summary
Constructors Constructor Description TaskHome()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Taskcreate(Task task)static voiddelete(int taskId)static voiddelete(Task task)static Taskget(int taskId)static Taskget(String taskCode)static List<Task>get(String strResourceId, String strResourceType)static List<Task>getExpiredTasks(String retention)static List<Task>search(String strTaskType, List<TaskStatusType> enumTaskStatus, Integer nNbDaysSinceCreated, CreationDateOrdering creationDateOrdering)static Taskupdate(Task task)static TimestampupdateStatus(String taskCode, TaskStatusType newStatus, String clientCode)
-
-
-
Method Detail
-
get
public static Task get(String taskCode) throws TaskStackException
- Throws:
TaskStackException
-
get
public static Task get(int taskId) throws TaskStackException
- Throws:
TaskStackException
-
getExpiredTasks
public static List<Task> getExpiredTasks(String retention) throws TaskStackException
- Throws:
TaskStackException
-
create
public static Task create(Task task) throws TaskStackException
- Throws:
TaskStackException
-
update
public static Task update(Task task) throws TaskStackException
- Throws:
TaskStackException
-
updateStatus
public static Timestamp updateStatus(String taskCode, TaskStatusType newStatus, String clientCode) throws TaskStackException
- Throws:
TaskStackException
-
delete
public static void delete(int taskId) throws TaskStackException- Throws:
TaskStackException
-
delete
public static void delete(Task task) throws TaskStackException
- Throws:
TaskStackException
-
search
public static List<Task> search(String strTaskType, List<TaskStatusType> enumTaskStatus, Integer nNbDaysSinceCreated, CreationDateOrdering creationDateOrdering) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
get
public static List<Task> get(String strResourceId, String strResourceType) throws TaskStackException
- Throws:
TaskStackException
-
-