public interface AssetConsumerFeedbackInterface
| Modifier and Type | Method and Description |
|---|---|
String |
addCommentReply(String userId,
String assetGUID,
String commentGUID,
CommentType commentType,
String commentText,
boolean isPublic)
Adds a comment to another comment.
|
String |
addCommentToAsset(String userId,
String assetGUID,
CommentType commentType,
String commentText,
boolean isPublic)
Adds a comment to the asset.
|
void |
addLikeToAsset(String userId,
String assetGUID,
boolean isPublic)
Adds a "LikeProperties" to the asset.
|
void |
addRatingToAsset(String userId,
String assetGUID,
StarRating starRating,
String review,
boolean isPublic)
Adds a star rating and optional review text to the asset.
|
void |
removeComment(String userId,
String assetGUID,
String commentGUID)
Removes a comment added to the asset by this user.
|
void |
removeLikeFromAsset(String userId,
String assetGUID)
Removes a "LikeProperties" added to the asset by this user.
|
void |
removeRatingFromAsset(String userId,
String assetGUID)
Removes of a review that was added to the asset by this user.
|
void |
updateComment(String userId,
String assetGUID,
String commentGUID,
CommentType commentType,
String commentText,
boolean isPublic)
Update an existing comment.
|
void addRatingToAsset(String userId, String assetGUID, StarRating starRating, String review, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset.starRating - StarRating enumeration for not recommended, one to five stars.review - user review of asset. This can be null.isPublic - indicates whether the feedback should be shared or only be visible to the originating userInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the asset properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.void removeRatingFromAsset(String userId, String assetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset where the rating is attached.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the asset properties in the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.void addLikeToAsset(String userId, String assetGUID, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset where the like is to be attached.isPublic - indicates whether the feedback should be shared or only be visible to the originating userInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the asset properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.void removeLikeFromAsset(String userId, String assetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset where the like is attached.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the asset properties in the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.String addCommentToAsset(String userId, String assetGUID, CommentType commentType, String commentText, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset.commentType - type of comment enum.commentText - the text of the comment.isPublic - indicates whether the feedback should be shared or only be visible to the originating userInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the asset properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.String addCommentReply(String userId, String assetGUID, String commentGUID, CommentType commentType, String commentText, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset at the head of this comment chain.commentGUID - unique identifier for an existing comment. Used to add a reply to a comment.commentType - type of comment enum.commentText - the text of the comment.isPublic - indicates whether the feedback should be shared or only be visible to the originating userInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the asset properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.void updateComment(String userId, String assetGUID, String commentGUID, CommentType commentType, String commentText, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset at the head of this comment chain.commentGUID - unique identifier for the comment to change.commentType - type of comment enum.commentText - the text of the comment.isPublic - indicates whether the feedback should be shared or only be visible to the originating userInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the asset properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.void removeComment(String userId, String assetGUID, String commentGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset at the head of this comment chain.commentGUID - unique identifier for the comment object.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the asset properties in the property server.UserNotAuthorizedException - the user does not have permission to perform this request.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.