Class AssetOwner
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.client.ConnectedAssetClientBase
-
- org.odpi.openmetadata.accessservices.assetowner.client.AssetOwner
-
- All Implemented Interfaces:
AssetClassificationInterface,AssetConnectionManagementInterface,AssetDecommissioningInterface,AssetKnowledgeInterface,AssetOnboardingInterface,AssetReviewInterface,ConnectorFactoryInterface
- Direct Known Subclasses:
AvroFileAssetOwner,CSVFileAssetOwner,FileSystemAssetOwner,ValidValuesAssetOwner
public class AssetOwner extends ConnectedAssetClientBase implements AssetKnowledgeInterface, AssetOnboardingInterface, AssetClassificationInterface, AssetConnectionManagementInterface, AssetReviewInterface, AssetDecommissioningInterface
AssetOwner provides the generic client-side interface for the Asset Owner Open Metadata Access Service (OMAS). There are other clients that provide specialized methods for specific types of Asset. This client is initialized with the URL and name of the server that is running the Asset Owner OMAS. This server is responsible for locating and managing the asset owner's definitions exchanged with this client.
-
-
Field Summary
Fields Modifier and Type Field Description protected AssetOwnerRESTClientrestClient-
Fields inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.client.ConnectedAssetClientBase
auditLog, invalidParameterHandler, nullRequestBody, serverName, serverPlatformURLRoot
-
-
Constructor Summary
Constructors Constructor Description AssetOwner(String serverName, String serverPlatformURLRoot)Create a new client with no authentication embedded in the HTTP request.AssetOwner(String serverName, String serverPlatformURLRoot, String userId, String password)Create a new client that passes userId and password in each HTTP request.AssetOwner(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog)Create a new client that passes userId and password in each HTTP request.AssetOwner(String serverName, String serverPlatformURLRoot, AssetOwnerRESTClient 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).AssetOwner(String serverName, String serverPlatformURLRoot, AuditLog auditLog)Create a new client with no authentication embedded in the HTTP request.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAssetOrigin(String userId, String assetGUID, String organizationGUID, String businessCapabilityGUID, Map<String,String> otherOriginValues)Add the asset origin classification to an asset.StringaddAssetToCatalog(String userId, String typeName, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, Map<String,Object> extendedProperties)Add a simple asset description to the catalog.StringaddAssetToCatalog(String userId, AssetProperties assetProperties)Add a comprehensive asset description to the catalog.StringaddAssetToCatalogUsingTemplate(String userId, String templateGUID, TemplateProperties templateProperties)Create a new metadata element to represent an asset using an existing asset as a template.StringaddCombinedSchemaToAsset(String userId, String assetGUID, SchemaTypeProperties schemaType, List<SchemaAttributeProperties> schemaAttributes)Stores the supplied schema details in the catalog and attaches it to the asset.voidaddConnectionToAsset(String userId, String assetGUID, String assetSummary, Connection connection)Deprecated.StringaddSchemaAttribute(String serverName, String userId, String assetGUID, String parentGUID, SchemaAttributeProperties schemaAttribute)Adds a schema attribute to a complex schema type like a relational table, avro schema or a structured document.voidaddSchemaAttributes(String serverName, String userId, String assetGUID, String parentGUID, List<SchemaAttributeProperties> schemaAttributes)Adds attributes to a complex schema type like a relational table, avro schema or a structured document.StringaddSchemaTypeToAsset(String userId, String assetGUID, SchemaTypeProperties schemaType)Stores the supplied schema type in the catalog and attaches it to the 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 a field 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.voidattachSchemaTypeToAsset(String userId, String assetGUID, String schemaTypeGUID)Links the supplied schema type directly to the asset.voidclearAssetConnection(String userId, String assetGUID, String connectionGUID)Remove a relationship between an asset and its connection.voidclearConnectorType(String userId, String connectionGUID, String connectorTypeGUID)Remove a relationship between a connection and a connector type.voidclearEmbeddedConnection(String userId, String connectionGUID, String embeddedConnectionGUID)Remove a relationship between a virtual connection and an embedded connection.voidclearEndpoint(String userId, String connectionGUID, String endpointGUID)Remove a relationship between a connection and an endpoint.StringcreateConnection(String userId, ConnectionProperties connectionProperties)Create a new metadata element to represent a connection.StringcreateConnectionFromTemplate(String userId, String templateGUID, TemplateProperties templateProperties)Create a new metadata element to represent a connection using an existing metadata element as a template.StringcreateEndpoint(String userId, EndpointProperties endpointProperties)Create a new metadata element to represent an endpoint.StringcreateEndpointFromTemplate(String userId, String templateGUID, TemplateProperties templateProperties)Create a new metadata element to represent an endpoint using an existing metadata element as a template.voiddeleteAsset(String userId, String assetGUID)Deletes an asset and all of its associated elements such as schema, connections (unless they are linked to another asset), discovery reports and associated feedback.voiddeleteAssetSchemaType(String userId, String assetGUID)Detaches and deletes an asset's schema.StringdetachSchemaTypeFromAsset(String userId, String assetGUID)Unlinks the schema from the asset but does not delete it.List<AssetElement>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<ConnectionElement>findConnections(String userId, String searchString, int startFrom, int pageSize)Retrieve the list of connection metadata elements that contain the search string.List<ConnectorTypeElement>findConnectorTypes(String userId, String searchString, int startFrom, int pageSize)Retrieve the list of connectorType metadata elements that contain the search string.List<EndpointElement>findEndpoints(String userId, String searchString, int startFrom, int pageSize)Retrieve the list of endpoint metadata elements that contain the search string.AssetUniversegetAssetProperties(String userId, String assetGUID)Returns a comprehensive collection of properties about the requested asset.List<AssetElement>getAssetsByName(String userId, String name, int startFrom, int pageSize)Return a list of assets with the requested name.AssetElementgetAssetSummary(String userId, String assetGUID)Return the basic attributes of an asset.ConnectionElementgetConnectionByGUID(String userId, String connectionGUID)Retrieve the connection metadata element with the supplied unique identifier.List<ConnectionElement>getConnectionsByName(String userId, String name, int startFrom, int pageSize)Retrieve the list of connection metadata elements with a matching qualified or display name.ConnectorgetConnectorToAsset(String userId, String assetGUID)Return a connector for the asset to enable the calling user to access the content.ConnectorTypeElementgetConnectorTypeByGUID(String userId, String connectorTypeGUID)Retrieve the connectorType metadata element with the supplied unique identifier.List<ConnectorTypeElement>getConnectorTypesByName(String userId, String name, int startFrom, int pageSize)Retrieve the list of connectorType metadata elements with a matching qualified or display name.List<DiscoveryAnalysisReport>getDiscoveryAnalysisReports(String userId, String assetGUID, int startingFrom, int maximumResults)Return the discovery analysis reports about the asset.List<Annotation>getDiscoveryReportAnnotations(String userId, String discoveryReportGUID, AnnotationStatus annotationStatus, int startingFrom, int maximumResults)Return the annotations linked directly to the report.EndpointElementgetEndpointByGUID(String userId, String endpointGUID)Retrieve the endpoint metadata element with the supplied unique identifier.List<EndpointElement>getEndpointsByName(String userId, String name, int startFrom, int pageSize)Retrieve the list of endpoint metadata elements with a matching qualified or display name.List<Annotation>getExtendedAnnotations(String userId, String annotationGUID, AnnotationStatus annotationStatus, int startingFrom, int maximumResults)Return any annotations attached to this annotation.List<String>getTypesOfAnnotation(String userId)Return the annotation subtype names.Map<String,String>getTypesOfAnnotationWithDescriptions(String userId)Return the annotation subtype names mapped to their descriptions.List<String>getTypesOfAsset(String userId)Return the asset subtype names.Map<String,String>getTypesOfAssetWithDescriptions(String userId)Return the asset subtype names.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.voidremoveConnection(String userId, String connectionGUID)Remove the metadata element representing a connection.voidremoveEndpoint(String userId, String endpointGUID)Remove the metadata element representing a endpoint.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.List<ConnectionElement>scanConnections(String userId, int startFrom, int pageSize)Step through the connections visible to this caller.voidsetupAssetConnection(String userId, String assetGUID, String assetSummary, String connectionGUID)Create a relationship between an asset and its connection.voidsetupConnectorType(String userId, String connectionGUID, String connectorTypeGUID)Create a relationship between a connection and a connector type.voidsetupEmbeddedConnection(String userId, String connectionGUID, int position, String displayName, Map<String,Object> arguments, String embeddedConnectionGUID)Create a relationship between a virtual connection and an embedded connection.voidsetupEndpoint(String userId, String connectionGUID, String endpointGUID)Create a relationship between a connection and an endpoint.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, OwnerType ownerType)Deprecated.voidupdateAssetZones(String userId, String assetGUID, List<String> assetZones)Update the zones for a specific asset.voidupdateConnection(String userId, String connectionGUID, boolean isMergeUpdate, ConnectionProperties connectionProperties)Update the metadata element representing a connection.voidupdateEndpoint(String userId, boolean isMergeUpdate, String endpointGUID, EndpointProperties endpointProperties)Update the metadata element representing a endpoint.voidwithdrawAsset(String userId, String assetGUID)Update the zones for a specific asset to the zone list specified in the defaultZones.-
Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.client.ConnectedAssetClientBase
getAssetForConnection, getAssetProperties, getAssetSummary, getConnectionByGUID, getConnectionByName, getConnectionForAsset, getConnectorByConnection, getConnectorByGUID, getConnectorByName, getConnectorForAsset, getConnectorForConnection
-
-
-
-
Field Detail
-
restClient
protected AssetOwnerRESTClient restClient
-
-
Constructor Detail
-
AssetOwner
public AssetOwner(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST serversauditLog- logging destination- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AssetOwner
public AssetOwner(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servers- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AssetOwner
public AssetOwner(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException
Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- 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 destination- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AssetOwner
public AssetOwner(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- 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 requests- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
AssetOwner
public AssetOwner(String serverName, String serverPlatformURLRoot, AssetOwnerRESTClient restClient, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
Create a new client that is going to be used in an OMAG Server (view service or integration service typically).- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- 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 destination- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Detail
-
getAssetProperties
public AssetUniverse getAssetProperties(String userId, String assetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Returns a comprehensive collection of properties about the requested asset.- Specified by:
getAssetPropertiesin interfaceAssetReviewInterface- Parameters:
userId- userId of user making request.assetGUID- unique identifier for asset.- Returns:
- a comprehensive collection of properties about the asset.
- Throws:
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.
-
getTypesOfAsset
public List<String> getTypesOfAsset(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the asset subtype names.- Specified by:
getTypesOfAssetin interfaceAssetKnowledgeInterface- Parameters:
userId- calling user- Returns:
- list of type names that are subtypes of asset
- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getTypesOfAssetWithDescriptions
public Map<String,String> getTypesOfAssetWithDescriptions(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the asset subtype names.- Specified by:
getTypesOfAssetWithDescriptionsin interfaceAssetKnowledgeInterface- Parameters:
userId- calling user- Returns:
- list of type names that are subtypes of asset
- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addAssetToCatalog
public String addAssetToCatalog(String userId, String typeName, String qualifiedName, String displayName, String description, Map<String,String> additionalProperties, Map<String,Object> extendedProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Add a simple asset description to the catalog.- Specified by:
addAssetToCatalogin interfaceAssetOnboardingInterface- Parameters:
userId- calling user (assumed to be the owner)typeName- 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 catalog- Returns:
- unique identifier (guid) of the asset
- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addAssetToCatalog
public String addAssetToCatalog(String userId, AssetProperties assetProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Add a comprehensive asset description to the catalog.- Specified by:
addAssetToCatalogin interfaceAssetOnboardingInterface- Parameters:
userId- calling userassetProperties- properties for the asset- Returns:
- unique identifier (guid) of the asset
- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addAssetToCatalogUsingTemplate
public String addAssetToCatalogUsingTemplate(String userId, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent an asset using an existing asset as a template.- Specified by:
addAssetToCatalogUsingTemplatein interfaceAssetOnboardingInterface- Parameters:
userId- calling usertemplateGUID- unique identifier of the metadata element to copytemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
addCombinedSchemaToAsset
public String addCombinedSchemaToAsset(String userId, String assetGUID, SchemaTypeProperties schemaType, List<SchemaAttributeProperties> schemaAttributes) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Stores the supplied schema details in the catalog and attaches it to the asset. If another schema is currently attached to the asset, it is unlinked and deleted. If more attributes need to be added in addition to the ones supplied then this can be done with addSchemaAttributesToSchemaType().- Specified by:
addCombinedSchemaToAssetin interfaceAssetOnboardingInterface- Parameters:
userId- calling userassetGUID- unique identifier of the asset that the schema is to be attached toschemaType- schema type to create and attach directly to the asset.schemaAttributes- optional schema attributes.- Returns:
- guid of the schema type or
- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addSchemaTypeToAsset
public String addSchemaTypeToAsset(String userId, String assetGUID, SchemaTypeProperties schemaType) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Stores the supplied schema type in the catalog and attaches it to the asset. If another schema is currently attached to the asset, it is unlinked and deleted.- Specified by:
addSchemaTypeToAssetin interfaceAssetOnboardingInterface- Parameters:
userId- calling userassetGUID- unique identifier of the asset that the schema is to be attached toschemaType- schema type to create and attach directly to the asset.- Returns:
- guid of the new schema type or
- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
attachSchemaTypeToAsset
public void attachSchemaTypeToAsset(String userId, String assetGUID, String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Links the supplied schema type directly to the asset. If this schema is either not found, or already attached to an asset, then an error occurs. If another schema is currently attached to the asset, it is unlinked and deleted.- Specified by:
attachSchemaTypeToAssetin interfaceAssetOnboardingInterface- Parameters:
userId- calling userassetGUID- unique identifier of the asset that the schema is to be attached toschemaTypeGUID- unique identifier of the schema type to attach- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
detachSchemaTypeFromAsset
public String detachSchemaTypeFromAsset(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Unlinks the schema from the asset but does not delete it. This means it can be reattached to a different asset.- Specified by:
detachSchemaTypeFromAssetin interfaceAssetOnboardingInterface- Parameters:
userId- calling userassetGUID- unique identifier of the asset that the schema is to be attached to- Returns:
- guid of detached schema type
- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
deleteAssetSchemaType
public void deleteAssetSchemaType(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Detaches and deletes an asset's schema.- Specified by:
deleteAssetSchemaTypein interfaceAssetOnboardingInterface- Parameters:
userId- calling userassetGUID- unique identifier of the asset that the schema is to be attached to- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addSchemaAttributes
public void addSchemaAttributes(String serverName, String userId, String assetGUID, String parentGUID, List<SchemaAttributeProperties> schemaAttributes) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Adds attributes to a complex schema type like a relational table, avro schema or a structured document. This method can be called repeatedly to add many attributes to a schema.- Specified by:
addSchemaAttributesin interfaceAssetOnboardingInterface- Parameters:
serverName- name of the server instance to connect touserId- calling userassetGUID- unique identifier of the asset that the schema is to be attached toparentGUID- unique identifier of the schema element to anchor these attributes to.schemaAttributes- list of schema attribute objects.- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addSchemaAttribute
public String addSchemaAttribute(String serverName, String userId, String assetGUID, String parentGUID, SchemaAttributeProperties schemaAttribute) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Adds a schema attribute to a complex schema type like a relational table, avro schema or a structured document. This method can be called repeatedly to add many attributes to a schema. The GUID returned can be used to add nested attributes.- Specified by:
addSchemaAttributein interfaceAssetOnboardingInterface- Parameters:
serverName- name of the server instance to connect touserId- calling userassetGUID- unique identifier of the asset that the schema is to be attached toparentGUID- unique identifier of the schema element to anchor these attributes to.schemaAttribute- schema attribute object to add.- Returns:
- unique identifier for the new schema attribute or
- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addConnectionToAsset
@Deprecated public void addConnectionToAsset(String userId, String assetGUID, String assetSummary, Connection connection) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Deprecated.Adds a connection to an asset. Assets can have multiple connections attached.- Specified by:
addConnectionToAssetin interfaceAssetOnboardingInterface- Parameters:
userId- calling userassetGUID- unique identifier of the asset to attach the connection toassetSummary- summary of the asset that is stored in the relationship between the asset and the connection.connection- connection object. If the connection is already stored (matching guid) then the existing connection is used.- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addSemanticAssignment
public void addSemanticAssignment(String userId, String assetGUID, String glossaryTermGUID, String assetElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a simple relationship between a glossary term and an element in an Asset description (typically a field in the schema).- Specified by:
addSemanticAssignmentin interfaceAssetClassificationInterface- 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:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
removeSemanticAssignment
public void removeSemanticAssignment(String userId, String assetGUID, String glossaryTermGUID, String assetElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the relationship between a glossary term and an element in an Asset description (typically a field in the schema).- Specified by:
removeSemanticAssignmentin interfaceAssetClassificationInterface- 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:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addAssetOrigin
public void addAssetOrigin(String userId, String assetGUID, String organizationGUID, String businessCapabilityGUID, Map<String,String> otherOriginValues) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Add the asset origin classification to an asset.- Specified by:
addAssetOriginin interfaceAssetClassificationInterface- 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:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
removeAssetOrigin
public void removeAssetOrigin(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the asset origin classification to an asset.- Specified by:
removeAssetOriginin interfaceAssetClassificationInterface- Parameters:
userId- calling userassetGUID- unique identifier of asset- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
publishAsset
public void publishAsset(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the zones for a specific asset to the zone list specified in the publishZones.- Specified by:
publishAssetin interfaceAssetClassificationInterface- Parameters:
userId- calling userassetGUID- unique identifier for the asset to update- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
withdrawAsset
public void withdrawAsset(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the zones for a specific asset to the zone list specified in the defaultZones.- Specified by:
withdrawAssetin interfaceAssetClassificationInterface- Parameters:
userId- calling userassetGUID- unique identifier for the asset to update- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
updateAssetZones
public void updateAssetZones(String userId, String assetGUID, List<String> assetZones) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the zones for a specific asset.- Specified by:
updateAssetZonesin interfaceAssetClassificationInterface- 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:
InvalidParameterException- guid or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
updateAssetOwner
@Deprecated public void updateAssetOwner(String userId, String assetGUID, String ownerId, OwnerType ownerType) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Deprecated.Update the owner information for a specific asset.- Specified by:
updateAssetOwnerin interfaceAssetClassificationInterface- 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 identifier provided above - or null to clear the field- Throws:
InvalidParameterException- userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
updateAssetOwner
public void updateAssetOwner(String userId, String assetGUID, String ownerId, String ownerTypeName, String ownerPropertyName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the owner information for a specific asset.- Specified by:
updateAssetOwnerin interfaceAssetClassificationInterface- 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 identifier provided above - or null to clear the fieldownerPropertyName- name of the property that describes the ownerId- Throws:
InvalidParameterException- userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addSecurityTags
public void addSecurityTags(String userId, String assetGUID, String assetElementGUID, List<String> securityLabels, Map<String,Object> securityProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Add or replace the security tags for an asset or one of its elements.- Specified by:
addSecurityTagsin interfaceAssetClassificationInterface- 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 origin of the asset- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
removeSecurityTags
public void removeSecurityTags(String userId, String assetGUID, String assetElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the security tags classification to an asset or one of its elements.- Specified by:
removeSecurityTagsin interfaceAssetClassificationInterface- 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:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addTemplateClassification
public void addTemplateClassification(String userId, String assetGUID, String name, String description, Map<String,String> additionalProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify an asset as suitable to be used as a template for cataloguing assets of a similar types.- Specified by:
addTemplateClassificationin interfaceAssetClassificationInterface- 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:
InvalidParameterException- asset or element not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
removeTemplateClassification
public void removeTemplateClassification(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the classification that indicates that this asset can be used as a template.- Specified by:
removeTemplateClassificationin interfaceAssetClassificationInterface- Parameters:
userId- calling userassetGUID- unique identifier of the asset to declassify- Throws:
InvalidParameterException- asset or element not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
createConnection
public String createConnection(String userId, ConnectionProperties connectionProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a connection. Classifications can be added later to define the type of connection.- Specified by:
createConnectionin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userconnectionProperties- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createConnectionFromTemplate
public String createConnectionFromTemplate(String userId, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a connection using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new connection.- Specified by:
createConnectionFromTemplatein interfaceAssetConnectionManagementInterface- Parameters:
userId- calling usertemplateGUID- unique identifier of the metadata element to copytemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateConnection
public void updateConnection(String userId, String connectionGUID, boolean isMergeUpdate, ConnectionProperties connectionProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing a connection.- Specified by:
updateConnectionin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userconnectionGUID- unique identifier of the metadata element to updateisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?connectionProperties- new properties for this element- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupConnectorType
public void setupConnectorType(String userId, String connectionGUID, String connectorTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a relationship between a connection and a connector type.- Specified by:
setupConnectorTypein interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userconnectionGUID- unique identifier of the connection in the external asset managerconnectorTypeGUID- unique identifier of the connector type in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearConnectorType
public void clearConnectorType(String userId, String connectionGUID, String connectorTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a relationship between a connection and a connector type.- Specified by:
clearConnectorTypein interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userconnectionGUID- unique identifier of the connection in the external asset managerconnectorTypeGUID- unique identifier of the connector type in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupEndpoint
public void setupEndpoint(String userId, String connectionGUID, String endpointGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a relationship between a connection and an endpoint.- Specified by:
setupEndpointin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userconnectionGUID- unique identifier of the connection in the external asset managerendpointGUID- unique identifier of the endpoint in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearEndpoint
public void clearEndpoint(String userId, String connectionGUID, String endpointGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a relationship between a connection and an endpoint.- Specified by:
clearEndpointin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userconnectionGUID- unique identifier of the connection in the external asset managerendpointGUID- unique identifier of the endpoint in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupEmbeddedConnection
public void setupEmbeddedConnection(String userId, String connectionGUID, int position, String displayName, Map<String,Object> arguments, String embeddedConnectionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a relationship between a virtual connection and an embedded connection.- Specified by:
setupEmbeddedConnectionin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userconnectionGUID- unique identifier of the virtual connection in the external asset managerposition- which order should this connection be processedarguments- What additional properties should be passed to the embedded connector via the configuration propertiesdisplayName- what does this connector signify?embeddedConnectionGUID- unique identifier of the embedded connection in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearEmbeddedConnection
public void clearEmbeddedConnection(String userId, String connectionGUID, String embeddedConnectionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a relationship between a virtual connection and an embedded connection.- Specified by:
clearEmbeddedConnectionin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userconnectionGUID- unique identifier of the virtual connection in the external asset managerembeddedConnectionGUID- unique identifier of the embedded connection in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupAssetConnection
public void setupAssetConnection(String userId, String assetGUID, String assetSummary, String connectionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a relationship between an asset and its connection.- Specified by:
setupAssetConnectionin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userassetGUID- unique identifier of the assetassetSummary- summary of the asset that is stored in the relationship between the asset and the connection.connectionGUID- unique identifier of the connection- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearAssetConnection
public void clearAssetConnection(String userId, String assetGUID, String connectionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a relationship between an asset and its connection.- Specified by:
clearAssetConnectionin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userassetGUID- unique identifier of the assetconnectionGUID- unique identifier of the connection- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removeConnection
public void removeConnection(String userId, String connectionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a connection.- Specified by:
removeConnectionin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userconnectionGUID- unique identifier of the metadata element to remove- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
findConnections
public List<ConnectionElement> findConnections(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of connection metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findConnectionsin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
scanConnections
public List<ConnectionElement> scanConnections(String userId, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Step through the connections visible to this caller.- Specified by:
scanConnectionsin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getConnectionsByName
public List<ConnectionElement> getConnectionsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of connection metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getConnectionsByNamein interfaceAssetConnectionManagementInterface- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getConnectionByGUID
public ConnectionElement getConnectionByGUID(String userId, String connectionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the connection metadata element with the supplied unique identifier.- Specified by:
getConnectionByGUIDin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userconnectionGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createEndpoint
public String createEndpoint(String userId, EndpointProperties endpointProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent an endpoint. Classifications can be added later to define the type of endpoint.- Specified by:
createEndpointin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userendpointProperties- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createEndpointFromTemplate
public String createEndpointFromTemplate(String userId, String templateGUID, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent an endpoint using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new endpoint.- Specified by:
createEndpointFromTemplatein interfaceAssetConnectionManagementInterface- Parameters:
userId- calling usertemplateGUID- unique identifier of the metadata element to copytemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateEndpoint
public void updateEndpoint(String userId, boolean isMergeUpdate, String endpointGUID, EndpointProperties endpointProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing a endpoint.- Specified by:
updateEndpointin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?endpointGUID- unique identifier of the metadata element to updateendpointProperties- new properties for this element- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removeEndpoint
public void removeEndpoint(String userId, String endpointGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a endpoint.- Specified by:
removeEndpointin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userendpointGUID- unique identifier of the metadata element to remove- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
findEndpoints
public List<EndpointElement> findEndpoints(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of endpoint metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findEndpointsin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getEndpointsByName
public List<EndpointElement> getEndpointsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of endpoint metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getEndpointsByNamein interfaceAssetConnectionManagementInterface- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getEndpointByGUID
public EndpointElement getEndpointByGUID(String userId, String endpointGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the endpoint metadata element with the supplied unique identifier.- Specified by:
getEndpointByGUIDin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userendpointGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
findConnectorTypes
public List<ConnectorTypeElement> findConnectorTypes(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of connectorType metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findConnectorTypesin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getConnectorTypesByName
public List<ConnectorTypeElement> getConnectorTypesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of connectorType metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getConnectorTypesByNamein interfaceAssetConnectionManagementInterface- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getConnectorTypeByGUID
public ConnectorTypeElement getConnectorTypeByGUID(String userId, String connectorTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the connectorType metadata element with the supplied unique identifier.- Specified by:
getConnectorTypeByGUIDin interfaceAssetConnectionManagementInterface- Parameters:
userId- calling userconnectorTypeGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getAssetsByName
public List<AssetElement> getAssetsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of assets with the requested name.- Specified by:
getAssetsByNamein interfaceAssetReviewInterface- Parameters:
userId- calling username- name to search forstartFrom- starting element (used in paging through large result sets)pageSize- maximum number of results to return- Returns:
- list of unique identifiers of assets with matching name.
- Throws:
InvalidParameterException- the name is invalidPropertyServerException- there is a problem access in the property serverUserNotAuthorizedException- the user does not have access to the properties
-
findAssets
public List<AssetElement> findAssets(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of assets with the requested search string in their name, qualified name or description.- Specified by:
findAssetsin interfaceAssetReviewInterface- Parameters:
userId- calling usersearchString- string to search for in textstartFrom- starting element (used in paging through large result sets)pageSize- maximum number of results to return- Returns:
- list of assets that match the search string.
- Throws:
InvalidParameterException- the searchString is invalidPropertyServerException- there is a problem access in the property serverUserNotAuthorizedException- the user does not have access to the properties
-
getAssetSummary
public AssetElement getAssetSummary(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the basic attributes of an asset.- Specified by:
getAssetSummaryin interfaceAssetReviewInterface- Parameters:
userId- calling userassetGUID- unique identifier of the asset- Returns:
- basic asset properties
- Throws:
InvalidParameterException- one of the parameters is null or invalid.UserNotAuthorizedException- user not authorized to issue this request.PropertyServerException- there was a problem that occurred within the property server.
-
getConnectorToAsset
public Connector getConnectorToAsset(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return a connector for the asset to enable the calling user to access the content.- Specified by:
getConnectorToAssetin interfaceAssetReviewInterface- Parameters:
userId- calling userassetGUID- unique identifier of the asset- Returns:
- connector object
- Throws:
InvalidParameterException- one of the parameters is null or invalid.UserNotAuthorizedException- user not authorized to issue this request.PropertyServerException- there was a problem that occurred within the property server.
-
getDiscoveryAnalysisReports
public List<DiscoveryAnalysisReport> getDiscoveryAnalysisReports(String userId, String assetGUID, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the discovery analysis reports about the asset.- Specified by:
getDiscoveryAnalysisReportsin interfaceAssetReviewInterface- Parameters:
userId- calling userassetGUID- unique identifier of the assetstartingFrom- position in the list (used when there are so many reports that paging is neededmaximumResults- maximum number of elements to return on this call- Returns:
- list of discovery analysis reports
- Throws:
InvalidParameterException- one of the parameters is null or invalid.UserNotAuthorizedException- user not authorized to issue this request.PropertyServerException- there was a problem that occurred within the property server.
-
getTypesOfAnnotation
public List<String> getTypesOfAnnotation(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the annotation subtype names.- Specified by:
getTypesOfAnnotationin interfaceAssetReviewInterface- Parameters:
userId- calling user- Returns:
- list of type names that are subtypes of annotation
- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getTypesOfAnnotationWithDescriptions
public Map<String,String> getTypesOfAnnotationWithDescriptions(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the annotation subtype names mapped to their descriptions.- Specified by:
getTypesOfAnnotationWithDescriptionsin interfaceAssetReviewInterface- Parameters:
userId- calling user- Returns:
- map of type names that are subtypes of annotation to their descriptions
- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getDiscoveryReportAnnotations
public List<Annotation> getDiscoveryReportAnnotations(String userId, String discoveryReportGUID, AnnotationStatus annotationStatus, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the annotations linked directly to the report.- Specified by:
getDiscoveryReportAnnotationsin interfaceAssetReviewInterface- Parameters:
userId- identifier of calling userdiscoveryReportGUID- identifier of the discovery request.annotationStatus- status of the desired annotations - null means all statuses.startingFrom- initial position in the stored list.maximumResults- maximum number of definitions to return on this call.- Returns:
- list of annotations
- Throws:
InvalidParameterException- one of the parameters is null or invalid.UserNotAuthorizedException- user not authorized to issue this request.PropertyServerException- there was a problem that occurred within the property server.
-
getExtendedAnnotations
public List<Annotation> getExtendedAnnotations(String userId, String annotationGUID, AnnotationStatus annotationStatus, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return any annotations attached to this annotation.- Specified by:
getExtendedAnnotationsin interfaceAssetReviewInterface- Parameters:
userId- identifier of calling userannotationGUID- anchor annotationannotationStatus- status of the desired annotations - null means all statuses.startingFrom- starting position in the listmaximumResults- maximum number of annotations that can be returned.- Returns:
- list of Annotation objects
- Throws:
InvalidParameterException- one of the parameters is null or invalid.UserNotAuthorizedException- user not authorized to issue this request.PropertyServerException- there was a problem that occurred within the property server.
-
deleteAsset
public void deleteAsset(String userId, String assetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Deletes an asset and all of its associated elements such as schema, connections (unless they are linked to another asset), discovery reports and associated feedback. Given the depth of the delete request performed by this call, it should be used with care.- Specified by:
deleteAssetin interfaceAssetDecommissioningInterface- Parameters:
userId- calling userassetGUID- unique identifier of the asset to remove- Throws:
InvalidParameterException- full path or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
-