@RestController
@RequestMapping(value="/open-metadata/access-services/asset-consumer/users/{userId}")
public class AssetConsumerOMASResource
extends Object
| Constructor and Description |
|---|
AssetConsumerOMASResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
addCommentReply(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 userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.CommentRequestBody requestBody)
Adds a comment to the asset.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
addLikeToAsset(String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
Adds a "Like" to the asset.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
addLogMessageToAsset(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 |
addPrivateTagToAsset(String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.TagRequestBody requestBody)
Adds a new private tag to the asset's properties.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
addRatingToAsset(String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.RatingRequestBody requestBody)
Adds a rating to the asset.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
addTagToAsset(String userId,
String guid,
org.odpi.openmetadata.accessservices.assetconsumer.rest.TagRequestBody requestBody)
Adds a new public tag to the asset's properties.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
addToMyAssets(String userId,
String assetGUID,
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody nullRequestBody)
Add an asset to the identified user's list of favorite assets.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse |
getAssetForConnection(String userId,
String connectionGUID)
Returns the unique identifier for the asset connected to the connection.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.ConnectionResponse |
getConnectionByGUID(String userId,
String guid)
Returns the connection object corresponding to the supplied connection GUID.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.ConnectionResponse |
getConnectionByName(String userId,
String name)
Returns the connection object corresponding to the supplied connection name.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.AssetListResponse |
getMyAssets(String userId,
int startFrom,
int pageSize)
Return a list of assets that the specified user has added to their favorites list.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.MyProfileResponse |
getMyProfile(String userId)
Return the profile for this user.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
removeComment(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 |
removeFromMyAssets(String userId,
String assetGUID,
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody nullRequestBody)
Remove an asset from identified user's list of favorite assets.
|
org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse |
removeLike(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 |
removePrivateTag(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.VoidResponse |
removeRating(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 |
removeTag(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.VoidResponse |
updateMyProfile(String userId,
org.odpi.openmetadata.accessservices.assetconsumer.rest.MyProfileRequestBody requestBody)
Create or update the profile for the requesting user.
|
@RequestMapping(method=GET,
path="/connections/by-name/{name}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.ConnectionResponse getConnectionByName(@PathVariable
String userId,
@PathVariable
String name)
userId - userId of user making request.name - this may be the qualifiedName or displayName of the connection.@RequestMapping(method=GET,
path="/connections/{guid}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.ConnectionResponse getConnectionByGUID(@PathVariable
String userId,
@PathVariable
String guid)
userId - userId of user making request.guid - the unique id for the connection within the property server.@RequestMapping(method=GET,
path="/assets/by-connection/{connectionGUID}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse getAssetForConnection(@PathVariable
String userId,
@PathVariable
String connectionGUID)
userId - the userId of the requesting user.connectionGUID - uniqueId for the connection.@RequestMapping(method=GET,
path="/my-profile")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.MyProfileResponse getMyProfile(@PathVariable
String userId)
userId - userId of the user making the request.@RequestMapping(method=POST,
path="/my-profile")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse updateMyProfile(String userId,
org.odpi.openmetadata.accessservices.assetconsumer.rest.MyProfileRequestBody requestBody)
userId - the name of the calling user.requestBody - properties for the new profile.@RequestMapping(method=GET,
path="/my-assets")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.AssetListResponse getMyAssets(@PathVariable
String userId,
@RequestParam
int startFrom,
@RequestParam
int pageSize)
userId - userId of user making request.startFrom - index of the list ot start from (0 for start)pageSize - maximum number of elements to return.@RequestMapping(method=POST,
path="/my-assets/{assetGUID}")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse addToMyAssets(@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody nullRequestBody)
userId - userId of user making request.assetGUID - unique identifier of the asset.nullRequestBody - null request body@RequestMapping(method=POST,
path="/my-assets/{assetGUID}/delete")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse removeFromMyAssets(@PathVariable
String userId,
@PathVariable
String assetGUID,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody nullRequestBody)
userId - userId of user making request.assetGUID - unique identifier of the asset.nullRequestBody - null request body@RequestMapping(method=POST,
path="/assets/{guid}/log-records")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse addLogMessageToAsset(@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.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).@RequestMapping(method=POST,
path="/assets/{guid}/tags")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse addTagToAsset(@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.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.@RequestMapping(method=POST,
path="/assets/{guid}/tags/private")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse addPrivateTagToAsset(@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.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.@RequestMapping(method=POST,
path="/assets/{guid}/ratings")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse addRatingToAsset(@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.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.@RequestMapping(method=POST,
path="/assets/{guid}/likes/")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse addLikeToAsset(@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
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}/comments/")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse addCommentToAsset(@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.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.@RequestMapping(method=POST,
path="/comments/{commentGUID}/reply")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.GUIDResponse addCommentReply(@PathVariable
String userId,
@PathVariable
String commentGUID,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.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.@RequestMapping(method=POST,
path="/tags/{guid}/delete")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse removeTag(@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.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.@RequestMapping(method=POST,
path="/tags/private/{guid}/delete")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse removePrivateTag(@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.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.@RequestMapping(method=POST,
path="/ratings/{guid}/delete")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse removeRating(@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the rating 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 removeLike(@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
userId - String - userId of user making request.guid - String - unique id for the like objectrequestBody - containing type of comment enum and the text of the comment.@RequestMapping(method=POST,
path="/comments/{guid}/delete")
public org.odpi.openmetadata.accessservices.assetconsumer.rest.VoidResponse removeComment(@PathVariable
String userId,
@PathVariable
String guid,
@RequestBody
org.odpi.openmetadata.accessservices.assetconsumer.rest.NullRequestBody requestBody)
userId - 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.Copyright © 2018 ODPi. All rights reserved.