Interface AssetClassificationInterface
public interface AssetClassificationInterface
The AssetClassificationInterface is used by the asset owner to add classifications and detailed definitions
to the asset. Typically, this interface is used after the discovery services have explored the asset's content
and created helpful annotations to guide the asset owner.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssetOrigin(String userId, String assetGUID, String organizationGUID, String businessCapabilityGUID, Map<String, String> otherOriginValues) Add or replace the asset origin classification to an asset.voidaddSecurityTags(String userId, String assetGUID, String assetElementGUID, List<String> securityLabels, Map<String, Object> securityProperties) Add or replace the security tags for an asset or one of its elements.voidaddSemanticAssignment(String userId, String assetGUID, String glossaryTermGUID, String assetElementGUID) Create a simple relationship between a glossary term and an element in an Asset description (typically an attribute in the schema).voidaddTemplateClassification(String userId, String assetGUID, String name, String description, Map<String, String> additionalProperties) Classify an asset as suitable to be used as a template for cataloguing assets of a similar types.voidpublishAsset(String userId, String assetGUID) Update the zones for a specific asset to the zone list specified in the publishZones.voidremoveAssetOrigin(String userId, String assetGUID) Remove the asset origin classification to an asset.voidremoveSecurityTags(String userId, String assetGUID, String assetElementGUID) Remove the security tags classification to an asset or one of its elements.voidremoveSemanticAssignment(String userId, String assetGUID, String glossaryTermGUID, String assetElementGUID) Remove the relationship between a glossary term and an element in an Asset description (typically a field in the schema).voidremoveTemplateClassification(String userId, String assetGUID) Remove the classification that indicates that this asset can be used as a template.voidupdateAssetOwner(String userId, String assetGUID, String ownerId, String ownerTypeName, String ownerPropertyName) Update the owner information for a specific asset.voidupdateAssetOwner(String userId, String assetGUID, String ownerId, org.odpi.openmetadata.frameworks.connectors.properties.beans.OwnerType ownerType) Deprecated.voidupdateAssetZones(String userId, String assetGUID, List<String> assetZones) Update the zones for a specific asset.voidwithdrawAsset(String userId, String assetGUID) Update the zones for a specific asset to the zone list specified in the defaultZones.
-
Method Details
-
addSemanticAssignment
void addSemanticAssignment(String userId, String assetGUID, String glossaryTermGUID, String assetElementGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a simple relationship between a glossary term and an element in an Asset description (typically an attribute in the schema).- Parameters:
userId- calling userassetGUID- unique identifier of assetglossaryTermGUID- unique identifier of the glossary termassetElementGUID- element to link it to - its type must inherit from Referenceable. If null then the assetGUID is used.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
removeSemanticAssignment
void removeSemanticAssignment(String userId, String assetGUID, String glossaryTermGUID, String assetElementGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the relationship between a glossary term and an element in an Asset description (typically a field in the schema).- Parameters:
userId- calling userassetGUID- unique identifier of assetglossaryTermGUID- unique identifier of the glossary termassetElementGUID- element to link it to - its type must inherit from Referenceable. If null then the assetGUID is used.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
addAssetOrigin
void addAssetOrigin(String userId, String assetGUID, String organizationGUID, String businessCapabilityGUID, Map<String, String> otherOriginValues) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionAdd or replace the asset origin classification to an asset.- Parameters:
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 asset- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- entity not known, null userId or guidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
removeAssetOrigin
void removeAssetOrigin(String userId, String assetGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the asset origin classification to an asset.- Parameters:
userId- calling userassetGUID- unique identifier of asset- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- entity not known, null userId or guidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
publishAsset
void publishAsset(String userId, String assetGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the zones for a specific asset to the zone list specified in the publishZones.- Parameters:
userId- calling userassetGUID- unique identifier for the asset to update- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- entity not known, null userId or guidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
withdrawAsset
void withdrawAsset(String userId, String assetGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the zones for a specific asset to the zone list specified in the defaultZones.- Parameters:
userId- calling userassetGUID- unique identifier for the asset to update- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- entity not known, null userId or guidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
updateAssetZones
void updateAssetZones(String userId, String assetGUID, List<String> assetZones) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the zones for a specific asset.- Parameters:
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.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- guid or userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
updateAssetOwner
@Deprecated void updateAssetOwner(String userId, String assetGUID, String ownerId, org.odpi.openmetadata.frameworks.connectors.properties.beans.OwnerType ownerType) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Deprecated.Update the owner information for a specific asset.- Parameters:
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 provided above - or null to clear the field- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
updateAssetOwner
void updateAssetOwner(String userId, String assetGUID, String ownerId, String ownerTypeName, String ownerPropertyName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the owner information for a specific asset.- Parameters:
userId- calling userassetGUID- unique identifier for the asset to updateownerId- unique identifier/property of the owner - or null to clear the fieldownerTypeName- name of the type of Id provided above - or null to clear the fieldownerPropertyName- name of the property that describes the ownerId- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- userId is nullorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
addSecurityTags
void addSecurityTags(String userId, String assetGUID, String assetElementGUID, List<String> securityLabels, Map<String, Object> securityProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionAdd or replace the security tags for an asset or one of its elements.- Parameters:
userId- calling userassetGUID- unique identifier of assetassetElementGUID- element to link it to - its type must inherit from Referenceable. If null then the assetGUID is used.securityLabels- list of security labels defining the security characteristics of the elementsecurityProperties- Descriptive labels describing the security properties of the element- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- asset or element not known, null userId or guidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
removeSecurityTags
void removeSecurityTags(String userId, String assetGUID, String assetElementGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the security tags classification to an asset or one of its elements.- Parameters:
userId- calling userassetGUID- unique identifier of assetassetElementGUID- element where the security tags need to be removed. If null then the assetGUID is used- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- asset or element not known, null userId or guidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
addTemplateClassification
void addTemplateClassification(String userId, String assetGUID, String name, String description, Map<String, String> additionalProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionClassify an asset as suitable to be used as a template for cataloguing assets of a similar types.- Parameters:
userId- calling userassetGUID- unique identifier of the asset to classifyname- name of the templatedescription- description of when, where and how to use the templateadditionalProperties- any additional properties- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- asset or element not known, null userId or guidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-
removeTemplateClassification
void removeTemplateClassification(String userId, String assetGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the classification that indicates that this asset can be used as a template.- Parameters:
userId- calling userassetGUID- unique identifier of the asset to declassify- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- asset or element not known, null userId or guidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-