@JSONObject public class Task extends com.technia.tvc.collaboration.core.model.CollaborationItem implements com.technia.tvc.collaboration.workflow.model.Leaf, com.technia.tvc.collaboration.core.model.dao.exalead.cache.search.CacheSearchable
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<Task> |
COMPARATOR |
protected static java.util.Collection<TaskStatus> |
COMPLETE_STATUSES |
static java.util.Comparator<Task> |
NAME_COMPARATOR |
Modifier | Constructor and Description |
---|---|
|
Task() |
protected |
Task(Task task) |
Modifier and Type | Method and Description |
---|---|
void |
addAssignee(Person assignee) |
void |
addAssignees(java.util.Collection<Person> assignees) |
void |
addCollaborationContexts(java.util.Collection<CollaborationContext> contexts) |
void |
addConfigAssignee(Assignee assignee) |
void |
addConfigAssignees(java.util.Collection<? extends Assignee> assignees) |
void |
addError(TaskError error) |
Task |
addFromOid(Identifier... fromOid) |
Task |
addToOid(Identifier... toOid) |
void |
clearAssignees() |
void |
clearConfigAssignees() |
Task |
cloneItem() |
Task |
cloneItem(Component component) |
void |
create(CoreContext ctx) |
void |
delete(CoreContext ctx) |
void |
fromConnect(CoreContext ctx) |
void |
fromDisconnect(CoreContext ctx) |
java.util.Date |
getActivationDate() |
com.technia.tvc.core.xml.ajax.types.Struct |
getAdhoc() |
java.util.Date |
getApprovedDate() |
com.technia.tvc.collaboration.core.model.dao.enovia.access.AssignAccess |
getAssignAccess() |
com.technia.tvc.collaboration.core.model.dao.enovia.access.AssignAccess |
getAssignAccessInstance() |
java.util.Collection<java.lang.String> |
getAssignAccessUsers() |
java.util.Collection<com.technia.tvc.collaboration.workflow.cfg.GroupCfg> |
getAssignedGroups() |
java.lang.String |
getAssigneePretext() |
java.util.Collection<Person> |
getAssignees() |
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> |
getAutomationHistory() |
com.technia.tvc.collaboration.core.model.dao.exalead.cache.search.CacheSearchData |
getCacheSearchData() |
java.util.Date |
getCompletedDate() |
java.util.Date |
getCompletionDate() |
java.util.Collection<Assignee> |
getConfigAssignees() |
java.lang.String |
getConfigId() |
Person |
getDelegator() |
java.lang.Boolean |
getDelete() |
java.lang.String |
getDisplayLabel() |
java.lang.String |
getDisplayStatus() |
java.util.Date |
getDueDate() |
java.util.Collection<TaskError> |
getErrors() |
Field |
getField(java.lang.String name) |
java.util.Collection<Field> |
getFields() |
java.lang.String |
getFieldsJSON() |
java.lang.String |
getFieldValue(java.lang.String name) |
java.util.Collection<Identifier> |
getFromOids() |
boolean |
getHistory() |
java.lang.String |
getLabel() |
java.lang.String |
getMappedCSSClass() |
java.lang.String |
getMappedStatus() |
java.util.Date |
getModified() |
java.lang.String |
getName() |
java.util.Collection<Person> |
getNotifiables() |
java.lang.String |
getNotificationBody() |
java.util.Date |
getNotificationSent() |
java.lang.String |
getNotificationTemplateName() |
java.lang.String |
getNotificationTitle() |
NotificationType |
getNotificationType() |
Menu |
getOperations() |
Person |
getOwner() |
Identifier |
getPrevious() |
java.util.Date |
getRejectedDate() |
java.lang.String |
getReminder() |
Identifier |
getSetId() |
TaskStatus |
getStatus() |
java.util.Collection<java.lang.String> |
getStatusHistory() |
java.lang.String |
getStatusHistoryJson() |
java.util.Collection<Assignee> |
getTaskAssignees() |
java.util.Collection<Identifier> |
getToOids() |
Workflow |
getWorkflow() |
Identifier |
getWorkflowId() |
boolean |
hasFromTasks() |
boolean |
hasToTasks() |
boolean |
isActive() |
boolean |
isCompleted() |
boolean |
isDue() |
boolean |
isIncluded() |
boolean |
isLast() |
boolean |
isOwner(java.lang.String name) |
boolean |
isPending() |
boolean |
isUnassigned() |
void |
load(TaskCfg taskCfg) |
void |
loadStatusHistory(java.lang.String status) |
void |
markActive() |
void |
markPending() |
void |
mergeFields(java.util.Collection<Field> fields) |
Task |
removeFromOid(Identifier... fromOid) |
Task |
removeToOid(Identifier... toOid) |
void |
revise(CoreContext ctx) |
void |
setActivationDate(java.util.Date assignmentDate) |
void |
setAdhoc(com.technia.tvc.core.xml.ajax.types.Struct adhoc) |
void |
setAssignAccess(com.technia.tvc.collaboration.core.model.dao.enovia.access.AssignAccess assignAccess) |
void |
setAssigneePretext(java.lang.String assigneePretext) |
void |
setAssignees(java.util.Collection<Person> assignees) |
void |
setAutomationHistory(TaskCfg taskCfg) |
void |
setCompletionDate(java.util.Date completionDate) |
void |
setConfigAssignees(java.util.Collection<? extends Assignee> assignees) |
void |
setConfigId(java.lang.String configId) |
void |
setDelegator(Person delegator) |
void |
setDelete(java.lang.Boolean delete) |
void |
setDisplayStatus(TaskStatus status) |
void |
setDueDate(java.util.Date dueDate) |
void |
setFields(java.util.Collection<Field> fields) |
void |
setFields(java.util.Map<java.lang.String,java.lang.String> values) |
void |
setFieldsJSON(java.lang.String json) |
void |
setIncluded(boolean included) |
void |
setLabel(java.lang.String label) |
void |
setLast(boolean isLast) |
void |
setMappedCSSClass(java.lang.String mappedCSSClass) |
void |
setMappedStatus(java.lang.String mappedStatus) |
void |
setModified(java.util.Date modified) |
void |
setName(java.lang.String name) |
void |
setOperations(Menu operations) |
void |
setOwner(Person owner) |
void |
setPrevious(Identifier previous) |
void |
setReminder(java.lang.String reminder) |
void |
setSetId(Identifier id) |
void |
setStatus(TaskStatus status) |
void |
setStatusHistory(java.util.Collection<java.lang.String> statusHistory) |
void |
setWorkflow(Workflow workflow) |
void |
setWorkflowId(Identifier workflowId) |
void |
toConnect(CoreContext ctx) |
void |
toDisconnect(CoreContext ctx) |
java.lang.String |
toString() |
void |
update(CoreContext ctx) |
void |
updateContexts(CoreContext ctx) |
getCreated, setCreated
addCollaborationContext, addCollaborationContextId, clearCollaborationContexts, copyContexts, getCollaborationContexts, getContextIds, getId, getNotificationContentType, setId
public static final java.util.Comparator<Task> COMPARATOR
public static final java.util.Comparator<Task> NAME_COMPARATOR
protected static final java.util.Collection<TaskStatus> COMPLETE_STATUSES
public Task()
protected Task(Task task)
public boolean isDue()
@JSONProperty(exclude=true) public java.lang.String getFieldsJSON()
public void setFields(java.util.Map<java.lang.String,java.lang.String> values)
public void setFieldsJSON(java.lang.String json)
public void load(TaskCfg taskCfg)
public java.util.Collection<Field> getFields()
public void setFields(java.util.Collection<Field> fields)
public void mergeFields(java.util.Collection<Field> fields)
public java.util.Collection<Identifier> getFromOids()
public Task addFromOid(Identifier... fromOid)
public Task removeFromOid(Identifier... fromOid)
@JSONProperty(exclude=true) public java.util.Collection<Identifier> getToOids()
public Task addToOid(Identifier... toOid)
public Task removeToOid(Identifier... toOid)
public boolean hasToTasks()
public boolean hasFromTasks()
@JSONProperty(discardEmpty=true) public TaskStatus getStatus()
public void setStatus(TaskStatus status)
@JSONProperty(exclude=true) public java.util.Collection<java.lang.String> getStatusHistory()
public void setStatusHistory(java.util.Collection<java.lang.String> statusHistory)
public void loadStatusHistory(java.lang.String status)
@JSONProperty(exclude=true) public java.lang.String getStatusHistoryJson()
public java.lang.String getDisplayStatus()
public void setDisplayStatus(TaskStatus status)
@JSONProperty(discardEmpty=true) public java.lang.String getConfigId()
public void setConfigId(java.lang.String configId)
@JSONProperty(exclude=true) public java.lang.String getLabel()
@JSONProperty(name="label") public java.lang.String getDisplayLabel()
public boolean getHistory()
public void setAutomationHistory(TaskCfg taskCfg)
@JSONProperty(discardNull=true) public java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getAutomationHistory()
public void setLabel(java.lang.String label)
@JSONProperty(discardEmpty=true) public Person getDelegator()
public void setDelegator(Person delegator)
@JSONProperty(discardNull=true) public java.util.Date getDueDate()
public com.technia.tvc.core.xml.ajax.types.Struct getAdhoc()
public void setAdhoc(com.technia.tvc.core.xml.ajax.types.Struct adhoc)
@JSONProperty(discardNull=true) public java.lang.Boolean getDelete()
public void setDelete(java.lang.Boolean delete)
public void setDueDate(java.util.Date dueDate)
public java.util.Date getApprovedDate()
public java.util.Date getCompletedDate()
public java.util.Date getRejectedDate()
@JSONProperty(exclude=true) public java.util.Date getCompletionDate()
public void setCompletionDate(java.util.Date completionDate)
@JSONProperty(discardNull=true) public Menu getOperations()
public void setOperations(Menu operations)
@JSONProperty(exclude=true) public java.lang.String getName()
public void setName(java.lang.String name)
@JSONProperty(discardEmpty=true) public java.lang.String getReminder()
public void setReminder(java.lang.String reminder)
@JSONProperty(exclude=true) public java.util.Collection<Person> getAssignees()
public void setAssignees(java.util.Collection<Person> assignees)
public void clearAssignees()
@JSONProperty(exclude=true) public java.util.Collection<Person> getNotifiables()
public void addAssignee(Person assignee)
public void addAssignees(java.util.Collection<Person> assignees)
@JSONProperty(exclude=true) public java.util.Collection<Assignee> getConfigAssignees()
public void setConfigAssignees(java.util.Collection<? extends Assignee> assignees)
public void clearConfigAssignees()
public void addConfigAssignee(Assignee assignee)
public void addConfigAssignees(java.util.Collection<? extends Assignee> assignees)
public Task cloneItem()
cloneItem
in interface com.technia.tvc.collaboration.core.model.CollaborationCloneable<com.technia.tvc.collaboration.core.model.CollaborationItem>
public Identifier getSetId()
getSetId
in interface com.technia.tvc.collaboration.core.model.Notifiable<com.technia.tvc.collaboration.core.model.CollaborationItem>
public void setSetId(Identifier id)
setSetId
in class com.technia.tvc.collaboration.core.model.CollaborationItem
@JSONProperty(exclude=true) public Identifier getWorkflowId()
public void setWorkflowId(Identifier workflowId)
@JSONProperty(exclude=true) public Workflow getWorkflow()
public void setWorkflow(Workflow workflow)
public java.util.Date getNotificationSent()
getNotificationSent
in interface com.technia.tvc.collaboration.core.model.Notifiable<com.technia.tvc.collaboration.core.model.CollaborationItem>
public java.lang.String getNotificationTitle()
getNotificationTitle
in interface com.technia.tvc.collaboration.core.model.Notifiable<com.technia.tvc.collaboration.core.model.CollaborationItem>
public java.lang.String getNotificationBody()
getNotificationBody
in interface com.technia.tvc.collaboration.core.model.Notifiable<com.technia.tvc.collaboration.core.model.CollaborationItem>
public java.lang.String getNotificationTemplateName()
getNotificationTemplateName
in interface com.technia.tvc.collaboration.core.model.Notifiable<com.technia.tvc.collaboration.core.model.CollaborationItem>
public void setOwner(Person owner)
@JSONProperty(name="assignee") public Person getOwner()
getOwner
in class com.technia.tvc.collaboration.core.model.CollaborationObject<com.technia.tvc.collaboration.core.model.CollaborationItem>
public boolean isOwner(java.lang.String name)
@JSONProperty(exclude=true) public com.technia.tvc.collaboration.core.model.dao.enovia.access.AssignAccess getAssignAccessInstance()
@JSONProperty(exclude=true) public com.technia.tvc.collaboration.core.model.dao.enovia.access.AssignAccess getAssignAccess()
@JSONProperty(discardNull=true) public java.util.Collection<java.lang.String> getAssignAccessUsers()
public void setAssignAccess(com.technia.tvc.collaboration.core.model.dao.enovia.access.AssignAccess assignAccess) throws TVCException
TVCException
public boolean isIncluded()
public void setIncluded(boolean included)
public boolean isLast()
public void setLast(boolean isLast)
public Identifier getPrevious()
public void setPrevious(Identifier previous)
@JSONProperty(discardEmpty=true) public java.util.Date getModified()
public void setModified(java.util.Date modified)
public java.util.Date getActivationDate()
public void setActivationDate(java.util.Date assignmentDate)
public void markActive()
public void markPending()
public boolean isUnassigned()
public boolean isCompleted()
public boolean isActive()
public boolean isPending()
public Field getField(java.lang.String name)
public java.lang.String getFieldValue(java.lang.String name)
public java.util.Collection<TaskError> getErrors()
public void addError(TaskError error)
public NotificationType getNotificationType()
getNotificationType
in interface com.technia.tvc.collaboration.core.model.Notifiable<com.technia.tvc.collaboration.core.model.CollaborationItem>
public com.technia.tvc.collaboration.core.model.dao.exalead.cache.search.CacheSearchData getCacheSearchData()
getCacheSearchData
in interface com.technia.tvc.collaboration.core.model.dao.exalead.cache.search.CacheSearchable
@JSONProperty(exclude=true) public java.util.Collection<com.technia.tvc.collaboration.workflow.cfg.GroupCfg> getAssignedGroups()
@JSONProperty(exclude=true) public java.util.Collection<Assignee> getTaskAssignees()
public void create(CoreContext ctx)
public void delete(CoreContext ctx)
public void update(CoreContext ctx)
public void revise(CoreContext ctx)
public void updateContexts(CoreContext ctx)
public void toConnect(CoreContext ctx)
public void fromConnect(CoreContext ctx)
public void toDisconnect(CoreContext ctx)
public void fromDisconnect(CoreContext ctx)
@JSONProperty(discardNull=true) public java.lang.String getMappedCSSClass()
public void setMappedCSSClass(java.lang.String mappedCSSClass)
@JSONProperty(exclude=true) public java.lang.String getMappedStatus()
public void setMappedStatus(java.lang.String mappedStatus)
@JSONProperty(discardNull=true) public java.lang.String getAssigneePretext()
public void setAssigneePretext(java.lang.String assigneePretext)
public void addCollaborationContexts(java.util.Collection<CollaborationContext> contexts)
addCollaborationContexts
in class com.technia.tvc.collaboration.core.model.CollaborationObject<com.technia.tvc.collaboration.core.model.CollaborationItem>
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © Technia AB. All Rights Reserved.