@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/asset-consumer/users/{userId}")
public class AssetConsumerResource
extends Object
| Constructor and Description |
|---|
AssetConsumerResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
addCommentReply(String serverName,
String userId,
String commentGUID,
org.odpi.openmetadata.accessservices.assetconsumer.rest.CommentRequestBody requestBody)
Adds a reply to a comment.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
addCommentToAsset(String serverName,
String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.CommentRequestBody requestBody)
Creates a comment and attaches it to an asset.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
addLikeToAsset(String serverName,
String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
Creates a "like" object and attaches it to an asset.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
addLogMessageToAsset(String serverName,
String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.LogRecordRequestBody requestBody)
Creates an audit log record for the asset.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
addReviewToAsset(String serverName,
String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.ReviewRequestBody requestBody)
Adds a star rating and optional review text to the asset.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
addTagToAsset(String serverName,
String userId,
String assetGUID,
String tagGUID,
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
Adds a tag (either private of public) to an asset.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
createPrivateTag(String serverName,
String userId,
org.odpi.openmetadata.accessservices.assetconsumer.rest.TagRequestBody requestBody)
Creates a new private informal tag and returns the unique identifier for it.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
createPublicTag(String serverName,
String userId,
org.odpi.openmetadata.accessservices.assetconsumer.rest.TagRequestBody requestBody)
Creates a new public informal tag and returns the unique identifier for it.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
deleteTag(String serverName,
String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
Removes a tag from the asset that was added by this user.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
getAssetForConnectionGUID(String serverName,
String userId,
String connectionGUID)
Returns the unique identifier for the asset connected to the connection identified by the supplied guid.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
getAssetForConnectionName(String serverName,
String userId,
String connectionName)
Returns the unique identifier for the asset connected to the connection identified by the supplied name.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.ConnectionResponse |
getConnectionByGUID(String serverName,
String userId,
String guid)
Returns the connection object corresponding to the supplied connection GUID.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.ConnectionResponse |
getConnectionByName(String serverName,
String userId,
String name)
Returns the connection object corresponding to the supplied connection name.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.MeaningResponse |
getMeaning(String serverName,
String userId,
String guid)
Return the full definition (meaning) of a term using the unique identifier of the glossary term.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.MeaningListResponse |
getMeaningByName(String serverName,
String userId,
String term,
int startFrom,
int pageSize)
Return the full definition (meaning) of the terms matching the supplied name.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.TagResponse |
getTag(String serverName,
String userId,
String guid)
Return the Informal Tag for the supplied unique identifier (guid).
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.TagListResponse |
getTagsByName(String serverName,
String userId,
String tagName,
int startFrom,
int pageSize)
Return the tags matching the supplied name.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
removeCommentFromAsset(String serverName,
String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
Removes a comment added to the asset by this user.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
removeLikeFromAsset(String serverName,
String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
Removes a "Like" added to the asset by this user.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
removeReviewFromAsset(String serverName,
String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
Removes of a star rating that was added to the asset by this user.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
removeTagFromAsset(String serverName,
String userId,
String assetGUID,
String tagGUID,
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
Removes a link between a tag and an asset that was added by this user.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
updateComment(String serverName,
String userId,
String commentGUID,
org.odpi.openmetadata.accessservices.assetconsumer.rest.CommentRequestBody requestBody)
Update an existing comment.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
updateReviewOnAsset(String serverName,
String userId,
String reviewGUID,
org.odpi.openmetadata.accessservices.assetconsumer.rest.ReviewRequestBody requestBody)
Updates the rating and optional review text attached to the asset by this user.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
updateTagDescription(String serverName,
String userId,
String tagGUID,
org.odpi.openmetadata.accessservices.assetconsumer.rest.TagRequestBody requestBody)
Updates the description of an existing tag (either private of public).
|
@RequestMapping(method=POST,
path="/comments/{commentGUID}/replies")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse addCommentReply(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String commentGUID,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.CommentRequestBody requestBody)
serverName - name of the server instances for this request.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.@RequestMapping(method=POST,
path="/assets/{guid}/comments")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse addCommentToAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.CommentRequestBody requestBody)
serverName - name of the server instances for this request.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.@RequestMapping(method=POST,
path="/assets/{guid}/likes")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse addLikeToAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
serverName - name of the server instances for this request.userId - String - userId of user making request.guid - String - unique id for the asset.requestBody - null request body to satisfy HTTP protocol.@RequestMapping(method=POST,
path="/assets/{guid}/log-records")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse addLogMessageToAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.LogRecordRequestBody requestBody)
serverName - name of the server instances for this request.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).@RequestMapping(method=POST,
path="/assets/{guid}/reviews")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse addReviewToAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.ReviewRequestBody requestBody)
serverName - name of the server instances for this request.userId - String - userId of user making request.guid - String - unique id for the asset.requestBody - containing the StarRating and user review of asset.@RequestMapping(method=POST,
path="/assets/{assetGUID}/tags/{tagGUID}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse addTagToAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String tagGUID,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
serverName - name of the server instances for this request.userId - 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.@RequestMapping(method=POST,
path="/tags/private")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse createPrivateTag(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.TagRequestBody requestBody)
serverName - name of the server instances for this request.userId - userId of user making request.requestBody - name of the tag and (optional) description of the tag.@RequestMapping(method=POST,
path="/tags/public")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse createPublicTag(@PathVariable
String serverName,
@PathVariable
String userId,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.TagRequestBody requestBody)
serverName - name of the server instances for this request.userId - userId of user making request.requestBody - name of the tag and (optional) description of the tag.
Setting a description, particularly in a public tag
makes the tag more valuable to other users and can act as an embryonic glossary term.@RequestMapping(method=POST,
path="/tags/{guid}/delete")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse deleteTag(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
serverName - name of the server instances for this requestuserId - String - userId of user making request.guid - String - unique id for the tag.requestBody - null request body.@RequestMapping(method=GET,
path="/assets/by-connection/{connectionGUID}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse getAssetForConnectionGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String connectionGUID)
serverName - name of the server instances for this request.userId - the userId of the requesting user.connectionGUID - uniqueId for the connection.@RequestMapping(method=GET,
path="/assets/by-connection-name/{connectionName}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse getAssetForConnectionName(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String connectionName)
serverName - name of the server instances for this request.userId - the userId of the requesting user.connectionName - uniqueId for the connection.@RequestMapping(method=GET,
path="/connections/{guid}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.ConnectionResponse getConnectionByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid)
serverName - name of the server instances for this request.userId - userId of user making request.guid - the unique id for the connection within the property server.@RequestMapping(method=GET,
path="/connections/by-name/{name}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.ConnectionResponse getConnectionByName(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
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.@RequestMapping(method=GET,
path="/meanings/by-name/{term}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.MeaningListResponse getMeaningByName(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String term,
@RequestParam
int startFrom,
@RequestParam
int pageSize)
serverName - name of the server instances for this request.userId - 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.@RequestMapping(method=GET,
path="/meanings/{guid}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.MeaningResponse getMeaning(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid)
serverName - name of the server instances for this request.userId - userId of the user making the request.guid - unique identifier of the meaning.@RequestMapping(method=GET,
path="/tags/{guid}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.TagResponse getTag(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid)
serverName - name of the server instances for this request.userId - userId of the user making the request.guid - unique identifier of the meaning.@RequestMapping(method=GET,
path="/tags/by-name/{tagName}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.TagListResponse getTagsByName(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String tagName,
@RequestParam
int startFrom,
@RequestParam
int pageSize)
serverName - name of the server instances for this request.userId - 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.@RequestMapping(method=POST,
path="/comments/{guid}/delete")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse removeCommentFromAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.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 - containing type of comment enum and the text of the comment.@RequestMapping(method=POST,
path="/likes/{guid}/delete")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse removeLikeFromAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
serverName - name of the server instances for this request.userId - String - userId of user making request.guid - String - unique id for the like object.requestBody - containing type of comment enum and the text of the comment.@RequestMapping(method=POST,
path="/reviews/{guid}/delete")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse removeReviewFromAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
serverName - name of the server instances for this request.userId - String - userId of user making request.guid - unique id for the review.requestBody - containing type of comment enum and the text of the comment.@RequestMapping(method=POST,
path="/assets/{assetGUID}/tags/{tagGUID}/delete")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse removeTagFromAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String tagGUID,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
serverName - name of the server instances for this request.userId - String - 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.@RequestMapping(method=POST,
path="/comments/{commentGUID}/update")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse updateComment(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String commentGUID,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.CommentRequestBody requestBody)
serverName - name of the server instances for this request.userId - userId of user making request.commentGUID - unique identifier for the comment to change.requestBody - containing type of comment enum and the text of the comment.@RequestMapping(method=POST,
path="/reviews/{reviewGUID}/update")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse updateReviewOnAsset(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String reviewGUID,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.ReviewRequestBody requestBody)
serverName - name of the server instances for this request.userId - userId of user making request.reviewGUID - unique identifier for the review.requestBody - provides the StarRating enumeration for none, one to five stars plus
optional review test.@RequestMapping(method=POST,
path="/tags/{tagGUID}/update")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse updateTagDescription(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String tagGUID,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.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.Copyright © 2018–2019 ODPi. All rights reserved.