public class TaskImpl extends ClientImpl implements BaseTask, Serializable
Modifier and Type | Method and Description |
---|---|
Task |
createTask(String subject,
String start,
String end,
String description,
String statusId,
String projectId,
String typeId,
List<String> users,
List<String> roles,
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) |
TaskNote |
createTaskNote(long taskId,
String text) |
TaskProject |
createTaskProject(String name,
boolean active,
String description) |
TaskStatus |
createTaskStatus(String name,
boolean finish) |
TaskType |
createTaskType(String name,
boolean active,
String description) |
void |
deleteTask(long taskId) |
void |
deleteTaskNote(long noteId) |
void |
deleteTaskProject(long projectId) |
void |
deleteTaskStatus(long statusId) |
void |
deleteTaskType(long typeId) |
TaskList |
getActiveTasks(long projectId,
long typeId,
long statusId,
String orderColumn,
boolean orderAsc,
int offset,
int limit,
String subject) |
long |
getActiveTasksCount(long statusId,
long projectId,
long typeId) |
TaskList |
getAssignedTasks(long projectId,
long typeId,
long statusId,
String orderColumn,
boolean orderAsc,
int offset,
int limit,
String subject) |
long |
getAssignedTasksCount(long statusId,
long projectId,
long typeId) |
TaskList |
getFinishedTasks(long projectId,
long typeId,
long statusId,
String orderColumn,
boolean orderAsc,
int offset,
int limit,
String subject) |
long |
getFinishedTasksCount(long statusId,
long projectId,
long typeId) |
Task |
getTask(long taskId) |
List<TaskNote> |
getTaskNotes(long taskId) |
TaskProject |
getTaskProject(long projectId) |
List<TaskProject> |
getTaskProjects(boolean filterActive) |
List<TaskStatus> |
getTaskStatus() |
TaskStatus |
getTaskStatus(long statusId) |
TaskType |
getTaskType(long typeId) |
List<TaskType> |
getTaskTypes(boolean filterActive) |
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
Task |
updateTask(String taskId,
String subject,
String start,
String end,
String description,
String statusId,
String projectId,
String typeId,
List<String> users,
List<String> roles,
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) |
TaskNote |
updateTaskNote(long noteId,
String text) |
TaskProject |
updateTaskProject(long projectId,
boolean active,
String name,
String description) |
TaskStatus |
updateTaskStatus(long statusId,
String name,
boolean finish) |
TaskType |
updateTaskType(long typeId,
boolean active,
String name,
String description) |
getClient, 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, UnknowException
getAssignedTasks
in interface BaseTask
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
WebserviceException
UnknowException
public TaskList getActiveTasks(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknowException
getActiveTasks
in interface BaseTask
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
WebserviceException
UnknowException
public TaskList getFinishedTasks(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknowException
getFinishedTasks
in interface BaseTask
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
WebserviceException
UnknowException
public List<TaskStatus> getTaskStatus() throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknowException
getTaskStatus
in interface BaseTask
WebserviceException
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
UnknowException
public List<TaskProject> getTaskProjects(boolean filterActive) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknowException
getTaskProjects
in interface BaseTask
WebserviceException
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
UnknowException
public List<TaskType> getTaskTypes(boolean filterActive) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknowException
getTaskTypes
in interface BaseTask
WebserviceException
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
UnknowException
public long getAssignedTasksCount(long statusId, long projectId, long typeId) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknowException
getAssignedTasksCount
in interface BaseTask
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
WebserviceException
UnknowException
public long getActiveTasksCount(long statusId, long projectId, long typeId) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknowException
getActiveTasksCount
in interface BaseTask
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
WebserviceException
UnknowException
public long getFinishedTasksCount(long statusId, long projectId, long typeId) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknowException
getFinishedTasksCount
in interface BaseTask
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
WebserviceException
UnknowException
public Task createTask(String subject, String start, String end, String description, String statusId, String projectId, String typeId, List<String> users, List<String> roles, 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, UnknowException
createTask
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
public Task updateTask(String taskId, String subject, String start, String end, String description, String statusId, String projectId, String typeId, List<String> users, List<String> roles, 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, UnknowException
updateTask
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
public void deleteTask(long taskId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException
deleteTask
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
public TaskProject createTaskProject(String name, boolean active, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException, ItemExistsException
createTaskProject
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
ItemExistsException
public TaskProject updateTaskProject(long projectId, boolean active, String name, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException, ItemExistsException
updateTaskProject
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
ItemExistsException
public void deleteTaskProject(long projectId) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknowException, WebserviceException
public TaskProject getTaskProject(long projectId) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknowException
getTaskProject
in interface BaseTask
WebserviceException
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
UnknowException
public TaskType createTaskType(String name, boolean active, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException, ItemExistsException
createTaskType
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
ItemExistsException
public TaskType updateTaskType(long typeId, boolean active, String name, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException, ItemExistsException
updateTaskType
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
ItemExistsException
public void deleteTaskType(long typeId) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknowException, WebserviceException
public TaskType getTaskType(long typeId) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknowException
getTaskType
in interface BaseTask
WebserviceException
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
UnknowException
public TaskStatus createTaskStatus(String name, boolean finish) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException, ItemExistsException
createTaskStatus
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
ItemExistsException
public TaskStatus updateTaskStatus(long statusId, String name, boolean finish) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException, ItemExistsException
updateTaskStatus
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
ItemExistsException
public void deleteTaskStatus(long statusId) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknowException, WebserviceException
public TaskStatus getTaskStatus(long statusId) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknowException
getTaskStatus
in interface BaseTask
WebserviceException
RepositoryException
PathNotFoundException
DatabaseException
AccessDeniedException
UnknowException
public List<TaskNote> getTaskNotes(long taskId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException
getTaskNotes
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
public TaskNote createTaskNote(long taskId, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException
createTaskNote
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
public TaskNote updateTaskNote(long noteId, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException
updateTaskNote
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
public void deleteTaskNote(long noteId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException
deleteTaskNote
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
public Task getTask(long taskId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknowException
getTask
in interface BaseTask
LockException
PathNotFoundException
AccessDeniedException
RepositoryException
DatabaseException
WebserviceException
UnknowException
Copyright © 2019 Open Knowledge Management System S.L.. All Rights Reserved.