Class AddCommentRequest
Object
AddCommentRequest
- All Implemented Interfaces:
Serializable
The properties of the comment to be added.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AddCommentRequest.Builderbuilder()protected booleanbooleanDeprecated.The discriminator of the resource to which the new comment should be attached to.The identifier of the resource to which the new comment should be attached to.Required. The actual HTML content of the comment to be added.The id of the parent comment.inthashCode()voidsetBaseResource(ResourceReference baseResource) Deprecated.Please use the combination ofcommentableResourceIdandcommentableResourceDiscriminatorvoidsetBaseResourceDiscriminator(String baseResourceDiscriminator) Deprecated, for removal: This API element is subject to removal in a future version.Please usecommentableResourceDiscriminatorinstead.voidsetBaseResourceId(UUID baseResourceId) Deprecated, for removal: This API element is subject to removal in a future version.Please usecommentableResourceIdinstead.voidsetBaseResourceType(ResourceType baseResourceType) Deprecated, for removal: This API element is subject to removal in a future version.Please usecommentableResourceDiscriminatorinstead.voidsetCommentableResourceDiscriminator(String commentableResourceDiscriminator) The discriminator of the resource to which the new comment should be attached to.voidsetCommentableResourceId(UUID commentableResourceId) The identifier of the resource to which the new comment should be attached to.voidsetContent(String content) Required. The actual HTML content of the comment to be added.voidsetParentId(UUID parentId) The id of the parent comment.toString()
-
Constructor Details
-
AddCommentRequest
public AddCommentRequest()
-
-
Method Details
-
setBaseResourceId
Deprecated, for removal: This API element is subject to removal in a future version.Please usecommentableResourceIdinstead.Sets the ID of the resource which the new comment should be attached to. This is a convenience method for setting base resource ID.- Parameters:
baseResourceId- the ID of the resource which the new comment should be attached to
-
setBaseResourceType
@Deprecated(since="2025.01", forRemoval=true) public void setBaseResourceType(ResourceType baseResourceType) Deprecated, for removal: This API element is subject to removal in a future version.Please usecommentableResourceDiscriminatorinstead.Sets the type of the resource which the new comment should be attached to. This is a convenience method for setting base resource type.- Parameters:
baseResourceType- the type of the resource which the new comment should be attached to
-
setBaseResourceDiscriminator
@Deprecated(since="2025.03", forRemoval=true) public void setBaseResourceDiscriminator(String baseResourceDiscriminator) Deprecated, for removal: This API element is subject to removal in a future version.Please usecommentableResourceDiscriminatorinstead.Sets the resource discriminator of the resource which the new attachment should be attached to. This is a convenience method for setting the base resource discriminator. Following discriminators are allowed for attachments:Asset,Domain,Community,Rating.- Parameters:
baseResourceDiscriminator- the discriminator of the resource which the new attachment should be attached to
-
builder
-
getContent
Required. The actual HTML content of the comment to be added. Can contain user mentions using syntax[@User:$userId]where $userId is the ID of mentioned user. For example:[@User:00000000-0000-0000-0000-000000900002]. -
getBaseResource
Deprecated.Please use the combination ofcommentableResourceIdandcommentableResourceDiscriminatorThe resource which the new comment should be attached to. For a Comment, the resourceType/resourceDiscriminator of a baseResource can be:Asset,Domain,Community,Rating -
getCommentableResourceId
The identifier of the resource to which the new comment should be attached to. The combination ofcommentableResourceIdandcommentableResourceDiscriminatorreplaces thebaseResourcefield. These should not be used together. -
getCommentableResourceDiscriminator
The discriminator of the resource to which the new comment should be attached to. The combination ofcommentableResourceIdandcommentableResourceDiscriminatorreplaces thebaseResourcefield. These should not be used together.Possible values for a discriminator of a Commentable Resource are:Asset,Domain,Community,Rating -
getParentId
The id of the parent comment. If not null - the comment is the reply for the parent comment. Comment threads are not supported, replying to a reply will cause an illegal argument exception. -
setContent
Required. The actual HTML content of the comment to be added. Can contain user mentions using syntax[@User:$userId]where $userId is the ID of mentioned user. For example:[@User:00000000-0000-0000-0000-000000900002]. -
setBaseResource
Deprecated.Please use the combination ofcommentableResourceIdandcommentableResourceDiscriminatorThe resource which the new comment should be attached to. For a Comment, the resourceType/resourceDiscriminator of a baseResource can be:Asset,Domain,Community,Rating -
setCommentableResourceId
The identifier of the resource to which the new comment should be attached to. The combination ofcommentableResourceIdandcommentableResourceDiscriminatorreplaces thebaseResourcefield. These should not be used together. -
setCommentableResourceDiscriminator
The discriminator of the resource to which the new comment should be attached to. The combination ofcommentableResourceIdandcommentableResourceDiscriminatorreplaces thebaseResourcefield. These should not be used together.Possible values for a discriminator of a Commentable Resource are:Asset,Domain,Community,Rating -
setParentId
The id of the parent comment. If not null - the comment is the reply for the parent comment. Comment threads are not supported, replying to a reply will cause an illegal argument exception. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
commentableResourceIdandcommentableResourceDiscriminator