Package org.wso2.carbon.registry.ws.api
Class WSComment
java.lang.Object
org.wso2.carbon.registry.ws.api.WSComment
The WSComment class is a web service compatible representation of the Comment class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the ID of the commentgetPath()Get the path of the resource that this comment belongs togetText()Returns the comment textlonggetTime()Get time the comment was madegetUser()Get the user who made this commentvoidsetCommentID(long commentID) Set comment IDvoidsetCommentPath(String commentPath) voidvoidsetResourcePath(String resourcePath) Set the path of the resource that this comment belongs tovoidSets the comment textvoidsetTime(long time) Set time as a long integer valuevoidSet the user of this comment
-
Constructor Details
-
WSComment
public WSComment()
-
-
Method Details
-
getCommentPath
-
setCommentPath
-
getText
Returns the comment text- Returns:
- text
-
setText
Sets the comment text- Parameters:
text-
-
getUser
Get the user who made this comment- Returns:
- user
-
setUser
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
Get the path of the resource that this comment belongs to- Returns:
- resource path
-
setResourcePath
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
-
setPath
-