public class Todo
extends java.lang.Object
implements java.io.Serializable
Modifier | Constructor and Description |
---|---|
protected |
Todo()
Creates new instance.
|
|
Todo(long id,
long modelInstanceId,
java.lang.String title,
java.lang.String type,
TodoStatus status,
java.lang.String interruptionReason,
java.util.Date issuedDate,
java.util.Date submittedDate,
Person allocatedTo,
java.util.Collection<? extends Performer> performers,
int delegationLevel,
java.lang.String taskNamespace,
long taskId,
java.lang.String taskName,
byte[] contentBytes,
java.lang.Integer priority,
java.lang.String notes,
TodoAuthorization authorization)
Creates new instance of
Todo . |
Modifier and Type | Method and Description |
---|---|
Person |
getAllocatedTo()
Returns the id of the user for which todo is allocated.
|
java.lang.String |
getAllocatedToFullName()
Returns full name of the user for which todo is allocated.
|
java.lang.String |
getAllocatedToLoginAndFullName()
Returns login and full name of the user for which todo is allocated.
|
TodoAuthorization |
getAuthorization()
Returns the reason why the person can see the to-do in his to-do list.
|
byte[] |
getContent()
Returns the todo content.
|
int |
getDelegationLevel()
Returns the delegation level.
|
java.io.Serializable |
getDeserializedContent()
Helper method to return deserialized content.
|
long |
getId()
Returns the todo id.
|
java.lang.String |
getInterruptionReason()
Returns the reason for which the todo was interrupted.
|
java.util.Date |
getIssuedDate()
Returns the date when the todo was issued.
|
long |
getModelInstanceId()
Returns the process id.
|
java.lang.String |
getNotes()
Returns the notes attached to the todo.
|
java.util.Set<Performer> |
getPerformers()
Returns the set of performers for the todo.
|
java.lang.Integer |
getPriority()
Returns the todo priority in the personal todo list
|
TodoStatus |
getStatus()
Returns the status of the todo.
|
java.util.Date |
getSubmittedDate()
Returns the date when the todo was submitted.
|
long |
getTaskId()
Returns the identifier of the task which generated this todo.
|
java.lang.String |
getTaskName()
Returns the name of the task which generated the todo.
|
java.lang.String |
getTaskNamespace()
Returns the name of the namespace of the context for the task which generated the todo.
|
java.lang.String |
getTitle()
Returns the title for todo.
|
java.lang.String |
getType()
Returns the type of the todo.
|
protected Todo()
public Todo(long id, long modelInstanceId, java.lang.String title, java.lang.String type, TodoStatus status, java.lang.String interruptionReason, java.util.Date issuedDate, java.util.Date submittedDate, Person allocatedTo, java.util.Collection<? extends Performer> performers, int delegationLevel, java.lang.String taskNamespace, long taskId, java.lang.String taskName, byte[] contentBytes, java.lang.Integer priority, java.lang.String notes, TodoAuthorization authorization)
Todo
.id
- modelInstanceId
- title
- type
- status
- interruptionReason
- issuedDate
- submittedDate
- allocatedTo
- performers
- delegationLevel
- taskNamespace
- taskId
- taskName
- contentBytes
- priority
- notes
- authorization
- java.lang.NullPointerException
- if title
or type
or status
or issuedDate
or
taskNamespace
or taskName
or performers
is nulljava.lang.IllegalArgumentException
- if performers
contains nullpublic long getId()
public long getModelInstanceId()
public java.lang.String getTitle()
public java.lang.String getType()
public TodoStatus getStatus()
public java.util.Date getIssuedDate()
public java.util.Date getSubmittedDate()
public Person getAllocatedTo()
public java.lang.String getAllocatedToFullName()
public java.lang.String getAllocatedToLoginAndFullName()
public java.util.Set<Performer> getPerformers()
public int getDelegationLevel()
public java.lang.String getTaskNamespace()
public long getTaskId()
public java.lang.String getTaskName()
public java.lang.String getInterruptionReason()
public java.lang.Integer getPriority()
public java.lang.String getNotes()
public TodoAuthorization getAuthorization()
public byte[] getContent()
public java.io.Serializable getDeserializedContent()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.