Package com.openkm.sdk4j.impl
Class TaskImpl
- java.lang.Object
-
- com.openkm.sdk4j.impl.ClientImpl
-
- com.openkm.sdk4j.impl.TaskImpl
-
- All Implemented Interfaces:
BaseTask,Serializable
public class TaskImpl extends ClientImpl implements BaseTask, Serializable
TaskImpl- Author:
- sochoa
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Taskcreate(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.TaskNotecreateNote(long taskId, String text)Create note.TaskProjectcreateProject(String name, boolean active, String description)Create task project task project.TaskStatuscreateStatus(String name, boolean finish)Create status.TaskTypecreateType(String name, boolean active, String description)Create type.voiddelete(long taskId)Delete task.voiddeleteNote(long noteId)Delete task note.voiddeleteProject(long projectId)Delete task project.voiddeleteStatus(long statusId)Delete status.voiddeleteType(long typeId)Delete type.TaskListgetActive(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject)Gets active tasks.TaskListgetActive(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, Calendar from, Calendar to, String subject)Gets active tasks.longgetActiveCount(long statusId, long projectId, long typeId)Gets active tasks count.TaskListgetAssigned(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject)Gets assigned tasks.TaskListgetAssigned(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, Calendar from, Calendar to, String subject)Gets assigned tasks.longgetAssignedCount(long statusId, long projectId, long typeId)Gets assigned tasks count.TaskListgetFinished(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject)Gets finished tasks.TaskListgetFinished(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, Calendar from, Calendar to, String subject)Gets finished tasks.longgetFinishedCount(long statusId, long projectId, long typeId)Gets finished tasks count.List<TaskHistory>getHistory(long taskId)Gets history.List<TaskNote>getNotes(long taskId)Gets notes.TaskListgetNotified(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject)Gets notified tasks.TaskListgetNotified(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, Calendar from, Calendar to, String subject)Gets notified tasks.longgetNotifiedCount(long statusId, long projectId, long typeId)Gets notified tasks count.TaskProjectgetProject(long projectId)Gets task project.List<TaskProject>getProjects(boolean filterActive)Gets projects.TaskListgetRelatedTasks(String uuid)Gets related tasks.List<TaskStatus>getStatus()Gets status.TaskStatusgetStatus(long statusId)Gets status.TaskgetTask(long taskId)Gets task.TaskTypegetType(long typeId)Gets type.List<TaskType>getTypes(boolean filterActive)Gets types.voidsetAuthorizationToken(String authorizationToken)setAuthenticationTokenTaskupdate(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.TaskNoteupdateNote(long noteId, String text)Update note.TaskProjectupdateProject(long projectId, boolean active, String name, String description)Update project.TaskStatusupdateStatus(long statusId, String name, boolean finish)Update status.TaskTypeupdateType(long typeId, boolean active, String name, String description)Update type.-
Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
-
-
-
Constructor Detail
-
TaskImpl
public TaskImpl(String host)
TaskImpl
-
-
Method Detail
-
setAuthorizationToken
public void setAuthorizationToken(String authorizationToken)
setAuthenticationToken
-
create
public Task create(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
Description copied from interface:BaseTaskCreate task task.- Specified by:
createin interfaceBaseTask- Parameters:
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 value- Returns:
- the task
- Throws:
LockException- 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 exception
-
update
public Task update(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
Description copied from interface:BaseTaskUpdate task task.- Specified by:
updatein interfaceBaseTask- Parameters:
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 value- Returns:
- the task
- Throws:
LockException- 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 exception
-
getTask
public Task getTask(long taskId) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, TaskNotFoundException
Description copied from interface:BaseTaskGets task.- Specified by:
getTaskin interfaceBaseTask- Parameters:
taskId- the task id- Returns:
- the task
- Throws:
PathNotFoundException- 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 exception
-
delete
public void delete(long taskId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownExceptionDescription copied from interface:BaseTaskDelete task.- Specified by:
deletein interfaceBaseTask- Parameters:
taskId- the task id- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getAssigned
public TaskList getAssigned(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
Description copied from interface:BaseTaskGets assigned tasks.- Specified by:
getAssignedin interfaceBaseTask- Parameters:
projectId- the project idtypeId- the type idstatusId- the status idorderColumn- the order columnorderAsc- the order ascoffset- the offsetlimit- the limitsubject- the subject- Returns:
- the assigned tasks
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getAssigned
public TaskList getAssigned(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, Calendar from, Calendar to, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
Description copied from interface:BaseTaskGets assigned tasks.- Specified by:
getAssignedin interfaceBaseTask- Parameters:
projectId- the project idtypeId- the type idstatusId- the status idorderColumn- the order columnorderAsc- the order ascoffset- the offsetlimit- the limitfrom- the fromto- the tosubject- the subject- Returns:
- the assigned tasks
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getNotified
public TaskList getNotified(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
Description copied from interface:BaseTaskGets notified tasks.- Specified by:
getNotifiedin interfaceBaseTask- Parameters:
projectId- the project idtypeId- the type idstatusId- the status idorderColumn- the order columnorderAsc- the order ascoffset- the offsetlimit- the limitsubject- the subject- Returns:
- the finished tasks
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getNotified
public TaskList getNotified(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, Calendar from, Calendar to, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
Description copied from interface:BaseTaskGets notified tasks.- Specified by:
getNotifiedin interfaceBaseTask- Parameters:
projectId- the project idtypeId- the type idstatusId- the status idorderColumn- the order columnorderAsc- the order ascoffset- the offsetlimit- the limitfrom- the fromto- the tosubject- the subject- Returns:
- the notified tasks
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getActive
public TaskList getActive(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
Description copied from interface:BaseTaskGets active tasks.- Specified by:
getActivein interfaceBaseTask- Parameters:
projectId- the project idtypeId- the type idstatusId- the status idorderColumn- the order columnorderAsc- the order ascoffset- the offsetlimit- the limitsubject- the subject- Returns:
- the active tasks
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getActive
public TaskList getActive(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, Calendar from, Calendar to, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
Description copied from interface:BaseTaskGets active tasks.- Specified by:
getActivein interfaceBaseTask- Parameters:
projectId- the project idtypeId- the type idstatusId- the status idorderColumn- the order columnorderAsc- the order ascoffset- the offsetlimit- the limitfrom- the fromto- the tosubject- the subject- Returns:
- the active tasks
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getFinished
public TaskList getFinished(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
Description copied from interface:BaseTaskGets finished tasks.- Specified by:
getFinishedin interfaceBaseTask- Parameters:
projectId- the project idtypeId- the type idstatusId- the status idorderColumn- the order columnorderAsc- the order ascoffset- the offsetlimit- the limitsubject- the subject- Returns:
- the finished tasks
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getFinished
public TaskList getFinished(long projectId, long typeId, long statusId, String orderColumn, boolean orderAsc, int offset, int limit, Calendar from, Calendar to, String subject) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
Description copied from interface:BaseTaskGets finished tasks.- Specified by:
getFinishedin interfaceBaseTask- Parameters:
projectId- the project idtypeId- the type idstatusId- the status idorderColumn- the order columnorderAsc- the order ascoffset- the offsetlimit- the limitfrom- the fromto- the tosubject- the subject- Returns:
- the finished tasks
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getAssignedCount
public long getAssignedCount(long statusId, long projectId, long typeId) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownExceptionDescription copied from interface:BaseTaskGets assigned tasks count.- Specified by:
getAssignedCountin interfaceBaseTask- Parameters:
statusId- the status idprojectId- the project idtypeId- the type id- Returns:
- the assigned tasks count
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getNotifiedCount
public long getNotifiedCount(long statusId, long projectId, long typeId) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownExceptionDescription copied from interface:BaseTaskGets notified tasks count.- Specified by:
getNotifiedCountin interfaceBaseTask- Parameters:
statusId- the status idprojectId- the project idtypeId- the type id- Returns:
- the finished tasks count
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getActiveCount
public long getActiveCount(long statusId, long projectId, long typeId) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownExceptionDescription copied from interface:BaseTaskGets active tasks count.- Specified by:
getActiveCountin interfaceBaseTask- Parameters:
statusId- the status idprojectId- the project idtypeId- the type id- Returns:
- the finished tasks count
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getFinishedCount
public long getFinishedCount(long statusId, long projectId, long typeId) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownExceptionDescription copied from interface:BaseTaskGets finished tasks count.- Specified by:
getFinishedCountin interfaceBaseTask- Parameters:
statusId- the status idprojectId- the project idtypeId- the type id- Returns:
- the finished tasks count
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getRelatedTasks
public TaskList getRelatedTasks(String uuid) throws RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, WebserviceException, UnknownException
Description copied from interface:BaseTaskGets related tasks.- Specified by:
getRelatedTasksin interfaceBaseTask- Parameters:
uuid- the uuid- Returns:
- the related tasks
- Throws:
RepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getStatus
public List<TaskStatus> getStatus() throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
Description copied from interface:BaseTaskGets status.- Specified by:
getStatusin interfaceBaseTask- Returns:
- the task status
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-
getProjects
public List<TaskProject> getProjects(boolean filterActive) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
Description copied from interface:BaseTaskGets projects.- Specified by:
getProjectsin interfaceBaseTask- Parameters:
filterActive- the filter active- Returns:
- the task projects
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-
getTypes
public List<TaskType> getTypes(boolean filterActive) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
Description copied from interface:BaseTaskGets types.- Specified by:
getTypesin interfaceBaseTask- Parameters:
filterActive- the filter active- Returns:
- the task types
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-
getNotes
public List<TaskNote> getNotes(long taskId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
Description copied from interface:BaseTaskGets notes.- Specified by:
getNotesin interfaceBaseTask- Parameters:
taskId- the task id- Returns:
- the task notes
- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
createProject
public TaskProject createProject(String name, boolean active, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
Description copied from interface:BaseTaskCreate task project task project.- Specified by:
createProjectin interfaceBaseTask- Parameters:
name- the nameactive- the activedescription- the description- Returns:
- the task project
- Throws:
LockException- 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 exception
-
updateProject
public TaskProject updateProject(long projectId, boolean active, String name, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
Description copied from interface:BaseTaskUpdate project.- Specified by:
updateProjectin interfaceBaseTask- Parameters:
projectId- the project idactive- the activename- the namedescription- the description- Returns:
- the task project
- Throws:
LockException- 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 exception
-
deleteProject
public void deleteProject(long projectId) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceExceptionDescription copied from interface:BaseTaskDelete task project.- Specified by:
deleteProjectin interfaceBaseTask- Parameters:
projectId- the project id- Throws:
AutomationException- 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 exception
-
getProject
public TaskProject getProject(long projectId) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
Description copied from interface:BaseTaskGets task project.- Specified by:
getProjectin interfaceBaseTask- Parameters:
projectId- the project id- Returns:
- the task project
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-
createType
public TaskType createType(String name, boolean active, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
Description copied from interface:BaseTaskCreate type.- Specified by:
createTypein interfaceBaseTask- Parameters:
name- the nameactive- the activedescription- the description- Returns:
- the task type
- Throws:
LockException- 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 exception
-
updateType
public TaskType updateType(long typeId, boolean active, String name, String description) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
Description copied from interface:BaseTaskUpdate type.- Specified by:
updateTypein interfaceBaseTask- Parameters:
typeId- the type idactive- the activename- the namedescription- the description- Returns:
- the task type
- Throws:
LockException- 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 exception
-
deleteType
public void deleteType(long typeId) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceExceptionDescription copied from interface:BaseTaskDelete type.- Specified by:
deleteTypein interfaceBaseTask- Parameters:
typeId- the type id- Throws:
AutomationException- 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 exception
-
getType
public TaskType getType(long typeId) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
Description copied from interface:BaseTaskGets type.- Specified by:
getTypein interfaceBaseTask- Parameters:
typeId- the type id- Returns:
- the task type
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-
createStatus
public TaskStatus createStatus(String name, boolean finish) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
Description copied from interface:BaseTaskCreate status.- Specified by:
createStatusin interfaceBaseTask- Parameters:
name- the namefinish- the finish- Returns:
- the task status
- Throws:
LockException- 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 exception
-
updateStatus
public TaskStatus updateStatus(long statusId, String name, boolean finish) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
Description copied from interface:BaseTaskUpdate status.- Specified by:
updateStatusin interfaceBaseTask- Parameters:
statusId- the status idname- the namefinish- the finish- Returns:
- the task status
- Throws:
LockException- 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 exception
-
deleteStatus
public void deleteStatus(long statusId) throws AutomationException, AccessDeniedException, RepositoryException, PathNotFoundException, LockException, DatabaseException, ExtensionException, PromotedAsRecordLockException, UnknownException, WebserviceExceptionDescription copied from interface:BaseTaskDelete status.- Specified by:
deleteStatusin interfaceBaseTask- Parameters:
statusId- the status id- Throws:
AutomationException- 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 exception
-
getStatus
public TaskStatus getStatus(long statusId) throws WebserviceException, RepositoryException, PathNotFoundException, DatabaseException, AccessDeniedException, UnknownException
Description copied from interface:BaseTaskGets status.- Specified by:
getStatusin interfaceBaseTask- Parameters:
statusId- the status id- Returns:
- the task status
- Throws:
WebserviceException- the webservice exceptionRepositoryException- the repository exceptionPathNotFoundException- the path not found exceptionDatabaseException- the database exceptionAccessDeniedException- the access denied exceptionUnknownException- the unknown exception
-
createNote
public TaskNote createNote(long taskId, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, TaskNotFoundException
Description copied from interface:BaseTaskCreate note.- Specified by:
createNotein interfaceBaseTask- Parameters:
taskId- the task idtext- the text- Returns:
- the task note
- Throws:
LockException- 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 exception
-
updateNote
public TaskNote updateNote(long noteId, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
Description copied from interface:BaseTaskUpdate note.- Specified by:
updateNotein interfaceBaseTask- Parameters:
noteId- the note idtext- the text- Returns:
- the task note
- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
deleteNote
public void deleteNote(long noteId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownExceptionDescription copied from interface:BaseTaskDelete task note.- Specified by:
deleteNotein interfaceBaseTask- Parameters:
noteId- the note id- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
getHistory
public List<TaskHistory> getHistory(long taskId) throws AccessDeniedException, DatabaseException, WebserviceException, UnknownException
Description copied from interface:BaseTaskGets history.- Specified by:
getHistoryin interfaceBaseTask- Parameters:
taskId- the task id- Returns:
- the history
- Throws:
AccessDeniedException- the access denied exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exception
-
-