public class TaskImpl extends ClientImpl implements BaseTask, Serializable
Modifier and Type | Method and Description |
---|---|
Task |
createTask(String subject,
String start,
String end,
String description,
long statusId,
long projectId,
long typeId,
String user,
List<String> notificationUsers,
List<String> externalUsers,
List<String> relatedDocuments,
List<String> relatedFolders,
List<String> relatedRecords,
List<String> relatedMails,
String repeatExpression,
String repeatUntil,
String formatDate,
int repeatTimes,
String reminderStartUnit,
int reminderStartValue,
String reminderEndUnit,
int reminderEndValue)
Create task task.
|
TaskNote |
createTaskNote(long taskId,
String text)
Create task note task note.
|
TaskProject |
createTaskProject(String name,
boolean active,
String description)
Create task project task project.
|
TaskStatus |
createTaskStatus(String name,
boolean finish)
Create task status task status.
|
TaskType |
createTaskType(String name,
boolean active,
String description)
Create task type task type.
|
void |
deleteTask(long taskId)
Delete task.
|
void |
deleteTaskNote(long noteId)
Delete task note.
|
void |
deleteTaskProject(long projectId)
Delete task project.
|
void |
deleteTaskStatus(long statusId)
Delete task status.
|
void |
deleteTaskType(long typeId)
Delete task type.
|
TaskList |
getActiveTasks(long projectId,
long typeId,
long statusId,
String orderColumn,
boolean orderAsc,
int offset,
int limit,
String subject)
Gets active tasks.
|
long |
getActiveTasksCount(long statusId,
long projectId,
long typeId)
Gets active tasks count.
|
TaskList |
getAssignedTasks(long projectId,
long typeId,
long statusId,
String orderColumn,
boolean orderAsc,
int offset,
int limit,
String subject)
Gets assigned tasks.
|
long |
getAssignedTasksCount(long statusId,
long projectId,
long typeId)
Gets assigned tasks count.
|
TaskList |
getFinishedTasks(long projectId,
long typeId,
long statusId,
String orderColumn,
boolean orderAsc,
int offset,
int limit,
String subject)
Gets finished tasks.
|
long |
getFinishedTasksCount(long statusId,
long projectId,
long typeId)
Gets finished tasks count.
|
TaskList |
getNotifiedTasks(long projectId,
long typeId,
long statusId,
String orderColumn,
boolean orderAsc,
int offset,
int limit,
String subject)
Gets notified tasks.
|
long |
getNotifiedTasksCount(long statusId,
long projectId,
long typeId)
Gets notified tasks count.
|
Task |
getTask(long taskId)
Gets task.
|
List<TaskNote> |
getTaskNotes(long taskId)
Gets task notes.
|
TaskProject |
getTaskProject(long projectId)
Gets task project.
|
List<TaskProject> |
getTaskProjects(boolean filterActive)
Gets task projects.
|
List<TaskStatus> |
getTaskStatus()
Gets task status.
|
TaskStatus |
getTaskStatus(long statusId)
Gets task status.
|
TaskType |
getTaskType(long typeId)
Gets task type.
|
List<TaskType> |
getTaskTypes(boolean filterActive)
Gets task types.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
Task |
updateTask(long taskId,
String subject,
String start,
String end,
String description,
long statusId,
long projectId,
long typeId,
String user,
List<String> notificationUsers,
List<String> externalUsers,
List<String> relatedDocuments,
List<String> relatedFolders,
List<String> relatedRecords,
List<String> relatedMails,
String owner,
String repeatExpression,
String repeatUntil,
String formatDate,
int repeatTimes,
int progress,
String reminderStartUnit,
int reminderStartValue,
String reminderEndUnit,
int reminderEndValue)
Update task task.
|
TaskNote |
updateTaskNote(long noteId,
String text)
Update task note task note.
|
TaskProject |
updateTaskProject(long projectId,
boolean active,
String name,
String description)
Update task project task project.
|
TaskStatus |
updateTaskStatus(long statusId,
String name,
boolean finish)
Update task status task status.
|
TaskType |
updateTaskType(long typeId,
boolean active,
String name,
String description)
Update task type task type.
|
getClient, resource, resource
public TaskImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public TaskList getAssignedTasks(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
BaseTask
getAssignedTasks
in interface BaseTask
projectId
- the project idtypeId
- the type idstatusId
- the status idorderColumn
- the order columnorderAsc
- the order ascoffset
- the offsetlimit
- the limitsubject
- the subjectRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic TaskList getActiveTasks(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
BaseTask
getActiveTasks
in interface BaseTask
projectId
- the project idtypeId
- the type idstatusId
- the status idorderColumn
- the order columnorderAsc
- the order ascoffset
- the offsetlimit
- the limitsubject
- the subjectRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic TaskList getFinishedTasks(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
BaseTask
getFinishedTasks
in interface BaseTask
projectId
- the project idtypeId
- the type idstatusId
- the status idorderColumn
- the order columnorderAsc
- the order ascoffset
- the offsetlimit
- the limitsubject
- the subjectRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic TaskList getNotifiedTasks(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
BaseTask
getNotifiedTasks
in interface BaseTask
projectId
- the project idtypeId
- the type idstatusId
- the status idorderColumn
- the order columnorderAsc
- the order ascoffset
- the offsetlimit
- the limitsubject
- the subjectRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic List<TaskStatus> getTaskStatus() throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
BaseTask
getTaskStatus
in interface BaseTask
WebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionUnknownException
- the unknown exceptionpublic List<TaskProject> getTaskProjects(boolean filterActive) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
BaseTask
getTaskProjects
in interface BaseTask
filterActive
- the filter activeWebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionUnknownException
- the unknown exceptionpublic List<TaskType> getTaskTypes(boolean filterActive) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
BaseTask
getTaskTypes
in interface BaseTask
filterActive
- the filter activeWebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionUnknownException
- the unknown exceptionpublic long getAssignedTasksCount(long statusId, long projectId, long typeId) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
BaseTask
getAssignedTasksCount
in interface BaseTask
statusId
- the status idprojectId
- the project idtypeId
- the type idRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic long getActiveTasksCount(long statusId, long projectId, long typeId) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
BaseTask
getActiveTasksCount
in interface BaseTask
statusId
- the status idprojectId
- the project idtypeId
- the type idRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic long getFinishedTasksCount(long statusId, long projectId, long typeId) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
BaseTask
getFinishedTasksCount
in interface BaseTask
statusId
- the status idprojectId
- the project idtypeId
- the type idRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic long getNotifiedTasksCount(long statusId, long projectId, long typeId) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
BaseTask
getNotifiedTasksCount
in interface BaseTask
statusId
- the status idprojectId
- the project idtypeId
- the type idRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic Task createTask(String subject, String start, String end, String description, long statusId, long projectId, long typeId, String user, List<String> notificationUsers, List<String> externalUsers, List<String> relatedDocuments, List<String> relatedFolders, List<String> relatedRecords, List<String> relatedMails, String repeatExpression, String repeatUntil, String formatDate, int repeatTimes, String reminderStartUnit, int reminderStartValue, String reminderEndUnit, int reminderEndValue) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, TaskNotFoundException
BaseTask
createTask
in interface BaseTask
subject
- the subjectstart
- the startend
- the enddescription
- the descriptionstatusId
- the status idprojectId
- the project idtypeId
- the type iduser
- the usernotificationUsers
- the notification usersexternalUsers
- the external usersrelatedDocuments
- the related documentsrelatedFolders
- the related foldersrelatedRecords
- the related recordsrelatedMails
- the related mailsrepeatExpression
- the repeat expressionrepeatUntil
- the repeat untilformatDate
- the format daterepeatTimes
- the repeat timesreminderStartUnit
- the reminder start unitreminderStartValue
- the reminder start valuereminderEndUnit
- the reminder end unitreminderEndValue
- the reminder end valueLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionTaskNotFoundException
- the task not found exceptionpublic Task updateTask(long taskId, String subject, String start, String end, String description, long statusId, long projectId, long typeId, String user, List<String> notificationUsers, List<String> externalUsers, List<String> relatedDocuments, List<String> relatedFolders, List<String> relatedRecords, List<String> relatedMails, String owner, String repeatExpression, String repeatUntil, String formatDate, int repeatTimes, int progress, String reminderStartUnit, int reminderStartValue, String reminderEndUnit, int reminderEndValue) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, TaskNotFoundException
BaseTask
updateTask
in interface BaseTask
taskId
- the task idsubject
- the subjectstart
- the startend
- the enddescription
- the descriptionstatusId
- the status idprojectId
- the project idtypeId
- the type iduser
- the usernotificationUsers
- the notification usersexternalUsers
- the external usersrelatedDocuments
- the related documentsrelatedFolders
- the related foldersrelatedRecords
- the related recordsrelatedMails
- the related mailsowner
- the ownerrepeatExpression
- the repeat expressionrepeatUntil
- the repeat untilformatDate
- the format daterepeatTimes
- the repeat timesprogress
- the progressreminderStartUnit
- the reminder start unitreminderStartValue
- the reminder start valuereminderEndUnit
- the reminder end unitreminderEndValue
- the reminder end valueLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionTaskNotFoundException
- the task not found exceptionpublic void deleteTask(long taskId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
BaseTask
deleteTask
in interface BaseTask
taskId
- the task idLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic TaskProject createTaskProject(String name, boolean active, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
BaseTask
createTaskProject
in interface BaseTask
name
- the nameactive
- the activedescription
- the descriptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionItemExistsException
- the item exists exceptionpublic TaskProject updateTaskProject(long projectId, boolean active, String name, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
BaseTask
updateTaskProject
in interface BaseTask
projectId
- the project idactive
- the activename
- the namedescription
- the descriptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionItemExistsException
- the item exists exceptionpublic void deleteTaskProject(long projectId) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseTask
deleteTaskProject
in interface BaseTask
projectId
- the project idAutomationException
- the automation exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionLockException
- the lock exceptionDatabaseException
- the database exceptionExtensionException
- the extension exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic TaskProject getTaskProject(long projectId) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
BaseTask
getTaskProject
in interface BaseTask
projectId
- the project idWebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionUnknownException
- the unknown exceptionpublic TaskType createTaskType(String name, boolean active, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
BaseTask
createTaskType
in interface BaseTask
name
- the nameactive
- the activedescription
- the descriptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionItemExistsException
- the item exists exceptionpublic TaskType updateTaskType(long typeId, boolean active, String name, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
BaseTask
updateTaskType
in interface BaseTask
typeId
- the type idactive
- the activename
- the namedescription
- the descriptionLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionItemExistsException
- the item exists exceptionpublic void deleteTaskType(long typeId) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseTask
deleteTaskType
in interface BaseTask
typeId
- the type idAutomationException
- the automation exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionLockException
- the lock exceptionDatabaseException
- the database exceptionExtensionException
- the extension exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic TaskType getTaskType(long typeId) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
BaseTask
getTaskType
in interface BaseTask
typeId
- the type idWebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionUnknownException
- the unknown exceptionpublic TaskStatus createTaskStatus(String name, boolean finish) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
BaseTask
createTaskStatus
in interface BaseTask
name
- the namefinish
- the finishLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionItemExistsException
- the item exists exceptionpublic TaskStatus updateTaskStatus(long statusId, String name, boolean finish) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
BaseTask
updateTaskStatus
in interface BaseTask
statusId
- the status idname
- the namefinish
- the finishLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionItemExistsException
- the item exists exceptionpublic void deleteTaskStatus(long statusId) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceException
BaseTask
deleteTaskStatus
in interface BaseTask
statusId
- the status idAutomationException
- the automation exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionLockException
- the lock exceptionDatabaseException
- the database exceptionExtensionException
- the extension exceptionPromotedAsRecordLockException
- the promoted as record lock exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionpublic TaskStatus getTaskStatus(long statusId) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
BaseTask
getTaskStatus
in interface BaseTask
statusId
- the status idWebserviceException
- the webservice exceptionRepositoryException
- the repository exceptionPathNotFoundException
- the path not found exceptionDatabaseException
- the database exceptionAccessDeniedException
- the access denied exceptionUnknownException
- the unknown exceptionpublic List<TaskNote> getTaskNotes(long taskId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
BaseTask
getTaskNotes
in interface BaseTask
taskId
- the task idLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic TaskNote createTaskNote(long taskId, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, TaskNotFoundException
BaseTask
createTaskNote
in interface BaseTask
taskId
- the task idtext
- the textLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionTaskNotFoundException
- the task not found exceptionpublic TaskNote updateTaskNote(long noteId, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
BaseTask
updateTaskNote
in interface BaseTask
noteId
- the note idtext
- the textLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic void deleteTaskNote(long noteId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
BaseTask
deleteTaskNote
in interface BaseTask
noteId
- the note idLockException
- the lock exceptionPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionpublic Task getTask(long taskId) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, TaskNotFoundException
BaseTask
getTask
in interface BaseTask
taskId
- the task idPathNotFoundException
- the path not found exceptionAccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionTaskNotFoundException
- the task not found exceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.