public class AssetConsumerRESTServices extends Object
| Constructor and Description |
|---|
AssetConsumerRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GUIDResponse |
addCommentReply(String serverName,
String userId,
String assetGUID,
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.
|
VoidResponse |
addLikeToAsset(String serverName,
String userId,
String guid,
FeedbackRequestBody 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.
|
VoidResponse |
addRatingToAsset(String serverName,
String userId,
String guid,
RatingRequestBody requestBody)
Adds a star rating and optional review text to the asset.
|
VoidResponse |
addTagToAsset(String serverName,
String userId,
String assetGUID,
String tagGUID,
FeedbackRequestBody requestBody)
Adds a tag (either private of public) to an asset.
|
GUIDResponse |
createTag(String serverName,
String userId,
TagRequestBody requestBody)
Creates a new 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.
|
GUIDListResponse |
findAssets(String serverName,
String userId,
String searchString,
int startFrom,
int pageSize)
Return a list of assets with the requested search string in their name, qualified name
or description.
|
GlossaryTermListResponse |
findMeanings(String serverName,
String userId,
String term,
int startFrom,
int pageSize)
Return the full definition (meaning) of the terms matching the supplied name.
|
TagsResponse |
findMyTags(String serverName,
String userId,
String tagName,
int startFrom,
int pageSize)
Return the list of the calling user's private tags containing the supplied string in either the name or description.
|
TagsResponse |
findTags(String serverName,
String userId,
String tagName,
int startFrom,
int pageSize)
Return the list of tags containing the supplied string in either the name or description.
|
GUIDResponse |
getAssetForConnectionName(String serverName,
String userId,
String connectionName)
Returns the unique identifier for the asset connected to the connection.
|
GUIDListResponse |
getAssetsByMeaning(String serverName,
String userId,
String termGUID,
int startFrom,
int pageSize)
Return the list of unique identifiers for assets that are linked to a specific (meaning) either directly or via
fields in the schema.
|
GUIDListResponse |
getAssetsByName(String serverName,
String userId,
String name,
int startFrom,
int pageSize)
Return a list of assets with the requested name.
|
GUIDListResponse |
getAssetsByTag(String serverName,
String userId,
String tagGUID,
int startFrom,
int pageSize)
Return the list of unique identifiers for assets that are linked to a specific tag either directly, or via one
of its schema elements.
|
ConnectionResponse |
getConnectionByName(String serverName,
String userId,
String name)
Returns the connection object corresponding to the supplied connection name.
|
GlossaryTermResponse |
getMeaning(String serverName,
String userId,
String guid)
Return the full definition (meaning) of a term using the unique identifier of the glossary term.
|
GlossaryTermListResponse |
getMeaningByName(String serverName,
String userId,
String term,
int startFrom,
int pageSize)
Return the full definition (meaning) of the terms exactly matching the supplied name.
|
TagsResponse |
getMyTagsByName(String serverName,
String userId,
String tagName,
int startFrom,
int pageSize)
Return the list of the calling user's private tags exactly matching the supplied name.
|
TagResponse |
getTag(String serverName,
String userId,
String guid)
Return the tag for the supplied unique identifier (guid).
|
TagsResponse |
getTagsByName(String serverName,
String userId,
String tagName,
int startFrom,
int pageSize)
Return the list of tags exactly matching the supplied name.
|
VoidResponse |
removeCommentFromAsset(String serverName,
String userId,
String assetGUID,
String commentGUID,
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 |
removeRatingFromAsset(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 assetGUID,
String commentGUID,
CommentRequestBody requestBody)
Update an existing comment.
|
VoidResponse |
updateTagDescription(String serverName,
String userId,
String tagGUID,
TagRequestBody requestBody)
Updates the description of an existing tag (either private or public).
|
public GUIDResponse getAssetForConnectionName(String serverName, String userId, String connectionName)
serverName - name of the server instances for this requestuserId - the userId of the requesting user.connectionName - unique name for the connection.public GUIDListResponse findAssets(String serverName, String userId, String searchString, int startFrom, int pageSize)
serverName - name of the server instances for this requestuserId - calling usersearchString - string to search for in textstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnpublic GUIDListResponse getAssetsByName(String serverName, String userId, String name, int startFrom, int pageSize)
serverName - name of the server instances for this requestuserId - calling username - name to search forstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnpublic 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 VoidResponse addRatingToAsset(String serverName, String userId, String guid, RatingRequestBody 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 removeRatingFromAsset(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 VoidResponse addLikeToAsset(String serverName, String userId, String guid, FeedbackRequestBody requestBody)
serverName - name of the server instances for this requestuserId - String - userId of user making request.guid - String - unique id for the asset.requestBody - feedback request body .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 assetGUID, String commentGUID, CommentRequestBody requestBody)
serverName - name of the server instances for this requestuserId - String - userId of user making request.assetGUID - String - unique id of asset that this chain of comments is linked.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 assetGUID, String commentGUID, CommentRequestBody requestBody)
serverName - name of the server instances for this request.userId - userId of user making request.assetGUID - unique identifier for the asset that the comment is attached to (directly or indirectly).commentGUID - 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 assetGUID, String commentGUID, NullRequestBody requestBody)
serverName - name of the server instances for this requestuserId - String - userId of user making request.assetGUID - String - unique id for the asset objectcommentGUID - String - unique id for the comment objectrequestBody - null request body needed to satisfy the HTTP Post requestpublic GlossaryTermResponse 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 GlossaryTermListResponse 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.startFrom - index of the list to start from (0 for start)pageSize - maximum number of elements to return.public GlossaryTermListResponse findMeanings(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 to start from (0 for start)pageSize - maximum number of elements to return.public GUIDListResponse getAssetsByMeaning(String serverName, String userId, String termGUID, int startFrom, int pageSize)
serverName - name of the server instances for this requestuserId - the name of the calling user.termGUID - unique identifier of term.startFrom - index of the list to 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 createTag(String serverName, String userId, TagRequestBody requestBody)
serverName - name of the server instances for this requestuserId - userId of user making requestrequestBody - contains the name of the tag and (optional) description of the tagpublic 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 TagsResponse 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.startFrom - index of the list to start from (0 for start)pageSize - maximum number of elements to return.public TagsResponse getMyTagsByName(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.startFrom - index of the list to start from (0 for start)pageSize - maximum number of elements to return.public TagsResponse findTags(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 to start from (0 for start)pageSize - maximum number of elements to return.public TagsResponse findMyTags(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 to start from (0 for start)pageSize - maximum number of elements to return.public VoidResponse addTagToAsset(String serverName, String userId, String assetGUID, String tagGUID, FeedbackRequestBody 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 - feedback request body.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.public GUIDListResponse getAssetsByTag(String serverName, String userId, String tagGUID, int startFrom, int pageSize)
serverName - name of the server instances for this requestuserId - the name of the calling user.tagGUID - unique identifier of tag.startFrom - index of the list to start from (0 for start)pageSize - maximum number of elements to return.Copyright © 2018–2020 ODPi. All rights reserved.