public class AssetConsumer extends ConnectedAssetClientBase implements AssetConsumerAssetInterface, AssetConsumerConnectorFactoryInterface, AssetConsumerFeedbackInterface, AssetConsumerGlossaryInterface, AssetConsumerLoggingInterface, AssetConsumerTaggingInterface
auditLog, invalidParameterHandler, nullRequestBody, serverName, serverPlatformRootURL| Constructor and Description |
|---|
AssetConsumer(String serverName,
String serverPlatformRootURL)
Create a new client with no authentication embedded in the HTTP request.
|
AssetConsumer(String serverName,
String serverPlatformRootURL,
AssetConsumerRESTClient restClient,
int maxPageSize,
AuditLog auditLog)
Create a new client that is going to be used in an OMAG Server (view service or integration service typically).
|
AssetConsumer(String serverName,
String serverPlatformRootURL,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
AssetConsumer(String serverName,
String serverPlatformRootURL,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
AssetConsumer(String serverName,
String serverPlatformRootURL,
String userId,
String password,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
String |
addCommentReply(String userId,
String assetGUID,
String commentGUID,
CommentType commentType,
String commentText,
boolean isPublic)
Adds a comment to another comment.
|
String |
addCommentToAsset(String userId,
String assetGUID,
CommentType commentType,
String commentText,
boolean isPublic)
Adds a comment to the asset.
|
void |
addLikeToAsset(String userId,
String assetGUID,
boolean isPublic)
Adds a "LikeProperties" to the asset.
|
void |
addLogMessageToAsset(String userId,
String assetGUID,
String connectorInstanceId,
String connectionName,
String connectorType,
String contextId,
String message)
Creates an Audit log record about the asset.
|
void |
addRatingToAsset(String userId,
String assetGUID,
StarRating starRating,
String review,
boolean isPublic)
Adds a star rating and optional review text to the asset.
|
void |
addTagToAsset(String userId,
String assetGUID,
String tagGUID,
boolean isPublic)
Adds a tag (either private of public) to an asset.
|
void |
addTagToElement(String userId,
String elementGUID,
String tagGUID,
boolean isPublic)
Adds a tag (either private of public) to an element attached to an asset - such as schema element, glossary term, ...
|
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<String> |
findAssets(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.
|
List<MeaningElement> |
findMeanings(String userId,
String term,
int startFrom,
int pageSize)
Return the full definition (meaning) of the terms matching the supplied name.
|
List<InformalTagElement> |
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<InformalTagElement> |
findTags(String userId,
String tag,
int startFrom,
int pageSize)
Return the list of tags containing the supplied string in either the name or description.
|
String |
getAssetForConnection(String userId,
String connectionGUID)
Returns the unique identifier for the asset connected to the requested connection.
|
String |
getAssetForConnectionName(String userId,
String connectionName)
Returns the asset corresponding to the supplied connection name.
|
AssetUniverse |
getAssetProperties(String userId,
String assetGUID)
Returns a comprehensive collection of properties about the requested asset.
|
List<String> |
getAssetsByMeaning(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.
|
List<String> |
getAssetsByName(String userId,
String name,
int startFrom,
int pageSize)
Return a list of assets with the requested name.
|
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<String> |
getAssetsByToken(String userId,
String assetToken,
int startFrom,
int pageSize)
Returns a list of assets that match the token.
|
Connector |
getConnectorByConnection(String userId,
Connection connection)
Returns the connector corresponding to the supplied connection.
|
Connector |
getConnectorByGUID(String userId,
String connectionGUID)
Returns the connector corresponding to the supplied connection GUID.
|
Connector |
getConnectorByName(String userId,
String connectionName)
Returns the connector corresponding to the supplied connection name.
|
Connector |
getConnectorForAsset(String userId,
String assetGUID)
Returns the connector corresponding to the supplied asset GUID.
|
MeaningElement |
getMeaning(String userId,
String guid)
Return the full definition (meaning) of a term using the unique identifier of the glossary term
that contains the definition.
|
List<MeaningElement> |
getMeaningByName(String userId,
String term,
int startFrom,
int pageSize)
Return the full definition (meaning) of the terms exactly matching the supplied name.
|
List<InformalTagElement> |
getMyTagsByName(String userId,
String tag,
int startFrom,
int pageSize)
Return the list of the calling user's private tags exactly matching the supplied name.
|
InformalTagElement |
getTag(String userId,
String guid)
Return the tag for the supplied unique identifier (guid).
|
List<InformalTagElement> |
getTagsByName(String userId,
String tag,
int startFrom,
int pageSize)
Return the list of tags exactly matching the supplied name.
|
void |
removeComment(String userId,
String assetGUID,
String commentGUID)
Removes a comment added to the asset by this user.
|
void |
removeLikeFromAsset(String userId,
String assetGUID)
Removes a "LikeProperties" added to the asset by this user.
|
void |
removeRatingFromAsset(String userId,
String assetGUID)
Removes of a review that was added to the asset by this user.
|
void |
removeTagFromAsset(String userId,
String assetGUID,
String tagGUID)
Removes a tag from the asset that was added by this user.
|
void |
removeTagFromElement(String userId,
String elementGUID,
String tagGUID)
Removes a tag from an element attached to an asset - such as schema element, glossary term, ...
|
void |
updateComment(String userId,
String assetGUID,
String commentGUID,
CommentType commentType,
String commentText,
boolean isPublic)
Update an existing comment.
|
void |
updateTagDescription(String userId,
String tagGUID,
String tagDescription)
Updates the description of an existing tag (either private or public).
|
getAssetForConnection, getAssetProperties, getAssetSummary, getConnectionByGUID, getConnectionByName, getConnectionForAsset, getConnectorForConnectionpublic AssetConsumer(String serverName, String serverPlatformRootURL, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversauditLog - logging destinationInvalidParameterException - null URL or server namepublic AssetConsumer(String serverName, String serverPlatformRootURL) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversInvalidParameterException - null URL or server namepublic AssetConsumer(String serverName, String serverPlatformRootURL, String userId, String password, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsauditLog - logging destinationInvalidParameterException - null URL or server namepublic AssetConsumer(String serverName, String serverPlatformRootURL, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - null URL or server namepublic AssetConsumer(String serverName, String serverPlatformRootURL, AssetConsumerRESTClient restClient, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversrestClient - client that issues the REST API callsmaxPageSize - maximum number of results supported by this serverauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public String getAssetForConnection(String userId, String connectionGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getAssetForConnection in interface AssetConsumerAssetInterfaceuserId - the userId of the requesting user.connectionGUID - unique identifier for the connection.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public String getAssetForConnectionName(String userId, String connectionName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getAssetForConnectionName in interface AssetConsumerAssetInterfaceuserId - userId of user making request.connectionName - this may be the qualifiedName or displayName of the connection.InvalidParameterException - one of the parameters 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.public AssetUniverse getAssetProperties(String userId, String assetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getAssetProperties in interface AssetConsumerAssetInterfaceuserId - userId of user making request.assetGUID - unique identifier for asset.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving the asset properties from the property servers).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<String> findAssets(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
findAssets in interface AssetConsumerAssetInterfaceuserId - calling usersearchString - string to search for in textstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnInvalidParameterException - the searchString is invalidPropertyServerException - there is a problem access in the property serverUserNotAuthorizedException - the user does not have access to the propertiespublic List<String> getAssetsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getAssetsByName in interface AssetConsumerAssetInterfaceuserId - calling username - name to search forstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnInvalidParameterException - the name is invalidPropertyServerException - there is a problem access in the property serverUserNotAuthorizedException - the user does not have access to the propertiespublic List<String> getAssetsByToken(String userId, String assetToken, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getAssetsByToken in interface AssetConsumerAssetInterfaceuserId - userId of user making request.assetToken - token used to find the Asset - may be a name or GUIDstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving the asset properties from the property servers).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public Connector getConnectorByName(String userId, String connectionName) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, PropertyServerException, UserNotAuthorizedException
getConnectorByName in interface AssetConsumerConnectorFactoryInterfaceuserId - userId of user making request.connectionName - this may be the qualifiedName or displayName of the connection.InvalidParameterException - one of the parameters is null or invalid.ConnectionCheckedException - there are errors in the configuration of the connection which is preventing
the creation of a connector.ConnectorCheckedException - there are errors in the initialization of the connector.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public Connector getConnectorForAsset(String userId, String assetGUID) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, PropertyServerException, UserNotAuthorizedException
getConnectorForAsset in interface AssetConsumerConnectorFactoryInterfaceuserId - userId of user making request.assetGUID - the unique id for the asset within the metadata repository.InvalidParameterException - one of the parameters is null or invalid.ConnectionCheckedException - there are errors in the configuration of the connection which is preventing
the creation of a connector.ConnectorCheckedException - there are errors in the initialization of the connector.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public Connector getConnectorByGUID(String userId, String connectionGUID) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException, PropertyServerException, UserNotAuthorizedException
getConnectorByGUID in interface AssetConsumerConnectorFactoryInterfaceuserId - userId of user making request.connectionGUID - the unique id for the connection within the metadata repository.InvalidParameterException - one of the parameters is null or invalid.ConnectionCheckedException - there are errors in the configuration of the connection which is preventing
the creation of a connector.ConnectorCheckedException - there are errors in the initialization of the connector.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public Connector getConnectorByConnection(String userId, Connection connection) throws InvalidParameterException, ConnectionCheckedException, ConnectorCheckedException
getConnectorByConnection in interface AssetConsumerConnectorFactoryInterfaceuserId - userId of user making request.connection - the connection object that contains the properties needed to create the connection.InvalidParameterException - one of the parameters is null or invalid.ConnectionCheckedException - there are errors in the configuration of the connection which is preventing
the creation of a connector.ConnectorCheckedException - there are errors in the initialization of the connector.public void addRatingToAsset(String userId, String assetGUID, StarRating starRating, String review, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
addRatingToAsset in interface AssetConsumerFeedbackInterfaceuserId - userId of user making request.assetGUID - unique identifier for the asset.starRating - StarRating enumeration for not recommended, one to five stars.review - user review of asset. This can be null.isPublic - indicates whether the feedback should be shared or only be visible to the originating userInvalidParameterException - 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.public void removeRatingFromAsset(String userId, String assetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
removeRatingFromAsset in interface AssetConsumerFeedbackInterfaceuserId - userId of user making request.assetGUID - unique identifier for the attached asset.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.public void addLikeToAsset(String userId, String assetGUID, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
addLikeToAsset in interface AssetConsumerFeedbackInterfaceuserId - userId of user making requestassetGUID - unique identifier for the assetisPublic - indicates whether the feedback should be shared or only be visible to the originating userInvalidParameterException - 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.public void removeLikeFromAsset(String userId, String assetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
removeLikeFromAsset in interface AssetConsumerFeedbackInterfaceuserId - userId of user making request.assetGUID - unique identifier for the like object.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.public String addCommentToAsset(String userId, String assetGUID, CommentType commentType, String commentText, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
addCommentToAsset in interface AssetConsumerFeedbackInterfaceuserId - userId of user making request.assetGUID - unique identifier for the asset.commentType - type of comment enum.commentText - the text of the comment.isPublic - indicates whether the feedback should be shared or only be visible to the originating userInvalidParameterException - 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.public String addCommentReply(String userId, String assetGUID, String commentGUID, CommentType commentType, String commentText, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
addCommentReply in interface AssetConsumerFeedbackInterfaceuserId - userId of user making request.assetGUID - String - unique id of asset that this chain of comments is linked.commentGUID - unique identifier for an existing comment. Used to add a reply to a comment.commentType - type of comment enum.commentText - the text of the comment.isPublic - indicates whether the feedback should be shared or only be visible to the originating userInvalidParameterException - 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.public void updateComment(String userId, String assetGUID, String commentGUID, CommentType commentType, String commentText, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
updateComment in interface AssetConsumerFeedbackInterfaceuserId - 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.commentType - type of comment enum.commentText - the text of the comment.isPublic - indicates whether the feedback should be shared or only be visible to the originating userInvalidParameterException - 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.public void removeComment(String userId, String assetGUID, String commentGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
removeComment in interface AssetConsumerFeedbackInterfaceuserId - userId of user making request.assetGUID - unique identifier for the asset object.commentGUID - unique identifier for the comment object.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the asset properties in the property server.UserNotAuthorizedException - the user does not have permission to perform this request.public MeaningElement getMeaning(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getMeaning in interface AssetConsumerGlossaryInterfaceuserId - userId of the user making the request.guid - unique identifier of the glossary term.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.public List<MeaningElement> getMeaningByName(String userId, String term, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getMeaningByName in interface AssetConsumerGlossaryInterfaceuserId - 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.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.public List<MeaningElement> findMeanings(String userId, String term, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
findMeanings in interface AssetConsumerGlossaryInterfaceuserId - 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.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.public List<String> getAssetsByMeaning(String userId, String termGUID, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getAssetsByMeaning in interface AssetConsumerGlossaryInterfaceuserId - 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.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.public void addLogMessageToAsset(String userId, String assetGUID, String connectorInstanceId, String connectionName, String connectorType, String contextId, String message) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
addLogMessageToAsset in interface AssetConsumerLoggingInterfaceuserId - userId of user making request.assetGUID - unique id for the asset.connectorInstanceId - (optional) id of connector in use (if any).connectionName - (optional) name of the connection (extracted from the connector).connectorType - (optional) type of connector in use (if any).contextId - (optional) function name, or processId of the activity that the caller is performing.message - log record content.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.public String createPublicTag(String userId, String tagName, String tagDescription) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
createPublicTag in interface AssetConsumerTaggingInterfaceuserId - 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.public String createPrivateTag(String userId, String tagName, String tagDescription) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
createPrivateTag in interface AssetConsumerTaggingInterfaceuserId - 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.public void updateTagDescription(String userId, String tagGUID, String tagDescription) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
updateTagDescription in interface AssetConsumerTaggingInterfaceuserId - 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.public void deleteTag(String userId, String tagGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
deleteTag in interface AssetConsumerTaggingInterfaceuserId - 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.public InformalTagElement getTag(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getTag in interface AssetConsumerTaggingInterfaceuserId - 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.public List<InformalTagElement> getTagsByName(String userId, String tag, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getTagsByName in interface AssetConsumerTaggingInterfaceuserId - 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.public List<InformalTagElement> getMyTagsByName(String userId, String tag, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getMyTagsByName in interface AssetConsumerTaggingInterfaceuserId - 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.public List<InformalTagElement> findTags(String userId, String tag, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
findTags in interface AssetConsumerTaggingInterfaceuserId - 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.public List<InformalTagElement> findMyTags(String userId, String tag, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
findMyTags in interface AssetConsumerTaggingInterfaceuserId - 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.public void addTagToAsset(String userId, String assetGUID, String tagGUID, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
addTagToAsset in interface AssetConsumerTaggingInterfaceuserId - 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.public void addTagToElement(String userId, String elementGUID, String tagGUID, boolean isPublic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
addTagToElement in interface AssetConsumerTaggingInterfaceuserId - userId of user making request.elementGUID - unique id for the element.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.public void removeTagFromAsset(String userId, String assetGUID, String tagGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
removeTagFromAsset in interface AssetConsumerTaggingInterfaceuserId - 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.public void removeTagFromElement(String userId, String elementGUID, String tagGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
removeTagFromElement in interface AssetConsumerTaggingInterfaceuserId - userId of user making request.elementGUID - unique id for the element.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.public List<String> getAssetsByTag(String userId, String tagGUID, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getAssetsByTag in interface AssetConsumerTaggingInterfaceuserId - 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.