|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.workflow.simple.TaskComment
A comment on a task. Must be loaded in full because we don't handle ID.
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
versionId
|
Constructor Summary | |
|
TaskComment(BigDecimal commentID,
BigDecimal taskID,
User user,
String comment)
Constructor for a task comment. |
|
TaskComment(BigDecimal commentID,
BigDecimal taskID,
User user,
String comment,
Date date)
Constructor for a task comment. |
|
TaskComment(BigDecimal taskID,
String comment)
Constructor for a task comment without a specific user. |
|
TaskComment(BigDecimal taskID,
User user,
String comment)
Constructor for a task comment. |
|
TaskComment(BigDecimal taskID,
User user,
String comment,
Date date)
Constructor for a task comment with a date setting. |
|
TaskComment(DataObject commentDataObject)
Constructor to restore a task comment by data object. |
protected |
TaskComment(ObjectType type)
Constructor for setting the object type. |
|
TaskComment(OID oid)
Restores the task ID with the OID. |
|
TaskComment(String typeName)
Constructor for setting the object type name. |
Method Summary | |
protected String |
getBaseDataObjectType()
Gets the base data object type. |
String |
getComment()
Retrieves the comment string. |
Date |
getDate()
Retrieves the creation date of the comment. |
Task |
getTask()
|
BigDecimal |
getTaskID()
Retrieves the task ID of the task owning this comment. |
User |
getUser()
Get the user who added this comment. |
OID |
getUserOID()
Retrieves the user OID of the user who created the comment. |
Methods inherited from class com.arsdigita.domain.ObservableDomainObject |
addObserver, getObservers |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, beforeSave, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, initialize, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String versionId
public static final String BASE_DATA_OBJECT_TYPE
Constructor Detail |
public TaskComment(BigDecimal taskID, User user, String comment)
taskID
- the task IDuser
- the usercomment
- the commentpublic TaskComment(BigDecimal commentID, BigDecimal taskID, User user, String comment)
commentID
- the comment IDtaskID
- the task IDuser
- the usercomment
- the commentpublic TaskComment(BigDecimal taskID, User user, String comment, Date date)
taskID
- the task IDuser
- the usercomment
- the commentdate
- the datepublic TaskComment(BigDecimal commentID, BigDecimal taskID, User user, String comment, Date date)
commentID
- the comment IDtaskID
- the task IDuser
- the usercomment
- the commentdate
- the Date of the commentpublic TaskComment(BigDecimal taskID, String comment)
taskID
- the task IDcomment
- the commentpublic TaskComment(DataObject commentDataObject)
commentDataObject
- the data objectprotected TaskComment(ObjectType type)
type
- the object typepublic TaskComment(String typeName)
public TaskComment(OID oid) throws DataObjectNotFoundException
oid
- the OIDOID
Method Detail |
protected String getBaseDataObjectType()
getBaseDataObjectType
in class DomainObject
public String getComment()
public Date getDate()
public OID getUserOID()
OID
public User getUser()
UncheckedWrapperException
- if the OID does not reference a valid Userpublic BigDecimal getTaskID()
public Task getTask()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |