public class AssetHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
defaultZones |
protected List<String> |
supportedZones |
| Constructor and Description |
|---|
AssetHandler(String serviceName,
String serverName,
String localServerUserId,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
CertificationHandler certificationHandler,
CommentHandler commentHandler,
ConnectionHandler connectionHandler,
EndpointHandler endpointHandler,
ExternalIdentifierHandler externalIdentifierHandler,
ExternalReferenceHandler externalReferenceHandler,
InformalTagHandler informalTagHandler,
LicenseHandler licenseHandler,
LikeHandler likeHandler,
LocationHandler locationHandler,
NoteLogHandler noteLogHandler,
RatingHandler ratingHandler,
RelatedMediaHandler relatedMediaHandler,
SchemaTypeHandler schemaTypeHandler,
ValidValuesHandler validValuesHandler,
List<String> supportedZones,
List<String> defaultZones)
Construct the asset handler with information needed to work with Asset objects.
|
| Modifier and Type | Method and Description |
|---|---|
String |
addAsset(String userId,
Asset asset,
Connection connection,
String methodName)
Create a new Asset object and return its unique identifier (guid).
|
String |
addAsset(String userId,
Asset asset,
SchemaType schemaType,
List<SchemaAttribute> schemaAttributes,
Connection connection,
String methodName)
Add a simple asset description to the metadata repository.
|
String |
addAsset(String userId,
String requestedTypeName,
String qualifiedName,
String displayName,
String description,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties,
String methodName)
Add a simple asset description to the metadata repository.
|
void |
addAssetOrigin(String userId,
String assetGUID,
String organizationGUID,
String businessCapabilityGUID,
Map<String,String> otherOriginValues,
String methodName)
Add the asset origin classification to an asset.
|
String |
addCommentReply(String userId,
String assetGUID,
String attachmentGUID,
CommentType commentType,
String commentText,
boolean isPublic,
String methodName)
Adds a comment to another comment.
|
String |
addCommentToAsset(String userId,
String assetGUID,
CommentType commentType,
String commentText,
boolean isPublic,
String methodName)
Adds a comment to the asset.
|
void |
addLikeToAsset(String userId,
String assetGUID,
boolean isPublic,
String methodName)
Adds a "Like" to the asset.
|
void |
addRatingToAsset(String userId,
String assetGUID,
StarRating starRating,
String review,
boolean isPublic,
String methodName)
Adds a star rating and optional review text to the asset.
|
void |
addSecurityTags(String userId,
String assetGUID,
List<String> securityLabels,
Map<String,Object> securityProperties,
String methodName)
Add or replace the security tags for an asset or one of its elements.
|
void |
addSecurityTags(String userId,
String assetGUID,
String assetElementGUID,
List<String> securityLabels,
Map<String,Object> securityProperties,
String methodName)
Add or replace the security tags for an asset or one of its elements.
|
void |
addTagToAsset(String userId,
String assetGUID,
String tagGUID,
boolean isPublic,
String methodName)
Adds a tag (either private of public) to an asset.
|
List<String> |
assetGUIDsScan(String userId,
String subTypeGUID,
String subTypeName,
int startFrom,
int pageSize,
String methodName)
Scan through the repository looking for assets by type.
|
List<Asset> |
assetScan(String userId,
String subTypeGUID,
String subTypeName,
int startFrom,
int pageSize,
String methodName)
Scan through the repository looking for assets by type.
|
List<Asset> |
assetZoneScan(String userId,
String zoneName,
String subTypeGUID,
String subTypeName,
int startFrom,
int pageSize,
String methodName)
Scan through the repository looking for assets by type and/or zone.
|
void |
classifyAssetAsReferenceData(String userId,
String assetGUID,
List<String> supportedZones,
String methodName)
Add the ReferenceData classification to an asset.
|
Asset |
createEmptyAsset(String requestedTypeName,
String methodName)
Create an empty asset bean with its header filled out with the correct type information.
|
Asset |
createEmptyExternalAsset(String assetTypeName,
ElementOrigin elementOrigin,
String externalSourceGUID,
String externalSourceName,
String methodName)
Create an empty asset bean with its header filled out with the correct type information
and origin information.
|
void |
declassifyAssetAsReferenceData(String userId,
String assetGUID,
List<String> supportedZones,
String methodName)
Remove the ReferenceData classification form an Asset.
|
List<String> |
findAssetGUIDs(String userId,
String searchString,
int startFrom,
int pageSize,
String methodName)
Return a list of assets with the requested search string in their name, qualified name
or description.
|
List<Asset> |
findAssets(String userId,
String searchString,
int startFrom,
int pageSize,
String methodName)
Return a list of assets with the requested search string in their name, qualified name
or description.
|
Asset |
getAssetBean(String userId,
String assetGUID,
String methodName)
Retrieve the requested asset object as long as it is visible to the user.
|
List<Comment> |
getAssetComments(String userId,
List<String> supportedZones,
String assetGUID,
String anchorGUID,
int startingFrom,
int pageSize,
String methodName)
Return the comments attached to an anchor entity.
|
String |
getAssetForConnection(String userId,
String connectionGUID)
Returns the unique identifier for the asset connected to the requested connection.
|
String |
getAssetForConnectionName(String userId,
String connectionName,
String methodName)
Returns the asset corresponding to the supplied connection name.
|
List<String> |
getAssetGUIDsByEndpoint(String userId,
String networkAddress,
int startFrom,
int pageSize,
String methodName)
Return the list of assets that have the same endpoint address.
|
List<String> |
getAssetGUIDsByName(String userId,
String name,
int startFrom,
int pageSize,
String methodName)
Return a list of assets with the requested name.
|
List<String> |
getAssetGUIDsByQualifiedName(String userId,
String name,
int startFrom,
int pageSize,
String methodName)
Return a list of assets with the requested name.
|
List<Asset> |
getAssetsByEndpoint(String userId,
String networkAddress,
int startFrom,
int pageSize,
String methodName)
Return the list of assets that have the same endpoint address.
|
List<String> |
getAssetsByMeaning(String userId,
String termGUID,
int startFrom,
int pageSize,
String methodName)
Return the list of unique identifiers for assets that are linked to a specific (meaning) either directly or via
fields in the schema.
|
List<Asset> |
getAssetsByName(String userId,
String name,
int startFrom,
int pageSize,
String methodName)
Return a list of assets with the requested name.
|
List<Asset> |
getAssetsByQualifiedName(String userId,
String name,
int startFrom,
int pageSize,
String methodName)
Return a list of assets with the requested name.
|
List<String> |
getAssetsByTag(String userId,
String tagGUID,
int startFrom,
int pageSize,
String methodName)
Return the list of unique identifiers for assets that are linked to a specific tag either directly, or via one
of its schema elements.
|
int |
getCertificationCount(String userId,
String anchorGUID,
String methodName)
Return the count of attached certifications.
|
int |
getCommentCount(String userId,
String anchorGUID,
String methodName)
Return the count of attached comments.
|
int |
getConnectionCount(String userId,
String anchorGUID,
String methodName)
Return the count of connections for the asset.
|
Connection |
getConnectionForAsset(String userId,
String assetGUID)
Retrieve the connection object attached to the requested asset object.
|
List<Connection> |
getConnectionsForAsset(String userId,
String assetGUID)
Retrieve the list of connection objects attached to the requested asset object.
|
int |
getExternalIdentifierCount(String userId,
String anchorGUID,
String methodName)
Return the count of external identifiers for this asset.
|
int |
getExternalReferencesCount(String userId,
String anchorGUID,
String methodName)
Return the count of attached external references.
|
int |
getInformalTagCount(String userId,
String anchorGUID,
String methodName)
Return the count of attached informal tags.
|
int |
getKnownLocationsCount(String userId,
String anchorGUID,
String methodName)
Return the count of known locations.
|
int |
getLicenseCount(String userId,
String anchorGUID,
String methodName)
Return the count of license for this asset.
|
int |
getLikeCount(String userId,
String anchorGUID,
String methodName)
Return the number of likes for the asset.
|
int |
getNoteLogsCount(String userId,
String anchorGUID,
String methodName)
Return the count of attached note logs.
|
int |
getRatingsCount(String userId,
String anchorGUID,
String methodName)
Return the count of attached ratings.
|
int |
getRelatedAssetCount(String userId,
String anchorGUID,
String methodName)
Return the count of related assets.
|
List<RelatedAsset> |
getRelatedAssets(String userId,
List<String> supportedZones,
String anchorGUID,
int startFrom,
int pageSize,
String serviceName,
String methodName)
Return all the assets attached to an anchor asset.
|
List<RelatedAsset> |
getRelatedAssets(String userId,
List<String> supportedZones,
String anchorGUID,
String relationshipTypeGUID,
String relationshipTypeName,
int startFrom,
int pageSize,
String serviceName,
String methodName)
Return the assets attached to an anchor asset by the specified relationship type.
|
int |
getRelatedMediaReferenceCount(String userId,
String anchorGUID,
String methodName)
Return the count of related media references.
|
SchemaType |
getSchemaType(String userId,
String anchorGUID,
String methodName)
Is there an attached schema for this asset?
|
Map<String,String> |
getTypesOfAssetDescriptions()
Return the list of asset subtype names mapped to their descriptions.
|
List<String> |
getTypesOfAssetList()
Return the list of asset subtype names.
|
Asset |
getValidatedVisibleAsset(String userId,
List<String> supportedZones,
Relationship assetConnectionRelationship,
String serviceName,
String methodName)
Retrieve the requested asset object.
|
Asset |
getValidatedVisibleAsset(String userId,
List<String> supportedZones,
String assetGUID,
String serviceName,
String methodName)
Retrieve the requested asset object as long as it is visible to the user - the
UserNotAuthorizedException exception is thrown if it is not visible.
|
Asset |
getValidatedVisibleAsset(String userId,
List<String> supportedZones,
String assetGUID,
String connectionGUID,
String serviceName,
String methodName)
Retrieve the requested asset object.
|
List<ValidValueImplementationDefinition> |
getValidValuesImplementationDefinitions(String userId,
String assetGUID,
List<String> supportedZones,
int startFrom,
int pageSize,
String methodName)
Page through the list of valid values used to maintain the contents of a asset.
|
void |
reclassifyAsset(String userId,
Asset originalAsset,
Asset updatedAsset,
InstanceProperties zoneMembershipProperties,
InstanceProperties ownerProperties,
InstanceProperties originProperties,
String methodName)
Reclassifies an asset based on the new properties.
|
void |
reclassifyAsset(String userId,
Asset originalAsset,
Asset updatedAsset,
InstanceProperties zoneMembershipProperties,
InstanceProperties ownerProperties,
String methodName)
Deprecated.
|
void |
removeAsset(String userId,
String assetGUID,
String methodName)
Remove the requested Asset.
|
void |
removeAssetComment(String userId,
String assetGUID,
String commentGUID,
String methodName)
Removes a comment added to the asset by this user.
|
void |
removeAssetOrigin(String userId,
String assetGUID,
String methodName)
Remove the asset origin classification to an asset.
|
void |
removeLikeFromAsset(String userId,
String assetGUID,
String methodName)
Removes a "Like" added to the asset by this user.
|
void |
removeRatingFromAsset(String userId,
String assetGUID,
String methodName)
Removes of a review that was added to the asset by this user.
|
void |
removeSecurityTags(String userId,
String assetGUID,
String methodName)
Remove the security tags classification to an asset or one of its elements.
|
void |
removeSecurityTags(String userId,
String assetGUID,
String assetElementGUID,
String methodName)
Remove the security tags classification to an asset or one of its elements.
|
void |
removeSemanticAssignment(String userId,
String assetGUID,
String glossaryTermGUID,
String methodName)
Remove the relationship between a glossary term and an element in an Asset description (typically
a field in the schema).
|
void |
removeSemanticAssignment(String userId,
String assetGUID,
String glossaryTermGUID,
String assetElementGUID,
String methodName)
Remove the relationship between a glossary term and an element in an Asset description (typically
a field in the schema).
|
void |
removeTagFromAsset(String userId,
String assetGUID,
String tagGUID,
String methodName)
Removes a tag from the asset that was added by this user.
|
void |
saveAssociatedConnection(String userId,
String assetGUID,
String assetSummary,
Connection connection,
String methodName)
Save any associated Connection.
|
void |
saveAssociatedSchemaType(String userId,
String assetGUID,
SchemaType schemaType,
List<SchemaAttribute> schemaAttributes,
String methodName)
Save any associated schema type.
|
void |
saveSemanticAssignment(String userId,
String assetGUID,
String glossaryTermGUID,
String methodName)
Create a simple relationship between a glossary term and an element in an Asset description (typically
an attribute in the schema).
|
void |
saveSemanticAssignment(String userId,
String assetGUID,
String glossaryTermGUID,
String assetElementGUID,
String methodName)
Create a simple relationship between a glossary term and an element in an Asset description (typically
an attribute in the schema).
|
void |
setSecurityVerifier(OpenMetadataServerSecurityVerifier securityVerifier)
Set up a new security verifier (the handler runs with a default verifier until this
method is called).
|
String |
updateAsset(String userId,
Asset originalAsset,
AssetAuditHeader originalAssetAuditHeader,
Asset updatedAsset,
SchemaType schemaType,
List<SchemaAttribute> schemaAttributes,
Connection connection,
String methodName)
Update a stored asset.
|
void |
updateAssetComment(String userId,
String assetGUID,
String commentGUID,
CommentType commentType,
String commentText,
boolean isPublic,
String methodName)
Update an existing comment.
|
void |
updateAssetOwner(String userId,
String assetGUID,
String ownerId,
OwnerType ownerType,
String methodName)
Update the owner information for a specific asset.
|
void |
updateAssetZones(String userId,
String assetGUID,
List<String> assetZones,
String methodName)
Update the zones for a specific asset.
|
protected Asset |
validatedVisibleAsset(String userId,
List<String> supportedZones,
String guidParameterName,
Asset retrievedAsset,
String serviceName,
String methodName)
Determine if an asset is visible.
|
protected Referenceable |
validatedVisibleReferenceable(String userId,
List<String> supportedZones,
String guidParameterName,
EntityDetail retrievedEntity,
String serviceName,
String methodName)
Determine if the retrieved entity is for an asset and if so, is it visible?.
|
void |
validateUserForAssetAttachmentUpdate(String userId,
String assetGUID,
String methodName)
Validate that the user is able to make changes to the a.
|
public AssetHandler(String serviceName, String serverName, String localServerUserId, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, CertificationHandler certificationHandler, CommentHandler commentHandler, ConnectionHandler connectionHandler, EndpointHandler endpointHandler, ExternalIdentifierHandler externalIdentifierHandler, ExternalReferenceHandler externalReferenceHandler, InformalTagHandler informalTagHandler, LicenseHandler licenseHandler, LikeHandler likeHandler, LocationHandler locationHandler, NoteLogHandler noteLogHandler, RatingHandler ratingHandler, RelatedMediaHandler relatedMediaHandler, SchemaTypeHandler schemaTypeHandler, ValidValuesHandler validValuesHandler, List<String> supportedZones, List<String> defaultZones)
serviceName - name of this serviceserverName - name of the local serverlocalServerUserId - name of the userId for system initiated updates to assets.invalidParameterHandler - handler for managing parameter errorsrepositoryHandler - handler for interfacing with the repository servicesrepositoryHelper - helper utilities for managing repository services objectscertificationHandler - handler for certification objectscommentHandler - handler for comment objectsconnectionHandler - handler for connection objectsendpointHandler - handler for endpoint objectsexternalIdentifierHandler - handler for external identifier objectsexternalReferenceHandler - handler for external reference objectsinformalTagHandler - handler for informal tag objectslicenseHandler - handler for license objectslikeHandler - handler for like objectslocationHandler - handler for location objectsnoteLogHandler - handler for note log objectsratingHandler - handler for rating objectsrelatedMediaHandler - handler for related media objectsschemaTypeHandler - handler for schemaType objectsvalidValuesHandler - handler for valid values and reference data objectssupportedZones - list of zones that DiscoveryEngine is allowed to serve Assets from.defaultZones - list of zones that DiscoveryEngine should set in all new Assets.public void setSecurityVerifier(OpenMetadataServerSecurityVerifier securityVerifier)
securityVerifier - new security verifierpublic List<String> getTypesOfAssetList()
public Map<String,String> getTypesOfAssetDescriptions()
public Asset createEmptyAsset(String requestedTypeName, String methodName) throws InvalidParameterException
requestedTypeName - name of the asset's type (see AssetMapper)methodName - calling methodInvalidParameterException - bad typeNamepublic Asset createEmptyExternalAsset(String assetTypeName, ElementOrigin elementOrigin, String externalSourceGUID, String externalSourceName, String methodName) throws InvalidParameterException
assetTypeName - name of the asset's type (see AssetMapper)elementOrigin - type of originexternalSourceGUID - guid of the software server capability entity that represented the external sourceexternalSourceName - name of the software server capability entity that represented the external sourcemethodName - calling methodInvalidParameterException - bad typeNamepublic void saveAssociatedConnection(String userId, String assetGUID, String assetSummary, Connection connection, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - unique identifier of the assetassetSummary - short description of the assetconnection - connection object or nullmethodName - calling methodInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void saveAssociatedSchemaType(String userId, String assetGUID, SchemaType schemaType, List<SchemaAttribute> schemaAttributes, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - unique identifier of the assetschemaType - schema Type object or nullschemaAttributes - list of nested schema attribute objects or nullmethodName - calling methodInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void validateUserForAssetAttachmentUpdate(String userId, String assetGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - unique identifier of the assetmethodName - calling methodInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void saveSemanticAssignment(String userId, String assetGUID, String glossaryTermGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - unique identifier of the asset that is being describedglossaryTermGUID - unique identifier of the glossary termmethodName - calling methodInvalidParameterException - the guid properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void saveSemanticAssignment(String userId, String assetGUID, String glossaryTermGUID, String assetElementGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - unique identifier of the asset that is being describedglossaryTermGUID - unique identifier of the glossary termassetElementGUID - element to link it to - its type must inherit from Referenceable.methodName - calling methodInvalidParameterException - the guid properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void removeSemanticAssignment(String userId, String assetGUID, String glossaryTermGUID, String assetElementGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of assetglossaryTermGUID - unique identifier of the glossary termassetElementGUID - element to link it to - its type must inherit from Referenceable.methodName - calling methodInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void removeSemanticAssignment(String userId, String assetGUID, String glossaryTermGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of assetglossaryTermGUID - unique identifier of the glossary termmethodName - calling methodInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic String addAsset(String userId, String requestedTypeName, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user (assumed to be the owner)requestedTypeName - specific type of the asset - this must match a defined subtypequalifiedName - unique name for the asset in the catalogdisplayName - display name for the asset in the catalogdescription - description of the asset in the catalogadditionalProperties - user chosen additional propertiesextendedProperties - properties for a subtype of assetmethodName - calling methodInvalidParameterException - full path or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic String addAsset(String userId, Asset asset, Connection connection, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdasset - asset properties to addconnection - object to addmethodName - calling methodInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String addAsset(String userId, Asset asset, SchemaType schemaType, List<SchemaAttribute> schemaAttributes, Connection connection, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdasset - object to addschemaType - optional object to addschemaAttributes - optional object to addconnection - optional object to addmethodName - calling methodInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String updateAsset(String userId, Asset originalAsset, AssetAuditHeader originalAssetAuditHeader, Asset updatedAsset, SchemaType schemaType, List<SchemaAttribute> schemaAttributes, Connection connection, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userIdoriginalAsset - current content of the assetoriginalAssetAuditHeader - details of the asset's audit headerupdatedAsset - new asset valuesschemaType - optional object to addschemaAttributes - optional object to addconnection - new connection valuesmethodName - calling methodInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void classifyAssetAsReferenceData(String userId, String assetGUID, List<String> supportedZones, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.assetGUID - unique identifier of the asset that contains reference data.supportedZones - list of visible zones.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public void declassifyAssetAsReferenceData(String userId, String assetGUID, List<String> supportedZones, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.assetGUID - unique identifier of asset.supportedZones - list of visible zones.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.@Deprecated public void reclassifyAsset(String userId, Asset originalAsset, Asset updatedAsset, InstanceProperties zoneMembershipProperties, InstanceProperties ownerProperties, String methodName) throws UserNotAuthorizedException, PropertyServerException
userId - userIdoriginalAsset - current content of the assetupdatedAsset - new asset valueszoneMembershipProperties - zone membership propertiesownerProperties - owner propertiesmethodName - calling methodUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void reclassifyAsset(String userId, Asset originalAsset, Asset updatedAsset, InstanceProperties zoneMembershipProperties, InstanceProperties ownerProperties, InstanceProperties originProperties, String methodName) throws UserNotAuthorizedException, PropertyServerException
userId - userIdoriginalAsset - current content of the assetupdatedAsset - new asset valueszoneMembershipProperties - zone membership propertiesownerProperties - owner propertiesoriginProperties - origin propertiesmethodName - calling methodUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addAssetOrigin(String userId, String assetGUID, String organizationGUID, String businessCapabilityGUID, Map<String,String> otherOriginValues, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of assetorganizationGUID - Unique identifier (GUID) of the organization where this asset originated from - or nullbusinessCapabilityGUID - Unique identifier (GUID) of the business capability where this asset originated from.otherOriginValues - Descriptive labels describing origin of the assetmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void removeAssetOrigin(String userId, String assetGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of assetmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void updateAssetZones(String userId, String assetGUID, List<String> assetZones, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier for the asset to updateassetZones - list of zones for the asset - these values override the current values - null means belongs
to no zones.methodName - calling methodInvalidParameterException - guid or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void addSecurityTags(String userId, String assetGUID, List<String> securityLabels, Map<String,Object> securityProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of assetsecurityLabels - list of security labels defining the security characteristics of the elementsecurityProperties - Descriptive labels describing origin of the assetmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void removeSecurityTags(String userId, String assetGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of assetmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void addSecurityTags(String userId, String assetGUID, String assetElementGUID, List<String> securityLabels, Map<String,Object> securityProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of assetassetElementGUID - element to link it to - its type must inherit from Referenceable.securityLabels - list of security labels defining the security characteristics of the elementsecurityProperties - Descriptive labels describing origin of the assetmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void removeSecurityTags(String userId, String assetGUID, String assetElementGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier of assetassetElementGUID - element where the security tags need to be removed.methodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void updateAssetOwner(String userId, String assetGUID, String ownerId, OwnerType ownerType, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetGUID - unique identifier for the asset to updateownerId - userId or profileGUID of the owner - or null to clear the fieldownerType - indicator of the type of Id provides above - or null to clear the fieldmethodName - calling methodInvalidParameterException - userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void removeAsset(String userId, String assetGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - object to deletemethodName - calling methodInvalidParameterException - the entity guid is not knownUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverprotected Asset validatedVisibleAsset(String userId, List<String> supportedZones, String guidParameterName, Asset retrievedAsset, String serviceName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usersupportedZones - supported zonesguidParameterName - parameter name for supplied guidretrievedAsset - retrieved assetserviceName - calling servermethodName - calling methodInvalidParameterException - asset is not in the zoneUserNotAuthorizedException - user is not authorized to access the asset.PropertyServerException - problem managing the supported zones.protected Referenceable validatedVisibleReferenceable(String userId, List<String> supportedZones, String guidParameterName, EntityDetail retrievedEntity, String serviceName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usersupportedZones - supported zonesguidParameterName - parameter name for supplied guidretrievedEntity - retrieved assetserviceName - calling servermethodName - calling methodInvalidParameterException - asset is not in the zoneUserNotAuthorizedException - user is not authorized to access the asset.PropertyServerException - problem managing the supported zones.public Asset getAssetBean(String userId, String assetGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - unique identifier of the asset objectmethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Asset getValidatedVisibleAsset(String userId, List<String> supportedZones, String assetGUID, String serviceName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usersupportedZones - supported zonesassetGUID - unique identifier of the asset objectserviceName - calling servicemethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Asset getValidatedVisibleAsset(String userId, List<String> supportedZones, Relationship assetConnectionRelationship, String serviceName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usersupportedZones - override the default supported zones.assetConnectionRelationship - link between the asset and the connection.serviceName - calling servicemethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Asset getValidatedVisibleAsset(String userId, List<String> supportedZones, String assetGUID, String connectionGUID, String serviceName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usersupportedZones - override the default supported zones.assetGUID - unique identifier of the asset object.connectionGUID - unique identifier of the attached connection object.serviceName - calling servicemethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Connection getConnectionForAsset(String userId, String assetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - unique identifier of the asset object.InvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<ValidValueImplementationDefinition> getValidValuesImplementationDefinitions(String userId, String assetGUID, List<String> supportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling user.assetGUID - unique identifier of asset to querysupportedZones - list of zones that the asset must belong to one ofstartFrom - paging starting pointpageSize - maximum number of return values.methodName - calling methodInvalidParameterException - one of the parameters is invalid.UserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - the repository is not available or not working properly.public List<Connection> getConnectionsForAsset(String userId, String assetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - unique identifier of the asset object.InvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String getAssetForConnection(String userId, String connectionGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.connectionName - this may be the qualifiedName or displayName of the connection.methodName - calling methodInvalidParameterException - 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 List<String> assetGUIDsScan(String userId, String subTypeGUID, String subTypeName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usersubTypeGUID - type of asset to scan for (null for all asset types)subTypeName - type of asset to scan for (null for all asset types)startFrom - scan pointerpageSize - maximum number of resultsmethodName - calling methodInvalidParameterException - 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 List<Asset> assetScan(String userId, String subTypeGUID, String subTypeName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usersubTypeGUID - type of asset to scan for (null for all asset types)subTypeName - type of asset to scan for (null for all asset types)startFrom - scan pointerpageSize - maximum number of resultsmethodName - calling methodInvalidParameterException - 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 List<Asset> assetZoneScan(String userId, String zoneName, String subTypeGUID, String subTypeName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userzoneName - name of zone to scansubTypeGUID - type of asset to scan for (null for all asset types)subTypeName - type of asset to scan for (null for all asset types)startFrom - scan pointerpageSize - maximum number of resultsmethodName - calling methodInvalidParameterException - 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 List<String> getAssetGUIDsByQualifiedName(String userId, String name, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling username - name to search forstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnmethodName - calling methodInvalidParameterException - 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 List<Asset> getAssetsByQualifiedName(String userId, String name, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling username - name to search forstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnmethodName - calling methodInvalidParameterException - 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 List<String> getAssetGUIDsByName(String userId, String name, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling username - name to search forstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnmethodName - calling methodInvalidParameterException - 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 List<Asset> getAssetsByName(String userId, String name, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling username - name to search forstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnmethodName - calling methodInvalidParameterException - 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 List<String> getAssetGUIDsByEndpoint(String userId, String networkAddress, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usernetworkAddress - address to query onstartFrom - place to start in querypageSize - number of results to returnmethodName - calling methodInvalidParameterException - the networkAddress is invalidPropertyServerException - there is a problem access in the property serverUserNotAuthorizedException - the user does not have access to the propertiespublic List<Asset> getAssetsByEndpoint(String userId, String networkAddress, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usernetworkAddress - address to query onstartFrom - place to start in querypageSize - number of results to returnmethodName - calling methodInvalidParameterException - the networkAddress is invalidPropertyServerException - there is a problem access in the property serverUserNotAuthorizedException - the user does not have access to the propertiespublic List<String> findAssetGUIDs(String userId, String searchString, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usersearchString - string to search for in textstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnmethodName - calling methodInvalidParameterException - the searchString is invalidPropertyServerException - there is a problem access in the property serverUserNotAuthorizedException - the user does not have access to the propertiespublic List<Asset> findAssets(String userId, String searchString, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usersearchString - string to search for in textstartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnmethodName - calling methodInvalidParameterException - the searchString is invalidPropertyServerException - there is a problem access in the property serverUserNotAuthorizedException - the user does not have access to the propertiespublic int getCertificationCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic int getCommentCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<Comment> getAssetComments(String userId, List<String> supportedZones, String assetGUID, String anchorGUID, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usersupportedZones - list of zones if different from the default set in the handlerassetGUID - identifier for the asset that this comment is chained fromanchorGUID - identifier for the entity that the feedback is attached to - ie this asset or a
comment chained off of this assetstartingFrom - where to start from in the listpageSize - maximum number of results that can be returnedmethodName - calling methodInvalidParameterException - the input properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String addCommentToAsset(String userId, String assetGUID, CommentType commentType, String commentText, boolean isPublic, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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 usermethodName - calling methodInvalidParameterException - 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 updateAssetComment(String userId, String assetGUID, String commentGUID, CommentType commentType, String commentText, boolean isPublic, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the anchor entitycommentGUID - 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 usermethodName - calling methodInvalidParameterException - 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 attachmentGUID, CommentType commentType, String commentText, boolean isPublic, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the referenceable.attachmentGUID - 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 usermethodName - calling methodInvalidParameterException - 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 removeAssetComment(String userId, String assetGUID, String commentGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset.commentGUID - unique identifier for the comment object.methodName - calling methodInvalidParameterException - 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 int getConnectionCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic int getExternalIdentifierCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic int getExternalReferencesCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic int getInformalTagCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addTagToAsset(String userId, String assetGUID, String tagGUID, boolean isPublic, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique id for the anchor.tagGUID - unique id of the tag.isPublic - flag indicating whether the attachment of the tag is public or notmethodName - calling methodInvalidParameterException - 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, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique id for the asset.tagGUID - unique id for the tag.methodName - calling methodInvalidParameterException - 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, String methodName) 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.methodName - calling methodInvalidParameterException - 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, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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.methodName - calling methodInvalidParameterException - 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 int getLicenseCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic int getLikeCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addLikeToAsset(String userId, String assetGUID, boolean isPublic, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset where the like is to be attached.isPublic - indicates whether the feedback should be shared or only be visible to the originating usermethodName - calling methodInvalidParameterException - 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, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset where the like is attached.methodName - calling methodInvalidParameterException - 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 int getKnownLocationsCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic int getNoteLogsCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic int getRatingsCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addRatingToAsset(String userId, String assetGUID, StarRating starRating, String review, boolean isPublic, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - 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 usermethodName - calling methodInvalidParameterException - 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, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.assetGUID - unique identifier for the asset where the rating is attached.methodName - calling methodInvalidParameterException - 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 int getRelatedAssetCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<RelatedAsset> getRelatedAssets(String userId, List<String> supportedZones, String anchorGUID, int startFrom, int pageSize, String serviceName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usersupportedZones - override the default supported zones.anchorGUID - identifier for the asset that the related assets are attached tostartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnserviceName - calling servicemethodName - calling methodInvalidParameterException - the input properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<RelatedAsset> getRelatedAssets(String userId, List<String> supportedZones, String anchorGUID, String relationshipTypeGUID, String relationshipTypeName, int startFrom, int pageSize, String serviceName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling usersupportedZones - override the default supported zones.anchorGUID - identifier for the asset that the related assets are attached torelationshipTypeGUID - unique identifier for relationship typerelationshipTypeName - unique name for relationship typestartFrom - starting element (used in paging through large result sets)pageSize - maximum number of results to returnserviceName - calling servicemethodName - calling methodInvalidParameterException - the input properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic int getRelatedMediaReferenceCount(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic SchemaType getSchemaType(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the endpoint bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2020 ODPi. All rights reserved.