com.jamasoftware.contour.ws.v3.domain
Class WsComment

java.lang.Object
  extended by com.jamasoftware.contour.ws.v3.domain.WsComment

public class WsComment
extends java.lang.Object

This object represents a Contour comment.

Author:
Dylan

Constructor Summary
WsComment()
          Creates an empty WsComment object.
WsComment(java.lang.String commentText, java.lang.Integer documentId)
          Creates a new WsComment object with the given comment text and document id.
WsComment(java.lang.String commentText, java.lang.Integer scopeId, java.lang.Integer refId)
          Creates a new WsComment object with the given comment text and reference/scope values.
 
Method Summary
 java.lang.Boolean getActive()
           
 java.lang.String getAvatar()
           
 java.util.List<WsComment> getChildComments()
           
 java.lang.String getCommentText()
          Gets the text of the comment.
 java.lang.Integer getCommentType()
           
 java.lang.Integer getCreatedBy()
           
 java.util.Date getCreatedDate()
           
 java.lang.Integer getDocumentId()
          Gets the id of the document associated with this comment.
 java.lang.String getDocumentKey()
           
 java.lang.String getDocumentName()
           
 java.lang.Integer getDocumentVersionId()
           
 java.util.Calendar getEntryDate()
          Gets the date the comment was made.
 java.lang.Long getId()
          Gets the comment's id.
 java.lang.Boolean getImportant()
           
 java.lang.Integer getOriginDocumentId()
           
 java.lang.Integer getParentId()
          Gets the id of the parent of this comment.
 java.lang.Integer getRefId()
          Gets the comment's reference id.
 java.lang.Integer getRevisionSequence()
           
 java.lang.Integer getScopeId()
          Gets the comment's scopeId.
 java.lang.Integer getStatus()
           
 java.lang.Integer getThreadId()
           
 java.util.Date getThreadUpdatedDate()
           
 java.lang.Integer getUpdatedBy()
           
 WsUser getUser()
          Gets the user who made the comment.
 java.util.List<java.lang.Integer> getUserIdsWhoLiked()
           
 void setActive(java.lang.Boolean active)
           
 void setAvatar(java.lang.String avatar)
           
 void setChildComments(java.util.List<WsComment> childComments)
           
 void setCommentText(java.lang.String commentText)
          Sets the text of the comment.
 void setCommentType(java.lang.Integer commentType)
           
 void setCreatedBy(java.lang.Integer createdBy)
           
 void setCreatedDate(java.util.Date createdDate)
           
 void setDocumentId(java.lang.Integer documentId)
          Sets the id of the document associated with this comment.
 void setDocumentKey(java.lang.String documentKey)
           
 void setDocumentName(java.lang.String documentName)
           
 void setDocumentVersionId(java.lang.Integer documentVersionId)
           
 void setEntryDate(java.util.Calendar entryDate)
          Sets the date the comment was made.
 void setId(java.lang.Long id)
          Sets the comment's id.
 void setImportant(java.lang.Boolean important)
           
 void setOriginDocumentId(java.lang.Integer originDocumentId)
           
 void setParentId(java.lang.Integer parentId)
          Sets the id of the parent of this comment.
 void setRefId(java.lang.Integer refId)
          Sets the comment's reference id.
 void setRevisionSequence(java.lang.Integer revisionSequence)
           
 void setScopeId(java.lang.Integer scope)
          Sets the comment's scopeId.
 void setStatus(java.lang.Integer status)
           
 void setThreadId(java.lang.Integer threadId)
           
 void setThreadUpdatedDate(java.util.Date threadUpdatedDate)
           
 void setUpdatedBy(java.lang.Integer updatedBy)
           
 void setUser(WsUser user)
          Sets the user who made the comment.
 void setUserIdsWhoLiked(java.util.List<java.lang.Integer> userIdsWhoLiked)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsComment

public WsComment()
Creates an empty WsComment object.


WsComment

public WsComment(java.lang.String commentText,
                 java.lang.Integer scopeId,
                 java.lang.Integer refId)
Creates a new WsComment object with the given comment text and reference/scope values.

Parameters:
commentText - text of the comment
scopeId - scope of the element associated with the comment
refId - id associated with the comment

WsComment

public WsComment(java.lang.String commentText,
                 java.lang.Integer documentId)
Creates a new WsComment object with the given comment text and document id.

Parameters:
commentText - text of the comment
documentId - id of the document associated with the comment
Method Detail

getId

public java.lang.Long getId()
Gets the comment's id.

Returns:
the id

setId

public void setId(java.lang.Long id)
Sets the comment's id.

Parameters:
id - the id to set

getCommentText

public java.lang.String getCommentText()
Gets the text of the comment.

Returns:
the comment

setCommentText

public void setCommentText(java.lang.String commentText)
Sets the text of the comment.

Parameters:
commentText - the comment to set

getUser

public WsUser getUser()
Gets the user who made the comment.

Returns:
the user

setUser

public void setUser(WsUser user)
Sets the user who made the comment.

Parameters:
user - the user to set

getScopeId

public java.lang.Integer getScopeId()
Gets the comment's scopeId.

Returns:
the scopeId
See Also:
WsScope

setScopeId

public void setScopeId(java.lang.Integer scope)
Sets the comment's scopeId.

Parameters:
scopeId - the scopeId to set
See Also:
WsScope

getRefId

public java.lang.Integer getRefId()
Gets the comment's reference id.

Returns:
the reference id

setRefId

public void setRefId(java.lang.Integer refId)
Sets the comment's reference id.

Parameters:
refId - the reference id to set

getEntryDate

public java.util.Calendar getEntryDate()
Gets the date the comment was made.

Returns:
date of comment

setEntryDate

public void setEntryDate(java.util.Calendar entryDate)
Sets the date the comment was made.

Parameters:
entryDate - date of the comment

getDocumentId

public java.lang.Integer getDocumentId()
Gets the id of the document associated with this comment.


setDocumentId

public void setDocumentId(java.lang.Integer documentId)
Sets the id of the document associated with this comment.

Parameters:
documentId - id of the associated document

getParentId

public java.lang.Integer getParentId()
Gets the id of the parent of this comment.

Returns:
parentId

setParentId

public void setParentId(java.lang.Integer parentId)
Sets the id of the parent of this comment.

Parameters:
parentId - id of the parent comment

getActive

public java.lang.Boolean getActive()

setActive

public void setActive(java.lang.Boolean active)

getCommentType

public java.lang.Integer getCommentType()

setCommentType

public void setCommentType(java.lang.Integer commentType)

getAvatar

public java.lang.String getAvatar()

setAvatar

public void setAvatar(java.lang.String avatar)

getDocumentName

public java.lang.String getDocumentName()

setDocumentName

public void setDocumentName(java.lang.String documentName)

getDocumentKey

public java.lang.String getDocumentKey()

setDocumentKey

public void setDocumentKey(java.lang.String documentKey)

getDocumentVersionId

public java.lang.Integer getDocumentVersionId()

setDocumentVersionId

public void setDocumentVersionId(java.lang.Integer documentVersionId)

getOriginDocumentId

public java.lang.Integer getOriginDocumentId()

setOriginDocumentId

public void setOriginDocumentId(java.lang.Integer originDocumentId)

getThreadId

public java.lang.Integer getThreadId()

setThreadId

public void setThreadId(java.lang.Integer threadId)

getCreatedDate

public java.util.Date getCreatedDate()

setCreatedDate

public void setCreatedDate(java.util.Date createdDate)

getThreadUpdatedDate

public java.util.Date getThreadUpdatedDate()

setThreadUpdatedDate

public void setThreadUpdatedDate(java.util.Date threadUpdatedDate)

getCreatedBy

public java.lang.Integer getCreatedBy()

setCreatedBy

public void setCreatedBy(java.lang.Integer createdBy)

getUpdatedBy

public java.lang.Integer getUpdatedBy()

setUpdatedBy

public void setUpdatedBy(java.lang.Integer updatedBy)

getRevisionSequence

public java.lang.Integer getRevisionSequence()

setRevisionSequence

public void setRevisionSequence(java.lang.Integer revisionSequence)

getUserIdsWhoLiked

public java.util.List<java.lang.Integer> getUserIdsWhoLiked()

setUserIdsWhoLiked

public void setUserIdsWhoLiked(java.util.List<java.lang.Integer> userIdsWhoLiked)

getChildComments

public java.util.List<WsComment> getChildComments()

setChildComments

public void setChildComments(java.util.List<WsComment> childComments)

getImportant

public java.lang.Boolean getImportant()

setImportant

public void setImportant(java.lang.Boolean important)

getStatus

public java.lang.Integer getStatus()

setStatus

public void setStatus(java.lang.Integer status)


Copyright (c) 2010 Jama Software, Inc. All Rights Reserved.