org.wso2.registry
Class Comment
java.lang.Object
org.wso2.registry.ResourceImpl
org.wso2.registry.Comment
- All Implemented Interfaces:
- Resource
public class Comment
- extends ResourceImpl
Represents comments and its metadata. Note that only the Comment.text field needs to be filled
when adding new comments. All other attributes are ignored and they are filled with appropriate
values for the current context. Therefore, when contructing an instance of this class outside
the Regisrty impl, it is recommended to use new Comment("my comment text") constructor.
Fields inherited from class org.wso2.registry.ResourceImpl |
authorUserName, content, contentID, contentModified, contentStream, createdTime, dataSource, description, directory, id, lastModified, lastUpdaterUserName, matchingSnapshotID, mediaType, parentPath, path, permanentPath, properties, propertiesModified, resourceDAO, snapshotID, state, versionableChange, versionNumber |
Methods inherited from class org.wso2.registry.ResourceImpl |
addAspect, addProperty, editPropertyValue, getAspects, getContentID, getContentStream, getId, getLastUpdaterUserName, getMatchingSnapshotID, getParentPath, getPath, getPermanentPath, getProperties, getProperty, getPropertyValues, getSnapshotID, getState, getVersionNumber, isContentModified, isPropertiesModified, isVersionableChange, removeAspect, removeProperty, removePropertyValue, setAuthorUserName, setContent, setContentID, setContentModified, setContentStream, setCreatedTime, setDataSource, setDescription, setId, setLastModified, setLastUpdaterUserName, setMatchingSnapshotID, setMediaType, setParentPath, setPath, setProperties, setPropertiesModified, setProperty, setProperty, setSnapshotID, setState, setVersionableChange, setVersionNumber |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Comment
public Comment()
Comment
public Comment(java.lang.String commentText)
getText
public java.lang.String getText()
setText
public void setText(java.lang.String text)
getUser
public java.lang.String getUser()
setUser
public void setUser(java.lang.String user)
getTime
public java.util.Date getTime()
- Deprecated. please use getCreatedTime() instead
- Get the comment time.
- Returns:
- the time the comment was made.
setTime
public void setTime(java.util.Date time)
getResourcePath
public java.lang.String getResourcePath()
setResourcePath
public void setResourcePath(java.lang.String resourcePath)
getContent
public java.lang.Object getContent()
throws RegistryException
- Specified by:
getContent
in interface Resource
- Overrides:
getContent
in class ResourceImpl
- Throws:
RegistryException
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface Resource
- Overrides:
getDescription
in class ResourceImpl
getCommentPath
public java.lang.String getCommentPath()
setCommentPath
public void setCommentPath(java.lang.String commentPath)
getMediaType
public java.lang.String getMediaType()
- Specified by:
getMediaType
in interface Resource
- Overrides:
getMediaType
in class ResourceImpl
getAuthorUserName
public java.lang.String getAuthorUserName()
- Specified by:
getAuthorUserName
in interface Resource
- Overrides:
getAuthorUserName
in class ResourceImpl
getLastModified
public java.util.Date getLastModified()
- Specified by:
getLastModified
in interface Resource
- Overrides:
getLastModified
in class ResourceImpl
getCreatedTime
public java.util.Date getCreatedTime()
- Specified by:
getCreatedTime
in interface Resource
- Overrides:
getCreatedTime
in class ResourceImpl
Copyright © 2007 Apache Web Services Project. All Rights Reserved.