public class AssetComment extends AssetElementHeader
| Modifier and Type | Field and Description |
|---|---|
protected Comment |
commentBean |
protected AssetCommentReplies |
commentReplies |
parentAsset| Constructor and Description |
|---|
AssetComment(AssetDescriptor parentAsset,
AssetComment templateComment)
Copy/clone constructor.
|
AssetComment(AssetDescriptor parentAsset,
Comment commentBean,
AssetCommentReplies commentReplies)
Bean constructor with parent asset and replies
|
AssetComment(Comment commentBean,
AssetCommentReplies commentReplies)
Bean constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
protected Comment |
getCommentBean()
Return the bean with all of the properties.
|
AssetCommentReplies |
getCommentReplies()
Return an iterator of the replies to this comment - null means no replies are available.
|
String |
getCommentText()
Return the comment text.
|
CommentType |
getCommentType()
Return an enum that describes the type of comment.
|
String |
getUser()
Return the user id of the person who created the comment.
|
boolean |
isPublic()
Return if this comment is private to the creating user.
|
String |
toString()
Standard toString method.
|
getAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, hashCode, setBeangetParentAsset, getParentAssetName, getParentAssetTypeNameprotected Comment commentBean
protected AssetCommentReplies commentReplies
public AssetComment(Comment commentBean, AssetCommentReplies commentReplies)
commentBean - bean that contains all of the propertiescommentReplies - any replies to this commentpublic AssetComment(AssetDescriptor parentAsset, Comment commentBean, AssetCommentReplies commentReplies)
parentAsset - descriptor for parent assetcommentBean - bean that contains all of the propertiescommentReplies - any replies to this commentpublic AssetComment(AssetDescriptor parentAsset, AssetComment templateComment)
parentAsset - descriptor for parent assettemplateComment - element to copyprotected Comment getCommentBean()
public boolean isPublic()
public CommentType getCommentType()
public String getUser()
public String getCommentText()
public AssetCommentReplies getCommentReplies()
public String toString()
toString in class AssetElementHeaderpublic boolean equals(Object objectToCompare)
equals in class AssetElementHeaderobjectToCompare - supplied objectCopyright © 2018–2020 ODPi. All rights reserved.