public interface AssetConsumerTaggingInterface
| Modifier and Type | Method and Description |
|---|---|
void |
addTagToAsset(String userId,
String assetGUID,
String tagGUID,
boolean isPublic)
Adds a tag (either private of public) to an asset.
|
String |
createPrivateTag(String userId,
String tagName,
String tagDescription)
Creates a new private informal tag and returns the unique identifier for it.
|
String |
createPublicTag(String userId,
String tagName,
String tagDescription)
Creates a new public informal tag and returns the unique identifier for it.
|
void |
deleteTag(String userId,
String tagGUID)
Removes a tag from the repository.
|
List<InformalTag> |
findMyTags(String userId,
String tag,
int startFrom,
int pageSize)
Return the list of the calling user's private tags containing the supplied string in either the name or description.
|
List<InformalTag> |
findTags(String userId,
String tag,
int startFrom,
int pageSize)
Return the list of tags containing the supplied string in either the name or description.
|
List<String> |
getAssetsByTag(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.
|
List<InformalTag> |
getMyTagsByName(String userId,
String tag,
int startFrom,
int pageSize)
Return the list of the calling user's private tags exactly matching the supplied name.
|
InformalTag |
getTag(String userId,
String guid)
Return the tag for the supplied unique identifier (guid).
|
List<InformalTag> |
getTagsByName(String userId,
String tag,
int startFrom,
int pageSize)
Return the list of tags exactly matching the supplied name.
|
void |
removeTagFromAsset(String userId,
String assetGUID,
String tagGUID)
Removes a tag from the asset that was added by this user.
|
void |
updateTagDescription(String userId,
String tagGUID,
String tagDescription)
Updates the description of an existing tag (either private or public).
|
String createPublicTag(String userId, String tagName, String tagDescription) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.tagName - name of the tag.tagDescription - (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.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the asset properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.String createPrivateTag(String userId, String tagName, String tagDescription) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.tagName - name of the tag.tagDescription - (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.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the asset properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.void updateTagDescription(String userId, String tagGUID, String tagDescription) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.tagGUID - unique identifier for the tag.tagDescription - 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.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the asset properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.void deleteTag(String userId, String tagGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.tagGUID - unique id for the tag.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the asset properties in the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InformalTag getTag(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of the user making the request.guid - unique identifier of the tag.InvalidParameterException - the userId is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.List<InformalTag> getTagsByName(String userId, String tag, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.tag - name of tag.startFrom - index of the list to start from (0 for start)pageSize - maximum number of elements to return.InvalidParameterException - the userId is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.List<InformalTag> getMyTagsByName(String userId, String tag, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.tag - name of tag.startFrom - index of the list to start from (0 for start)pageSize - maximum number of elements to return.InvalidParameterException - the userId is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.List<InformalTag> findTags(String userId, String tag, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.tag - 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.InvalidParameterException - the userId is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.List<InformalTag> findMyTags(String userId, String tag, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.tag - 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.InvalidParameterException - the userId is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.void addTagToAsset(String userId, String assetGUID, String tagGUID, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique id for the asset.tagGUID - unique id of the tag.isPublic - flag indicating whether the attachment of the tag is public or notInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the asset properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.void removeTagFromAsset(String userId, String assetGUID, String tagGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique id for the asset.tagGUID - unique id for the tag.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the asset properties in the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.List<String> getAssetsByTag(String userId, String tagGUID, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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.InvalidParameterException - the userId is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2020 ODPi. All rights reserved.