public class CommentPropertyApi extends Object
| Constructor and Description |
|---|
CommentPropertyApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Completable |
deleteCommentProperty(String commentId,
String propertyKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete comment property
Deletes a comment property.
|
io.reactivex.Single<EntityProperty> |
getCommentProperty(String commentId,
String propertyKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get comment property
Returns the value of a comment property.
|
io.reactivex.Single<PropertyKeys> |
getCommentPropertyKeys(String commentId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get comment property keys
Returns the keys of all the properties of a comment.
|
io.reactivex.Single<Object> |
setCommentProperty(String commentId,
String propertyKey,
Object body,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Set comment property
Creates or updates the value of a property for a comment.
|
public CommentPropertyApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Completable deleteCommentProperty(String commentId, String propertyKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deletes a comment property.
Permissions required: either of:
Also, when the visibility of a comment is restricted to a role or group the user must be a member of that role or group.
commentId - The ID of the comment.
(required)propertyKey - The key of the property.
(required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<EntityProperty> getCommentProperty(String commentId, String propertyKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns the value of a comment property.
This operation can be accessed anonymously.
Permissions required:
commentId - The ID of the comment.
(required)propertyKey - The key of the property.
(required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PropertyKeys> getCommentPropertyKeys(String commentId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns the keys of all the properties of a comment.
This operation can be accessed anonymously.
Permissions required:
commentId - The ID of the comment.
(required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Object> setCommentProperty(String commentId, String propertyKey, Object body, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Creates or updates the value of a property for a comment. Use this resource to store custom data against a comment.
The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters.
Permissions required: either of:
Also, when the visibility of a comment is restricted to a role or group the user must be a member of that role or group.
commentId - The ID of the comment.
(required)propertyKey - The key of the property. The maximum length is 255 characters.
(required)body - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.