Class CommentProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.CommentProperties
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PersonalMessage
public class CommentProperties extends ReferenceableProperties
The CommentProperties bean stores information about a comment connected to an asset. Comments provide informal feedback to assets and can be added at any time. Comments have the userId of the person who added the feedback, along with their comment text. The content of the comment is a personal statement (which is why the user's id is in the comment) and there is no formal review of the content.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommentProperties()Default constructorCommentProperties(CommentProperties template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetCommentText()Return the comment text.CommentTypegetCommentType()Return an enum that describes the type of comment.booleangetIsPublic()Return whether the comment is private to the creating user or not.StringgetUser()Return the user id of the person who created the comment.inthashCode()Create a hash code for this element type.voidsetCommentText(String commentText)Set up the comment text.voidsetCommentType(CommentType commentType)Set up the enum that describes the type of comment.voidsetIsPublic(boolean isPublic)Set up whether the comment is private to the creating user or not.voidsetUser(String user)Set up the user id of the person who created the comment.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
getAdditionalProperties, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
CommentProperties
public CommentProperties()
Default constructor
-
CommentProperties
public CommentProperties(CommentProperties template)
Copy/clone constructor.- Parameters:
template- element to copy
-
-
Method Detail
-
getCommentType
public CommentType getCommentType()
Return an enum that describes the type of comment.- Returns:
- CommentType enum
-
setCommentType
public void setCommentType(CommentType commentType)
Set up the enum that describes the type of comment.- Parameters:
commentType- CommentType enum
-
getCommentText
public String getCommentText()
Return the comment text.- Returns:
- String commentText
-
setCommentText
public void setCommentText(String commentText)
Set up the comment text.- Parameters:
commentText- String text
-
getUser
public String getUser()
Return the user id of the person who created the comment. Null means the user id is not known.- Returns:
- String commenting user
-
setUser
public void setUser(String user)
Set up the user id of the person who created the comment. Null means the user id is not known.- Parameters:
user- String commenting user
-
getIsPublic
public boolean getIsPublic()
Return whether the comment is private to the creating user or not.- Returns:
- boolean
-
setIsPublic
public void setIsPublic(boolean isPublic)
Set up whether the comment is private to the creating user or not.- Parameters:
isPublic- boolean
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classReferenceableProperties- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classReferenceableProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classReferenceableProperties- Returns:
- int hash code
-
-