Package org.wso2.carbon.registry.api
Interface Comment
-
- All Superinterfaces:
Resource
public interface Comment extends Resource
This interface represents a comment that can be added to a resource. A comment is treated a resource itself and it extends theResourceinterface. This interface can be used to add, view or modify existing comments on the registry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCommentID()Method to get the comment id.StringgetCommentPath()Method to get the comment path.StringgetText()Get the comment text.StringgetUser()Get the commenting user.voidsetCommentID(long commentID)Method to set the comment id.voidsetCommentPath(String commentPath)Method to set the comment path.voidsetText(String text)Set the comment text.voidsetUser(String user)Set the commenting user.-
Methods inherited from interface org.wso2.carbon.registry.api.Resource
addAspect, addProperty, discard, editPropertyValue, getAspects, getAuthorUserName, getContent, getContentStream, getCreatedTime, getDescription, getId, getLastModified, getLastUpdaterUserName, getMediaType, getParentPath, getPath, getPermanentPath, getProperties, getProperty, getPropertyValues, getState, removeAspect, removeProperty, removePropertyValue, setContent, setContentStream, setDescription, setMediaType, setProperties, setProperty, setProperty
-
-
-
-
Method Detail
-
getText
String getText()
Get the comment text.- Returns:
- the text
-
setText
void setText(String text)
Set the comment text.- Parameters:
text- the text
-
getUser
String getUser()
Get the commenting user.- Returns:
- the comment user
-
setUser
void setUser(String user)
Set the commenting user.- Parameters:
user- the commenting user
-
getCommentPath
String getCommentPath()
Method to get the comment path.- Returns:
- the comment path
-
setCommentPath
void setCommentPath(String commentPath)
Method to set the comment path.- Parameters:
commentPath- the comment path
-
getCommentID
long getCommentID()
Method to get the comment id.- Returns:
- the comment id.
-
setCommentID
void setCommentID(long commentID)
Method to set the comment id.- Parameters:
commentID- the comment id.
-
-