com.danube.scrumworks.api2
Class Comment

java.lang.Object
  extended by com.danube.scrumworks.api2.Comment
All Implemented Interfaces:
java.io.Serializable

public final class Comment
extends java.lang.Object
implements java.io.Serializable

Web service representation of comments.

See Also:
Serialized Form

Constructor Summary
Comment()
          Constructs a new Comment.
Comment(java.lang.Long id, java.lang.String text, User user, java.util.Date timeStamp)
          Constructs a new Comment.
 
Method Summary
 java.lang.Long getId()
          Gets the id.
 java.lang.String getText()
          Gets the text.
 java.util.Date getTimeStamp()
          Gets the time stamp.
 User getUser()
          Gets the user.
 void setId(java.lang.Long id)
          Sets the id.
 void setText(java.lang.String text)
          Sets the text.
 void setTimeStamp(java.util.Date timeStamp)
          Sets the time stamp the comment was made.
 void setUser(User user)
          Sets the user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment()
Constructs a new Comment.


Comment

public Comment(java.lang.Long id,
               java.lang.String text,
               User user,
               java.util.Date timeStamp)
Constructs a new Comment.

Parameters:
id - the id
text - the text of the comment
user - the user who created the comment
timeStamp - the time the comment was created
Method Detail

getId

public java.lang.Long getId()
Gets the id.

Returns:
the id

setId

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

Parameters:
id - the new id

getText

public java.lang.String getText()
Gets the text.

Returns:
the text

setText

public void setText(java.lang.String text)
Sets the text.

Parameters:
text - the new text

getUser

public User getUser()
Gets the user.

Returns:
the user

setUser

public void setUser(User user)
Sets the user.

Parameters:
user - the new user

getTimeStamp

public java.util.Date getTimeStamp()
Gets the time stamp.

Returns:
the time stamp the comment was made

setTimeStamp

public void setTimeStamp(java.util.Date timeStamp)
Sets the time stamp the comment was made.

Parameters:
timeStamp - the new time stamp