Package org.wso2.carbon.registry.ws.api
Class WSComment
- java.lang.Object
-
- org.wso2.carbon.registry.ws.api.WSComment
-
public class WSComment extends Object
The WSComment class is a web service compatible representation of the Comment class.
-
-
Constructor Summary
Constructors Constructor Description WSComment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCommentID()Get the ID of the commentStringgetCommentPath()StringgetPath()StringgetResourcePath()Get the path of the resource that this comment belongs toStringgetText()Returns the comment textlonggetTime()Get time the comment was madeStringgetUser()Get the user who made this commentvoidsetCommentID(long commentID)Set comment IDvoidsetCommentPath(String commentPath)voidsetPath(String path)voidsetResourcePath(String resourcePath)Set the path of the resource that this comment belongs tovoidsetText(String text)Sets the comment textvoidsetTime(long time)Set time as a long integer valuevoidsetUser(String user)Set the user of this comment
-
-
-
Method Detail
-
getCommentPath
public String getCommentPath()
-
setCommentPath
public void setCommentPath(String commentPath)
-
getText
public String getText()
Returns the comment text- Returns:
- text
-
setText
public void setText(String text)
Sets the comment text- Parameters:
text-
-
getUser
public String getUser()
Get the user who made this comment- Returns:
- user
-
setUser
public void setUser(String user)
Set the user of this comment- Parameters:
user-
-
getTime
public long getTime()
Get time the comment was made- Returns:
- time as a long integer value
-
setTime
public void setTime(long time)
Set time as a long integer value- Parameters:
time-
-
getResourcePath
public String getResourcePath()
Get the path of the resource that this comment belongs to- Returns:
- resource path
-
setResourcePath
public void setResourcePath(String resourcePath)
Set the path of the resource that this comment belongs to- Parameters:
resourcePath-
-
getCommentID
public long getCommentID()
Get the ID of the comment- Returns:
- comment ID
-
setCommentID
public void setCommentID(long commentID)
Set comment ID- Parameters:
commentID-
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
-