public class AssetConsumerRESTServices extends Object
| Constructor and Description |
|---|
AssetConsumerRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GUIDResponse |
addCommentReply(String userId,
String commentGUID,
CommentRequestBody requestBody)
Adds a reply to a comment.
|
GUIDResponse |
addCommentToAsset(String userId,
String guid,
CommentRequestBody requestBody)
Adds a comment to the asset.
|
GUIDResponse |
addLikeToAsset(String userId,
String guid,
NullRequestBody requestBody)
Adds a "Like" to the asset.
|
VoidResponse |
addLogMessageToAsset(String userId,
String guid,
LogRecordRequestBody requestBody)
Creates an Audit log record for the asset.
|
GUIDResponse |
addPrivateTagToAsset(String userId,
String guid,
TagRequestBody requestBody)
Adds a new private tag to the asset's properties.
|
GUIDResponse |
addRatingToAsset(String userId,
String guid,
RatingRequestBody requestBody)
Adds a rating to the asset.
|
GUIDResponse |
addTagToAsset(String userId,
String guid,
TagRequestBody requestBody)
Adds a new public tag to the asset's properties.
|
ConnectionResponse |
getConnectionByGUID(String userId,
String guid)
Returns the connection object corresponding to the supplied connection GUID.
|
ConnectionResponse |
getConnectionByName(String userId,
String name)
Returns the connection object corresponding to the supplied connection name.
|
VoidResponse |
removeComment(String userId,
String guid,
NullRequestBody requestBody)
Removes a comment added to the asset by this user.
|
VoidResponse |
removeLike(String userId,
String guid,
NullRequestBody requestBody)
Removes a "Like" added to the asset by this user.
|
VoidResponse |
removePrivateTag(String userId,
String guid,
NullRequestBody requestBody)
Removes a tag from the asset that was added by this user.
|
VoidResponse |
removeRating(String userId,
String guid,
NullRequestBody requestBody)
Removes a star rating that was added to the asset by this user.
|
VoidResponse |
removeTag(String userId,
String guid,
NullRequestBody requestBody)
Removes a tag from the asset that was added by this user.
|
static void |
setRepositoryConnector(String accessServiceName,
OMRSRepositoryConnector repositoryConnector)
Provide a connector to the REST Services.
|
public static void setRepositoryConnector(String accessServiceName, OMRSRepositoryConnector repositoryConnector)
accessServiceName - name of this access servicerepositoryConnector - OMRS Repository Connector to the property server.public ConnectionResponse getConnectionByName(String userId, String name)
userId - userId of user making request.name - this may be the qualifiedName or displayName of the connection.public ConnectionResponse getConnectionByGUID(String userId, String guid)
userId - userId of user making request.guid - the unique id for the connection within the property server.public VoidResponse addLogMessageToAsset(String userId, String guid, LogRecordRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the asset.requestBody - containing:
connectorInstanceId (String - (optional) id of connector in use (if any)),
connectionName (String - (optional) name of the connection (extracted from the connector)),
connectorType (String - (optional) type of connector in use (if any)),
contextId (String - (optional) function name, or processId of the activity that the caller is performing),
message (log record content).public GUIDResponse addTagToAsset(String userId, String guid, TagRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the asset.requestBody - contains the name of the tag and (optional) description of the tag.public GUIDResponse addPrivateTagToAsset(String userId, String guid, TagRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the asset.requestBody - contains the name of the tag and (optional) description of the tag.public GUIDResponse addRatingToAsset(String userId, String guid, RatingRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the asset.requestBody - containing the StarRating and user review of asset.public GUIDResponse addLikeToAsset(String userId, String guid, NullRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the asset.requestBody - null request body to satisfy HTTP protocol.public GUIDResponse addCommentToAsset(String userId, String guid, CommentRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the asset.requestBody - containing type of comment enum and the text of the comment.public GUIDResponse addCommentReply(String userId, String commentGUID, CommentRequestBody requestBody)
userId - String - userId of user making request.commentGUID - String - unique id for an existing comment. Used to add a reply to a comment.requestBody - containing type of comment enum and the text of the comment.public VoidResponse removeTag(String userId, String guid, NullRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the tag.requestBody - containing type of comment enum and the text of the comment.public VoidResponse removePrivateTag(String userId, String guid, NullRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the tag.requestBody - null request body needed to satisfy the HTTP Post requestpublic VoidResponse removeRating(String userId, String guid, NullRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the rating objectrequestBody - null request body needed to satisfy the HTTP Post requestpublic VoidResponse removeLike(String userId, String guid, NullRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the like objectrequestBody - null request body needed to satisfy the HTTP Post requestpublic VoidResponse removeComment(String userId, String guid, NullRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the comment objectrequestBody - null request body needed to satisfy the HTTP Post requestCopyright © 2017–2018 ODPi. All rights reserved.