public class Comment extends ResourceImpl implements org.wso2.carbon.registry.api.Comment
authorUserName, content, contentModified, createdTime, dataAccessManager, dbBasedContentID, description, directory, id, lastModified, lastUpdaterUserName, matchingSnapshotID, mediaType, name, parentPath, path, pathID, permanentPath, properties, propertiesModified, resourceDAO, snapshotID, state, tenantId, userName, userRealm, uuid, versionableChange, versionNumber| Constructor and Description |
|---|
Comment()
Default constructor to create an empty comment.
|
Comment(Comment comment)
A copy constructor used to create a shallow-copy of this comment.
|
Comment(String commentText)
Construct a comment with a text.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorUserName()
Method to get the author user name.
|
long |
getCommentID()
Method to get the comment id.
|
String |
getCommentPath()
Method to get the comment path.
|
Object |
getContent()
Get the comment text.
|
String |
getDescription()
Get the description.
|
String |
getResourcePath()
Get the path of the resource of the comment.
|
String |
getText()
Get the comment text.
|
Date |
getTime()
Deprecated.
please use
ResourceImpl.getCreatedTime() instead |
String |
getUser()
Get the commenting user.
|
void |
setCommentID(long commentID)
Method to set the comment id.
|
void |
setCommentPath(String commentPath)
Method to set the comment path.
|
void |
setCreatedTime(Date createdTime)
Method to set the created time.
|
void |
setResourcePath(String resourcePath)
Set the path of the resource of the comment.
|
void |
setText(String text)
Set the comment text.
|
void |
setTime(Date time)
Deprecated.
please use
setCreatedTime(java.util.Date) instead |
void |
setUser(String user)
Set the commenting user.
|
addAspect, addProperty, addPropertyWithNoUpdate, clearSessionInformation, discard, editPropertyValue, fillResourceCopy, getAspects, getContentStream, getCreatedTime, getDbBasedContentID, getId, getLastModified, getLastUpdaterUserName, getMatchingSnapshotID, getMediaType, getName, getParentPath, getPath, getPathID, getPermanentPath, getProperties, getProperty, getPropertyValues, getResourceDO, getResourceIDImpl, getShallowCopy, getSnapshotID, getState, getUUID, getVersionNumber, isContentModified, isPropertiesModified, isVersionableChange, prepareContentForPut, pullContentFromOriginal, removeAspect, removeProperty, removePropertyValue, removePropertyWithNoUpdate, setAuthorUserName, setContent, setContentModified, setContentStream, setContentStreamWithNoUpdate, setContentWithNoUpdate, setDataAccessManager, setDbBasedContentID, setDescription, setId, setLastModified, setLastUpdaterUserName, setMatchingSnapshotID, setMediaType, setName, setParentPath, setPath, setPathID, setProperties, setPropertiesModified, setPropertiesModifiedWithNoUpdate, setProperty, setProperty, setSessionInformation, setSnapshotID, setState, setTenantId, setUserName, setUserRealm, setUUID, setVersionableChange, setVersionNumberclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAspect, addProperty, discard, editPropertyValue, getAspects, getContentStream, getCreatedTime, getId, getLastModified, getLastUpdaterUserName, getMediaType, getParentPath, getPath, getPermanentPath, getProperties, getProperty, getPropertyValues, getState, removeAspect, removeProperty, removePropertyValue, setContent, setContentStream, setDescription, setMediaType, setProperties, setProperty, setPropertypublic Comment()
public Comment(String commentText)
commentText - the comment textpublic Comment(Comment comment)
comment - the comment of which the copy is created.public String getText()
getText in interface org.wso2.carbon.registry.api.Commentpublic void setText(String text)
setText in interface org.wso2.carbon.registry.api.Commenttext - the textpublic String getUser()
getUser in interface org.wso2.carbon.registry.api.Commentpublic void setUser(String user)
setUser in interface org.wso2.carbon.registry.api.Commentuser - the commenting user@Deprecated public Date getTime()
ResourceImpl.getCreatedTime() instead@Deprecated public void setTime(Date time)
setCreatedTime(java.util.Date) insteadtime - the timepublic void setCreatedTime(Date createdTime)
setCreatedTime in class ResourceImplcreatedTime - the created time.public String getResourcePath()
public void setResourcePath(String resourcePath)
resourcePath - the resource path.public Object getContent() throws RegistryException
getContent in interface org.wso2.carbon.registry.api.ResourcegetContent in class ResourceImplRegistryException - throws if the operation fail.public String getDescription()
getDescription in interface org.wso2.carbon.registry.api.ResourcegetDescription in class ResourceImplpublic String getCommentPath()
getCommentPath in interface org.wso2.carbon.registry.api.Commentpublic void setCommentPath(String commentPath)
setCommentPath in interface org.wso2.carbon.registry.api.CommentcommentPath - the comment pathpublic String getAuthorUserName()
getAuthorUserName in interface org.wso2.carbon.registry.api.ResourcegetAuthorUserName in class ResourceImplpublic long getCommentID()
getCommentID in interface org.wso2.carbon.registry.api.Commentpublic void setCommentID(long commentID)
setCommentID in interface org.wso2.carbon.registry.api.CommentcommentID - the comment id.Copyright © 2015 WSO2 Inc. All Rights Reserved.