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 long
getCommentID()
Get the ID of the commentString
getCommentPath()
String
getPath()
String
getResourcePath()
Get the path of the resource that this comment belongs toString
getText()
Returns the comment textlong
getTime()
Get time the comment was madeString
getUser()
Get the user who made this commentvoid
setCommentID(long commentID)
Set comment IDvoid
setCommentPath(String commentPath)
void
setPath(String path)
void
setResourcePath(String resourcePath)
Set the path of the resource that this comment belongs tovoid
setText(String text)
Sets the comment textvoid
setTime(long time)
Set time as a long integer valuevoid
setUser(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)
-
-