Class CommentRequestBody
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FeedbackRequestBody
org.odpi.openmetadata.commonservices.ffdc.rest.CommentRequestBody
The CommentRequestBody 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.
-
Constructor Summary
ConstructorDescriptionDefault constructorCommentRequestBody
(CommentRequestBody template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare 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.getUser()
Return the user id of the person who created the comment.int
hashCode()
Create a hash code for this element type.void
setCommentText
(String commentText) Set up the comment text.void
setCommentType
(CommentType commentType) Set up the enum that describes the type of comment.void
Set up the user id of the person who created the comment.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FeedbackRequestBody
getIsPublic, setIsPublic
-
Constructor Details
-
CommentRequestBody
public CommentRequestBody()Default constructor -
CommentRequestBody
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
-
toString
Standard toString method.- Overrides:
toString
in classFeedbackRequestBody
- 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:
equals
in classFeedbackRequestBody
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classFeedbackRequestBody
- Returns:
- int hash code
-