Class Comment
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
org.odpi.openmetadata.frameworks.connectors.properties.beans.Comment
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CommentConversation
The Comment 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected CommentTypeprotected booleanprotected StringFields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
additionalProperties, qualifiedNameFields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties, urlFields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the comment text.Return an enum that describes the type of comment.booleanReturn if this like is private ot the creating user.getUser()Return the user id of the person who created the comment.inthashCode()Hash of propertiesvoidsetCommentText(String commentText) Set up the comment text.voidsetCommentType(CommentType commentType) Set up the enum that describes the type of comment.voidsetIsPublic(boolean aPublic) Set up whether the like is private to the creating user or not.voidSet up the user id of the person who created the comment.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedNameMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
getExtendedProperties, getURL, setExtendedProperties, setURLMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
getClassifications, getGUID, setClassifications, setGUIDMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
getOrigin, getStatus, getType, getVersions, setOrigin, setStatus, setType, setVersionsMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
Field Details
-
commentType
-
commentText
-
user
-
isPublic
protected boolean isPublic
-
-
Constructor Details
-
Comment
public Comment()Default constructor -
Comment
Copy/clone constructor.- Parameters:
template- element to copy
-
-
Method Details
-
getCommentType
Return an enum that describes the type of comment.- Returns:
- CommentType enum
-
setCommentType
Set up the enum that describes the type of comment.- Parameters:
commentType- CommentType enum
-
getCommentText
Return the comment text.- Returns:
- String commentText
-
setCommentText
Set up the comment text.- Parameters:
commentText- String text
-
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
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 if this like is private ot the creating user.- Returns:
- boolean
-
setIsPublic
public void setIsPublic(boolean aPublic) Set up whether the like is private to the creating user or not.- Parameters:
aPublic- boolean
-
toString
Standard toString method.- Overrides:
toStringin classReferenceable- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classReferenceable- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCodein classReferenceable- Returns:
- int
-