public class AssetConsumerRESTServices extends Object
| Constructor and Description |
|---|
AssetConsumerRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GUIDResponse |
addCommentReply(String serverName,
String userId,
String commentGUID,
CommentRequestBody requestBody)
Adds a reply to a comment.
|
GUIDResponse |
addCommentToAsset(String serverName,
String userId,
String guid,
CommentRequestBody requestBody)
Adds a comment to the asset.
|
GUIDResponse |
addLikeToAsset(String serverName,
String userId,
String guid,
NullRequestBody requestBody)
Adds a "Like" to the asset.
|
VoidResponse |
addLogMessageToAsset(String serverName,
String userId,
String guid,
LogRecordRequestBody requestBody)
Creates an Audit log record for the asset.
|
GUIDResponse |
addReviewToAsset(String serverName,
String userId,
String guid,
ReviewRequestBody requestBody)
Adds a star rating and optional review text to the asset.
|
VoidResponse |
addTagToAsset(String serverName,
String userId,
String assetGUID,
String tagGUID,
NullRequestBody requestBody)
Adds a tag (either private of public) to an asset.
|
GUIDResponse |
createPrivateTag(String serverName,
String userId,
TagRequestBody requestBody)
Creates a new private informal tag and returns the unique identifier for it.
|
GUIDResponse |
createPublicTag(String serverName,
String userId,
TagRequestBody requestBody)
Creates a new public informal tag and returns the unique identifier for it.
|
VoidResponse |
deleteTag(String serverName,
String userId,
String tagGUID,
NullRequestBody requestBody)
Removes a tag from the repository.
|
GUIDResponse |
getAssetForConnection(String serverName,
String userId,
String connectionGUID)
Returns the unique identifier for the asset connected to the connection.
|
ConnectionResponse |
getConnectionByGUID(String serverName,
String userId,
String guid)
Returns the connection object corresponding to the supplied connection GUID.
|
ConnectionResponse |
getConnectionByName(String serverName,
String userId,
String name)
Returns the connection object corresponding to the supplied connection name.
|
MeaningResponse |
getMeaning(String serverName,
String userId,
String guid)
Return the full definition (meaning) of a term using the unique identifier of the glossary term.
|
MeaningListResponse |
getMeaningByName(String serverName,
String userId,
String term,
int startFrom,
int pageSize)
Return the full definition (meaning) of the terms matching the supplied name.
|
TagResponse |
getTag(String serverName,
String userId,
String guid)
Return the tag for the supplied unique identifier (guid).
|
TagListResponse |
getTagsByName(String serverName,
String userId,
String tagName,
int startFrom,
int pageSize)
Return the list of tags matching the supplied name.
|
VoidResponse |
removeCommentFromAsset(String serverName,
String userId,
String guid,
NullRequestBody requestBody)
Removes a comment added to the asset by this user.
|
VoidResponse |
removeLikeFromAsset(String serverName,
String userId,
String guid,
NullRequestBody requestBody)
Removes a "Like" added to the asset by this user.
|
VoidResponse |
removeReviewFromAsset(String serverName,
String userId,
String guid,
NullRequestBody requestBody)
Removes a star rating that was added to the asset by this user.
|
VoidResponse |
removeTagFromAsset(String serverName,
String userId,
String assetGUID,
String tagGUID,
NullRequestBody requestBody)
Removes a tag from the asset that was added by this user.
|
VoidResponse |
updateComment(String serverName,
String userId,
String guid,
CommentRequestBody requestBody)
Update an existing comment.
|
VoidResponse |
updateReviewOnAsset(String serverName,
String userId,
String guid,
ReviewRequestBody requestBody)
Updates the rating and optional review text attached to the asset by this user.
|
VoidResponse |
updateTagDescription(String serverName,
String userId,
String tagGUID,
TagRequestBody requestBody)
Updates the description of an existing tag (either private of public).
|
public GUIDResponse getAssetForConnection(String serverName, String userId, String connectionGUID)
serverName - name of the server instances for this requestuserId - the userId of the requesting user.connectionGUID - uniqueId for the connection.public ConnectionResponse getConnectionByName(String serverName, String userId, String name)
serverName - name of the server instances for this requestuserId - userId of user making request.name - this may be the qualifiedName or displayName of the connection.public ConnectionResponse getConnectionByGUID(String serverName, String userId, String guid)
serverName - name of the server instances for this requestuserId - userId of user making request.guid - the unique id for the connection within the property server.public GUIDResponse addReviewToAsset(String serverName, String userId, String guid, ReviewRequestBody requestBody)
serverName - name of the server instances for this requestuserId - String - userId of user making request.guid - String - unique id for the asset.requestBody - containing the StarRating and user review of asset.public VoidResponse updateReviewOnAsset(String serverName, String userId, String guid, ReviewRequestBody requestBody)
userId - userId of user making request.guid - unique identifier for the review.requestBody - provides the StarRating enumeration for none, one to five stars plus
optional review test.public VoidResponse removeReviewFromAsset(String serverName, String userId, String guid, NullRequestBody requestBody)
serverName - name of the server instances for this requestuserId - String - userId of user making request.guid - String - unique id for the rating objectrequestBody - null request body needed to satisfy the HTTP Post requestpublic GUIDResponse addLikeToAsset(String serverName, String userId, String guid, NullRequestBody requestBody)
serverName - name of the server instances for this requestuserId - String - userId of user making request.guid - String - unique id for the asset.requestBody - null request body to satisfy HTTP protocol.public VoidResponse removeLikeFromAsset(String serverName, String userId, String guid, NullRequestBody requestBody)
serverName - name of the server instances for this requestuserId - String - userId of user making request.guid - String - unique id for the like objectrequestBody - null request body needed to satisfy the HTTP Post requestpublic GUIDResponse addCommentToAsset(String serverName, String userId, String guid, CommentRequestBody requestBody)
serverName - name of the server instances for this requestuserId - 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 serverName, String userId, String commentGUID, CommentRequestBody requestBody)
serverName - name of the server instances for this requestuserId - 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 updateComment(String serverName, String userId, String guid, CommentRequestBody requestBody)
serverName - name of the server instances for this request.userId - userId of user making request.guid - unique identifier for the comment to change.requestBody - containing type of comment enum and the text of the comment.public VoidResponse removeCommentFromAsset(String serverName, String userId, String guid, NullRequestBody requestBody)
serverName - name of the server instances for this requestuserId - String - userId of user making request.guid - String - unique id for the comment objectrequestBody - null request body needed to satisfy the HTTP Post requestpublic MeaningResponse getMeaning(String serverName, String userId, String guid)
serverName - name of the server instances for this requestuserId - userId of the user making the request.guid - unique identifier of the meaning.public MeaningListResponse getMeaningByName(String serverName, String userId, String term, int startFrom, int pageSize)
serverName - name of the server instances for this requestuserId - the name of the calling user.term - name of term. This may include wild card characters.startFrom - index of the list ot start from (0 for start)pageSize - maximum number of elements to return.public VoidResponse addLogMessageToAsset(String serverName, String userId, String guid, LogRecordRequestBody requestBody)
serverName - name of the server instances for this requestuserId - 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 createPublicTag(String serverName, String userId, TagRequestBody requestBody)
serverName - name of the server instances for this requestuserId - userId of user making request.requestBody - contains the name of the tag and (optional) description of the tag.public GUIDResponse createPrivateTag(String serverName, String userId, TagRequestBody requestBody)
serverName - name of the server instances for this requestuserId - userId of user making request.requestBody - contains the name of the tag and (optional) description of the tag.public VoidResponse updateTagDescription(String serverName, String userId, String tagGUID, TagRequestBody requestBody)
serverName - name of the server instances for this requestuserId - userId of user making request.tagGUID - unique id for the tag.requestBody - contains the name of the tag and (optional) description of the tag.public VoidResponse deleteTag(String serverName, String userId, String tagGUID, NullRequestBody requestBody)
serverName - name of the server instances for this requestuserId - userId of user making request.tagGUID - unique id for the tag.requestBody - null request body.public TagResponse getTag(String serverName, String userId, String guid)
serverName - name of the server instances for this requestuserId - userId of the user making the request.guid - unique identifier of the tag.public TagListResponse getTagsByName(String serverName, String userId, String tagName, int startFrom, int pageSize)
serverName - name of the server instances for this requestuserId - the name of the calling user.tagName - name of tag. This may include wild card characters.startFrom - index of the list ot start from (0 for start)pageSize - maximum number of elements to return.public VoidResponse addTagToAsset(String serverName, String userId, String assetGUID, String tagGUID, NullRequestBody requestBody)
serverName - name of the server instances for this requestuserId - userId of user making request.assetGUID - unique id for the asset.tagGUID - unique id of the tag.requestBody - null request body needed for correct protocol exchange.public VoidResponse removeTagFromAsset(String serverName, String userId, String assetGUID, String tagGUID, NullRequestBody requestBody)
serverName - name of the server instances for this requestuserId - userId of user making request.assetGUID - unique id for the asset.tagGUID - unique id for the tag.requestBody - null request body needed for correct protocol exchange.Copyright © 2018–2019 ODPi. All rights reserved.