Class AssetHandler<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPITemplateHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.AssetHandler<B>
- Type Parameters:
B
- class that represents the asset
- Direct Known Subclasses:
ITInfrastructureHandler
AssetHandler manages B objects and optionally connections in the property server. It runs server-side in
the OMAG Server Platform and retrieves Assets and Connections through the OMRSRepositoryConnector.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
OpenMetadataAPIGenericHandler.AnchorIdentifiers
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
assetActionDescription, auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, qualifiedNamePropertyNamesList, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
Constructor Summary
ConstructorDescriptionAssetHandler
(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, List<String> supportedTypesForSearch, AuditLog auditLog) Construct the handler with information needed to work with B objects.AssetHandler
(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog) Construct the handler with information needed to work with B objects. -
Method Summary
Modifier and TypeMethodDescriptionaddAssetFromTemplate
(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, String templateGUIDParameterName, String expectedTypeGUID, String expectedTypeName, String qualifiedName, String qualifiedNameParameterName, String name, String versionIdentifier, String description, String deployedImplementationType, String pathName, String networkAddress, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Add a simple asset description to the metadata repository.void
addAssetOrigin
(String userId, String assetGUID, String assetGUIDParameterName, String organizationGUID, String organizationGUIDParameterName, String businessCapabilityGUID, String businessCapabilityGUIDParameterName, Map<String, String> otherOriginValues, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Add the asset origin classification to an asset.void
addGovernanceMeasurementsDataSetClassification
(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String description, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) Add or replace the governance measurements results dataset classification to a dataset.assetScan
(String userId, String subTypeGUID, String subTypeName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Scan through the repository looking for assets by type.assetZoneScan
(String userId, String zoneName, String subTypeName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Scan through the repository looking for assets by type and/or zone.assetZoneScan
(String userId, String zoneName, String subTypeGUID, String subTypeName, List<String> suppliedSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Scan through the repository looking for assets by type and/or zone.void
attachAssetToSoftwareServerCapability
(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String softwareServerCapabilityGUID, String softwareServerCapabilityGUIDParameterName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Link the asset to the associated software capability if supplied.void
attachSchemaTypeToAsset
(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String schemaTypeGUID, String schemaTypeGUIDParameterName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Link the schema type and asset.void
classifyAssetAsReferenceData
(String userId, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Add the ReferenceData classification to an asset.createAssetInRepository
(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String name, String resourceName, String versionIdentifier, String resourceDescription, String deployedImplementationType, Map<String, String> additionalProperties, String typeName, Map<String, Object> extendedProperties, InstanceStatus instanceStatus, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) Add a simple asset description to the metadata repository.createAssetInRepository
(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String name, String versionIdentifier, String resourceDescription, String deployedImplementationType, Map<String, String> additionalProperties, String typeName, Map<String, Object> extendedProperties, InstanceStatus instanceStatus, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) Add a simple asset description to the metadata repository.createAssetWithConnection
(String userId, String externalSourceGUID, String externalSourceName, String assetGUIDParameterName, String assetQualifiedName, String name, String resourceName, String versionIdentifier, String resourceDescription, String deployedImplementationType, Map<String, String> additionalProperties, String assetTypeName, Map<String, Object> extendedProperties, InstanceStatus instanceStatus, boolean anchorEndpointToAsset, Map<String, Object> configurationProperties, String connectorProviderClassName, String networkAddress, String protocol, String encryptionMethod, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Add a simple asset description to the metadata repository.void
declassifyAssetAsReferenceData
(String userId, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Remove the ReferenceData classification from an Asset.detachSchemaTypeFromAsset
(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Remove any associated schema type.findAssetGUIDs
(String userId, String searchString, String searchStringParameter, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested search string in their name, qualified name or description.findAssetGUIDs
(String userId, String typeGUID, String typeName, String searchString, String searchStringParameter, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested search string in their name, qualified name or description.findAssets
(String userId, String searchString, String searchStringParameter, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested search string in their name, qualified name or description.findAssets
(String userId, String typeGUID, String typeName, String searchString, String searchStringParameter, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested search string in their name, qualified name or description.findAssetsByName
(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested name in either the display name or qualified name.findAssetsByName
(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested name in either the display name or qualified name.getAllAssetsWithConnection
(String userId, String assetTypeGUID, String assetTypeName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the list of assets that are stored.getAssetByNameWithConnection
(String userId, String name, String nameParameterName, String assetTypeGUID, String assetTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return an asset along with any associated connection.getAssetForConnection
(String userId, String connectionGUID, String connectionGUIDParameterName, List<String> serviceSupportedZones, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Returns the unique identifier for the asset connected to the requested connection.getAssetForConnectionName
(String userId, String connectionName, String connectionNameParameter, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Returns the asset corresponding to the supplied connection name.getAssetGUIDsByName
(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested name in either the display name or qualified name.getAssetGUIDsByName
(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested name in either the display name or qualified name.getAssetGUIDsByTag
(String userId, String tagGUID, String tagGUIDParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, 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.getAssetsByDeployedImplementationType
(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested name in the deployed implementation type property.getAssetsByDeployedImplementationType
(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested name in the deployed implementation type property.getAssetsByMetadataCollectionId
(String userId, String typeName, String metadataCollectionId, String metadataCollectionIdParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested metadataCollectionId.getAssetsByName
(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested name in either the display name or qualified name.getAssetsByName
(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Return a list of assets with the requested name in either the display name or qualified name.getAssetsFromOrigin
(String userId, String organizationGUID, String businessCapabilityGUID, Map<String, String> otherOriginValues, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Returns the list of assets that are classified with a specific origin.getAssetWithConnection
(String userId, String assetGUID, String assetGUIDParameterName, String assetTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return an asset along with any associated connection.getExternalSourceID
(boolean externalSourceIsHome, String externalSourceID) The externalSource identifier is supplied on the APIs that supply external source identifiers for two purposes.Return the list of asset subtype names mapped to their descriptions.Return the list of asset subtype names.void
publishAsset
(String userId, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update the zones for a specific asset to the list set up in publish zones.void
removeAssetOrigin
(String userId, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Remove the asset origin classification to an asset.void
removeAssociatedSchemaType
(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Remove any associated schema type.void
removeGovernanceMeasurementsDataSetClassification
(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Remove the governance measurements results dataset classification from a dataset.void
removeLinkedDataSets
(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Remove any data sets connected to the asset by the DataContentForDataSet relationship.void
updateAsset
(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String qualifiedName, String name, String resourceName, String versionIdentifier, String resourceDescription, String deployedImplementationType, Map<String, String> additionalProperties, String typeGUID, String typeName, List<String> suppliedSupportedZones, Map<String, Object> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update an asset's properties.void
updateAsset
(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String qualifiedName, String name, String resourceName, String versionIdentifier, String technicalDescription, String deployedImplementationType, Map<String, String> additionalProperties, String typeName, Map<String, Object> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update an asset's properties.void
updateAsset
(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String qualifiedName, String technicalName, String versionIdentifier, String technicalDescription, String deployedImplementationType, Map<String, String> additionalProperties, String typeGUID, String typeName, Map<String, Object> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update an asset's properties.void
updateAssetOwner
(String userId, String assetGUID, String assetGUIDParameterName, String ownerId, int ownerType, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Deprecated.void
updateAssetWithConnection
(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String qualifiedName, String name, String resourceName, String versionIdentifier, String description, String deployedImplementationType, Map<String, String> additionalProperties, String typeGUID, String typeName, Map<String, Object> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, String assetSummary, Connection connection, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Update an asset's properties.void
updateAssetZones
(String userId, String assetGUID, String assetGUIDParameterName, List<String> assetZones, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update the zones for a specific asset.void
withdrawAsset
(String userId, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update the zones for a specific asset to the list set up in publish zones.Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler
addAssignmentScope, addDataFieldValuesClassification, addGovernanceActionClassification, addGovernanceDefinitionScope, addGovernanceExpectationsClassification, addGovernanceMeasurementsClassification, addGovernedBy, addImplementedBy, addMoreInformation, addOwner, addRetentionClassification, addSecurityTags, addStakeholder, addSubjectAreaClassification, addTemplateClassification, clearBusinessSignificant, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getAssignedActors, getAssignmentScope, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getCatalogTemplateList, getCollectionMembers, getCommissionedByStakeholder, getDataFieldValuesClassifiedElement, getDescriptiveElements, getElementsSourceFrom, getEntityByUniqueQualifiedName, getGovernanceActionClassifiedElements, getGovernanceDefinitionScope, getGovernedElements, getMeanings, getMoreInformation, getMoreInformation, getOwnersElements, getReferenceValueAssignees, getResourceList, getRetentionClassifiedElements, getSecurityTagsClassifiedElements, getSemanticAssignments, getSourceElements, getStakeholders, getSubjectAreaMembers, getSubjectAreaMembers, getSupportedByResource, getSupportedByTemplate, getValidValueConsumers, getVendorProperties, linkConsolidatedDuplicate, linkElementsAsPeerDuplicates, removeAssignmentScope, removeCatalogTemplate, removeDataFieldValuesClassification, removeGovernanceActionClassification, removeGovernanceDefinitionScope, removeGovernanceExpectationsClassification, removeGovernanceMeasurementsClassification, removeGovernedBy, removeImplementedBy, removeMoreInformation, removeOwner, removeResourceListMember, removeRetentionClassification, removeSecurityTags, removeSemanticAssignment, removeStakeholder, removeSubjectAreaClassification, removeTemplateClassification, saveCatalogTemplate, saveResourceListMember, saveSemanticAssignment, saveSemanticAssignment, saveSemanticAssignments, setBusinessSignificant, setVendorProperties, unlinkElementsAsPeerDuplicates
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPITemplateHandler
createBeanFromTemplate, createBeanFromTemplate
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorGUIDToBuilder, addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanInRepository, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getAttachmentsForType, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanHistory, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getDomainName, getDomainName, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getSpecification, getSupplementaryProperties, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, uncheckedLinkElementToElement, undoBeanUpdateInRepository, undoBeanUpdateInRepository, undoBeanUpdateInRepository, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
getConverter, getElementStub, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getSupportedZones, getTypeDefByName, setSecurityVerifier
-
Constructor Details
-
AssetHandler
public AssetHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, List<String> supportedTypesForSearch, AuditLog auditLog) Construct the handler with information needed to work with B objects.- Parameters:
converter
- specific converter for this bean classbeanClass
- name of bean class that is represented by the generic class BserviceName
- name of this serviceserverName
- name of the local serverinvalidParameterHandler
- handler for managing parameter errorsrepositoryHandler
- manages calls to the repository servicesrepositoryHelper
- provides utilities for manipulating the repository services objectslocalServerUserId
- userId for this serversecurityVerifier
- open metadata security services verifiersupportedZones
- list of zones that the access service is allowed to serve B instances from.defaultZones
- list of zones that the access service should set in all new B instances.publishZones
- list of zones that the access service sets up in published B instances.supportedTypesForSearch
- affects the list of supported asset types seen by the callerauditLog
- destination for audit log events.
-
AssetHandler
public AssetHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog) Construct the handler with information needed to work with B objects.- Parameters:
converter
- specific converter for this bean classbeanClass
- name of bean class that is represented by the generic class BserviceName
- name of this serviceserverName
- name of the local serverinvalidParameterHandler
- handler for managing parameter errorsrepositoryHandler
- manages calls to the repository servicesrepositoryHelper
- provides utilities for manipulating the repository services objectslocalServerUserId
- userId for this serversecurityVerifier
- open metadata security services verifiersupportedZones
- list of zones that the access service is allowed to serve B instances from.defaultZones
- list of zones that the access service should set in all new B instances.publishZones
- list of zones that the access service sets up in published B instances.auditLog
- destination for audit log events.
-
-
Method Details
-
getTypesOfAssetList
Return the list of asset subtype names.- Returns:
- list of type names that are subtypes of asset
-
getTypesOfAssetDescriptions
Return the list of asset subtype names mapped to their descriptions.- Returns:
- map of type names that are subtypes of asset
-
getExternalSourceID
The externalSource identifier is supplied on the APIs that supply external source identifiers for two purposes. The first is the standard mechanism to control the ownership/provenance of the resulting elements. The second is to enable a relationship between an asset and the software capability to be created. The externalSourceIsHome boolean determines whether the identifier is used to control ownership or not. The relationship is set up if the externalSourceGUID is not null.- Parameters:
externalSourceIsHome
- use the external source GUID as the owner of this elementexternalSourceID
- supplied external source unique identifier/name- Returns:
- externalSource
-
addGovernanceMeasurementsDataSetClassification
public void addGovernanceMeasurementsDataSetClassification(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String description, boolean forLineage, boolean forDuplicateProcessing, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Add or replace the governance measurements results dataset classification to a dataset.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of the software capability that owns this projectexternalSourceName
- unique name of the software capability that owns this projectbeanGUID
- unique identifier of beanbeanGUIDParameterName
- name of parameter supplying the beanGUIDbeanGUIDTypeName
- type of beandescription
- of the data setforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveFrom
- the time that the relationship element must be effective from (null for any time, new Date() for now)effectiveTo
- the time that the relationship must be effective to (null for any time, new Date() for now)effectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Throws:
InvalidParameterException
- entity not known, null userId or guidPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
removeGovernanceMeasurementsDataSetClassification
public void removeGovernanceMeasurementsDataSetClassification(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the governance measurements results dataset classification from a dataset.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of the software capability that owns this projectexternalSourceName
- unique name of the software capability that owns this projectbeanGUID
- unique identifier of entity to updatebeanGUIDParameterName
- name of parameter providing beanGUIDbeanGUIDTypeName
- type of beanforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Throws:
InvalidParameterException
- entity not known, null userId or guidPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
attachSchemaTypeToAsset
public void attachSchemaTypeToAsset(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String schemaTypeGUID, String schemaTypeGUIDParameterName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Link the schema type and asset. This is called from outside the AssetHandler. The assetGUID is checked to ensure the asset exists and updates are allowed. If there is already a schema attached, it is deleted.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external source - null for localassetGUID
- unique identifier of the asset to connect the schema toassetGUIDParameterName
- parameter providing the assetGUIDschemaTypeGUID
- identifier for schema Type objectschemaTypeGUIDParameterName
- parameter providing the schemaTypeGUIDeffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
removeAssociatedSchemaType
public void removeAssociatedSchemaType(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove any associated schema type. This may be called from outside the AssetHandler. The assetGUID is checked to ensure the asset exists and updates are allowed. If there is a schema attached, it is deleted.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external source - null for localassetGUID
- unique identifier of the asset to connect the schema toassetGUIDParameterName
- parameter providing the assetGUIDforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
attachAssetToSoftwareServerCapability
public void attachAssetToSoftwareServerCapability(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String softwareServerCapabilityGUID, String softwareServerCapabilityGUIDParameterName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Link the asset to the associated software capability if supplied. This is called from outside the AssetHandler. The assetGUID and softwareServerCapabilityGUID are checked to ensure they are not null snd if all is well, the relationship is established.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external source - null for localassetGUID
- unique identifier of the asset to connect the schema toassetGUIDParameterName
- parameter providing the assetGUIDsoftwareServerCapabilityGUID
- identifier for schema Type objectsoftwareServerCapabilityGUIDParameterName
- parameter providing the softwareServerCapabilityGUIDeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
detachSchemaTypeFromAsset
public String detachSchemaTypeFromAsset(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove any associated schema type. This may be called from outside the AssetHandler. The assetGUID is checked to ensure the asset exists and updates are allowed. If there is a schema attached, it is deleted.- Parameters:
userId
- calling userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external source - null for localassetGUID
- unique identifier of the asset to connect the schema toassetGUIDParameterName
- parameter providing the assetGUIDforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- guid of previously attached schema type or null if there is no schema
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
addAssetFromTemplate
public String addAssetFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, String templateGUIDParameterName, String expectedTypeGUID, String expectedTypeName, String qualifiedName, String qualifiedNameParameterName, String name, String versionIdentifier, String description, String deployedImplementationType, String pathName, String networkAddress, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Add a simple asset description to the metadata repository. Null values for requested typename, ownership, zone membership and latest change are filled in with default values.- Parameters:
userId
- calling userIdexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcetemplateGUID
- unique identifier of the metadata element to copytemplateGUIDParameterName
- name of parameter providing the templateGUIDexpectedTypeGUID
- unique identifier of type (or super type of asset identified by templateGUID)expectedTypeName
- unique name of type (or super type of asset identified by templateGUID)qualifiedName
- unique name for this asset - must not be nullqualifiedNameParameterName
- parameter name providing qualifiedNamename
- the stored name property for the asset - if null, the value from the template is usedversionIdentifier
- the stored versionIdentifier property for the assetdescription
- the stored description property associated with the database - if null, the value from the template is useddeployedImplementationType
- type of technologypathName
- the physical address of the storage where the data is held (for DataStore assets)networkAddress
- if there is a connection object for this asset - update the endpoint network addressforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- unique identifier of the asset in the repository. If a connection or schema object is provided, it is stored linked to the asset.
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
createAssetInRepository
public String createAssetInRepository(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String name, String versionIdentifier, String resourceDescription, String deployedImplementationType, Map<String, String> additionalProperties, String typeName, Map<String, throws InvalidParameterException, PropertyServerException, UserNotAuthorizedExceptionObject> extendedProperties, InstanceStatus instanceStatus, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) Add a simple asset description to the metadata repository. Null values for requested typename, ownership, zone membership and latest change are filled in with default values.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerqualifiedName
- unique name for this assetname
- the stored name property for the assetversionIdentifier
- the stored versionIdentifier property for the assetresourceDescription
- the stored description property associated with the assetdeployedImplementationType
- type of technologyadditionalProperties
- any arbitrary properties not part of the type systemtypeName
- name of the type that is a subtype of asset - or null to create standard typeextendedProperties
- properties from any subtypeinstanceStatus
- initial status of the Asset in the metadata repositoryeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- unique identifier of the new asset
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
createAssetInRepository
public String createAssetInRepository(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String name, String resourceName, String versionIdentifier, String resourceDescription, String deployedImplementationType, Map<String, String> additionalProperties, String typeName, Map<String, throws InvalidParameterException, PropertyServerException, UserNotAuthorizedExceptionObject> extendedProperties, InstanceStatus instanceStatus, Date effectiveFrom, Date effectiveTo, Date effectiveTime, String methodName) Add a simple asset description to the metadata repository. Null values for requested typename, ownership, zone membership and latest change are filled in with default values.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerqualifiedName
- unique name for this assetname
- the stored name property for the assetresourceName
- the full name from the resourceversionIdentifier
- the stored versionIdentifier property for the assetresourceDescription
- the stored description property associated with the assetdeployedImplementationType
- type of technologyadditionalProperties
- any arbitrary properties not part of the type systemtypeName
- name of the type that is a subtype of asset - or null to create standard typeextendedProperties
- properties from any subtypeinstanceStatus
- initial status of the Asset in the metadata repositoryeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- unique identifier of the new asset
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
createAssetWithConnection
public String createAssetWithConnection(String userId, String externalSourceGUID, String externalSourceName, String assetGUIDParameterName, String assetQualifiedName, String name, String resourceName, String versionIdentifier, String resourceDescription, String deployedImplementationType, Map<String, String> additionalProperties, String assetTypeName, Map<String, throws InvalidParameterException, PropertyServerException, UserNotAuthorizedExceptionObject> extendedProperties, InstanceStatus instanceStatus, boolean anchorEndpointToAsset, Map<String, Object> configurationProperties, String connectorProviderClassName, String networkAddress, String protocol, String encryptionMethod, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Add a simple asset description to the metadata repository. Null values for requested typename, ownership, zone membership and latest change are filled in with default values.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerassetGUIDParameterName
- parameter name of the resulting asset's GUIDassetQualifiedName
- unique name for this assetname
- the stored name property for the assetversionIdentifier
- the stored versionIdentifier property for the assetresourceDescription
- the stored description property associated with the assetdeployedImplementationType
- type of technologyadditionalProperties
- any arbitrary properties not part of the type systemassetTypeName
- name of the type that is a subtype of asset - or null to create standard typeextendedProperties
- properties from any subtypeinstanceStatus
- initial status of the Asset in the metadata repositoryanchorEndpointToAsset
- set to true if the network address is unique for the asset and should not be reused. False if this is an endpoint that is relevant for multiple assets.configurationProperties
- configuration properties for the connectionconnectorProviderClassName
- Java class name for the connector providernetworkAddress
- the network address (typically the URL but this depends on the protocol)protocol
- the name of the protocol to use to connect to the endpointencryptionMethod
- encryption method to use when passing data to this endpointeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective formethodName
- calling method- Returns:
- unique identifier of the new asset
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
updateAsset
public void updateAsset(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String qualifiedName, String name, String resourceName, String versionIdentifier, String technicalDescription, String deployedImplementationType, Map<String, String> additionalProperties, String typeName, Map<String, throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionObject> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update an asset's properties.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerassetGUID
- unique identifier of the metadata element to updateassetGUIDParameterName
- parameter name that supplied the assetGUIDqualifiedName
- unique name for this databasename
- the stored name property for the assetresourceName
- full name of the resourceversionIdentifier
- the stored versionIdentifier property for the assettechnicalDescription
- the stored description property associated with the assetdeployedImplementationType
- type of technologyadditionalProperties
- any arbitrary properties not part of the type systemtypeName
- name of the type that is a subtype of Database - or null to create standard typeextendedProperties
- properties from any subtypeeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)isMergeUpdate
- should the new properties be merged with the existing properties of overlay them?forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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)
-
updateAsset
public void updateAsset(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String qualifiedName, String technicalName, String versionIdentifier, String technicalDescription, String deployedImplementationType, Map<String, String> additionalProperties, String typeGUID, String typeName, Map<String, throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionObject> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update an asset's properties.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerassetGUID
- unique identifier of the metadata element to updateassetGUIDParameterName
- parameter name that supplied the assetGUIDqualifiedName
- unique name for this databasetechnicalName
- the stored name property for the assetversionIdentifier
- the stored versionIdentifier property for the assettechnicalDescription
- the stored description property associated with the assetdeployedImplementationType
- type of technologyadditionalProperties
- any arbitrary properties not part of the type systemtypeGUID
- identifier of the type that is a subtype of Database - or null to create standard typetypeName
- name of the type that is a subtype of Database - or null to create standard typeeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)isMergeUpdate
- indicates whether supplied properties should replaceextendedProperties
- properties from any subtypeforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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)
-
updateAsset
public void updateAsset(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String qualifiedName, String name, String resourceName, String versionIdentifier, String resourceDescription, String deployedImplementationType, Map<String, String> additionalProperties, String typeGUID, String typeName, List<String> suppliedSupportedZones, Map<String, throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionObject> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update an asset's properties.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerassetGUID
- unique identifier of the metadata element to updateassetGUIDParameterName
- parameter name that supplied the assetGUIDqualifiedName
- unique name for this databasename
- the stored name property for the assetresourceName
- full name of the resourceversionIdentifier
- the stored versionIdentifier property for the assetresourceDescription
- the stored description property associated with the assetdeployedImplementationType
- type of technologyadditionalProperties
- any arbitrary properties not part of the type systemtypeGUID
- identifier of the type that is a subtype of Asset - or null to create standard typetypeName
- name of the type that is a subtype of Asset - or null to create standard typesuppliedSupportedZones
- supported zones that are specific to the callerextendedProperties
- properties from any subtypeeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)isMergeUpdate
- should the new properties be merged with the existing properties of overlay them?forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- when should the elements be effected for - null is anytime; new Date() is nowmethodName
- calling method- 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)
-
updateAssetWithConnection
public void updateAssetWithConnection(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetGUIDParameterName, String qualifiedName, String name, String resourceName, String versionIdentifier, String description, String deployedImplementationType, Map<String, String> additionalProperties, String typeGUID, String typeName, Map<String, throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionObject> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, String assetSummary, Connection connection, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Update an asset's properties.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerassetGUID
- unique identifier of the metadata element to updateassetGUIDParameterName
- parameter name that supplied the assetGUIDqualifiedName
- unique name for this assetname
- the short name property for the assetresourceName
- the resource name property for the assetversionIdentifier
- the stored versionIdentifier property for the assetdescription
- the stored description property associated with the assetdeployedImplementationType
- type of technologyadditionalProperties
- any arbitrary properties not part of the type systemtypeGUID
- identifier of the type that is a subtype of Database - or null to create standard typetypeName
- name of the type that is a subtype of Database - or null to create standard typeextendedProperties
- properties from any subtypeeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)isMergeUpdate
- should the supplied properties be merged with existing properties (true) only replacing the properties with matching names, or should the entire properties of the instance be replaced?connection
- connection associated with the assetassetSummary
- description of the asset from the perspective of the connectionforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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)
-
classifyAssetAsReferenceData
public void classifyAssetAsReferenceData(String userId, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Add the ReferenceData classification to an asset. If the asset is already classified in this way, the method is a no-op.- Parameters:
userId
- calling user.assetGUID
- unique identifier of the asset that contains reference data.assetGUIDParameterName
- name of parameter providing assetGUIDforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- 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.
-
declassifyAssetAsReferenceData
public void declassifyAssetAsReferenceData(String userId, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the ReferenceData classification from an Asset. If the asset was not classified in this way, this call is a no-op.- Parameters:
userId
- calling user.assetGUID
- unique identifier of asset.assetGUIDParameterName
- name of parameter providing assetGUIDforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- 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.
-
addAssetOrigin
public void addAssetOrigin(String userId, String assetGUID, String assetGUIDParameterName, String organizationGUID, String organizationGUIDParameterName, String businessCapabilityGUID, String businessCapabilityGUIDParameterName, Map<String, String> otherOriginValues, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionAdd the asset origin classification to an asset. The method needs to build a before an after image of the asset to perform a security check before the update is pushed to the repository.- Parameters:
userId
- calling userassetGUID
- unique identifier of assetassetGUIDParameterName
- parameter name supplying assetGUIDorganizationGUID
- Unique identifier (GUID) of the organization where this asset originated from - or nullorganizationGUIDParameterName
- parameter name supplying organizationGUIDbusinessCapabilityGUID
- Unique identifier (GUID) of the business capability where this asset originated from.businessCapabilityGUIDParameterName
- parameter name supplying businessCapabilityGUIDotherOriginValues
- Descriptive labels describing origin of the asseteffectiveFrom
- the time that the elements must be effective from (null for any time)effectiveTo
- the time that the elements must be effective from (null for any time)isMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- entity not known, null userId or guidPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
removeAssetOrigin
public void removeAssetOrigin(String userId, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the asset origin classification to an asset.- Parameters:
userId
- calling userassetGUID
- unique identifier of assetassetGUIDParameterName
- parameter name supplying assetGUIDforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- entity not known, null userId or guidPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getAssetsFromOrigin
public List<B> getAssetsFromOrigin(String userId, String organizationGUID, String businessCapabilityGUID, Map<String, String> otherOriginValues, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedExceptionReturns the list of assets that are classified with a specific origin.- Parameters:
userId
- userId of user making requestorganizationGUID
- 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 assetstartFrom
- int starting position for fist returned element.pageSize
- int maximum number of elements to return on the call.forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective formethodName
- String calling method- Returns:
- a list of elements or
- Throws:
InvalidParameterException
- - the GUID is not recognized or the paging values are invalid orPropertyServerException
- - there is a problem retrieving the asset properties from the property server orUserNotAuthorizedException
- - the requesting user is not authorized to issue this request.
-
publishAsset
public void publishAsset(String userId, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the zones for a specific asset to the list set up in publish zones.- Parameters:
userId
- calling userassetGUID
- unique identifier for the asset to updateassetGUIDParameterName
- parameter name supplying assetGUIDforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- guid or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
withdrawAsset
public void withdrawAsset(String userId, String assetGUID, String assetGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the zones for a specific asset to the list set up in publish zones.- Parameters:
userId
- calling userassetGUID
- unique identifier for the asset to updateassetGUIDParameterName
- parameter name supplying assetGUIDforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- guid or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
updateAssetZones
public void updateAssetZones(String userId, String assetGUID, String assetGUIDParameterName, List<String> assetZones, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the zones for a specific asset. The method needs to build a before an after image of the asset to perform a security check before the update is pushed to the repository.- Parameters:
userId
- calling userassetGUID
- unique identifier for the asset to updateassetGUIDParameterName
- parameter name supplying assetGUIDassetZones
- list of zones for the asset - these values override the current values - null means belongs to all zones.isMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- guid or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
updateAssetOwner
@Deprecated public void updateAssetOwner(String userId, String assetGUID, String assetGUIDParameterName, String ownerId, int ownerType, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Deprecated.Update the owner information for a specific asset.- Parameters:
userId
- calling userassetGUID
- unique identifier for the asset to updateassetGUIDParameterName
- parameter name supplying assetGUIDownerId
- 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 fieldforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getAssetForConnection
public String getAssetForConnection(String userId, String connectionGUID, String connectionGUIDParameterName, List<String> serviceSupportedZones, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Returns the unique identifier for the asset connected to the requested connection.- Parameters:
userId
- the userId of the requesting userconnectionGUID
- unique identifier for the connectionconnectionGUIDParameterName
- name of parameter supplying connectionGUIDserviceSupportedZones
- list of supported zones for any connected assetforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- unique identifier of asset.
- Throws:
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.
-
removeLinkedDataSets
public void removeLinkedDataSets(String userId, String externalSourceGUID, String externalSourceName, String assetGUID, String assetTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove any data sets connected to the asset by the DataContentForDataSet relationship.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerassetGUID
- unique identifier for assetassetTypeName
- type of assetforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAssetForConnectionName
public String getAssetForConnectionName(String userId, String connectionName, String connectionNameParameter, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Returns the asset corresponding to the supplied connection name.- Parameters:
userId
- userId of user making request.connectionName
- this may be the qualifiedName or displayName of the connection.connectionNameParameter
- name of parameter supplyingforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- unique identifier of asset.
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAssetWithConnection
public B getAssetWithConnection(String userId, String assetGUID, String assetGUIDParameterName, String assetTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return an asset along with any associated connection.- Parameters:
userId
- calling userassetGUID
- unique identifier of the assetassetGUIDParameterName
- name of parameter supplying assetGUIDassetTypeName
- type name of assetforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- an asset bean (with embedded connection details if available)
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAssetByNameWithConnection
public B getAssetByNameWithConnection(String userId, String name, String nameParameterName, String assetTypeGUID, String assetTypeName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return an asset along with any associated connection.- Parameters:
userId
- calling username
- unique identifier of the assetnameParameterName
- name of parameter supplying nameassetTypeGUID
- type identifier of assetassetTypeName
- type name of assetforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- an asset bean (with embedded connection details if available)
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAllAssetsWithConnection
public List<B> getAllAssetsWithConnection(String userId, String assetTypeGUID, String assetTypeName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of assets that are stored.- Parameters:
userId
- identifier of calling userassetTypeGUID
- subtype of asset requiredassetTypeName
- subtype of asset requiredstartFrom
- initial position in the stored listpageSize
- maximum number of definitions to return on this callforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateserviceSupportedZones
- supported zones for this serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of beans.
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- problem retrieving the discovery service definitions.
-
assetScan
public List<B> assetScan(String userId, String subTypeGUID, String subTypeName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Scan through the repository looking for assets by type. The type name may be null which means, all assets will be returned.- Parameters:
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 resultsforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of matching assets
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
assetZoneScan
public List<B> assetZoneScan(String userId, String zoneName, String subTypeName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Scan through the repository looking for assets by type and/or zone. The type name may be null which means, all types of assets will be returned. The zone name may be null which means all supportedZones for the service are returned.- Parameters:
userId
- calling userzoneName
- name of zone to scansubTypeName
- type of asset to scan for (null for all asset types)startFrom
- scan pointerpageSize
- maximum number of resultsforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of matching assets
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
assetZoneScan
public List<B> assetZoneScan(String userId, String zoneName, String subTypeGUID, String subTypeName, List<String> suppliedSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Scan through the repository looking for assets by type and/or zone. The type name may be null which means, all types of assets will be returned. The zone name may be null which means all supportedZones for the service are returned.- Parameters:
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)suppliedSupportedZones
- list of supported zones from calling servicestartFrom
- scan pointerpageSize
- maximum number of resultsforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of matching assets
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
findAssetsByName
public List<B> findAssetsByName(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested name in either the display name or qualified name. The match must be exact. SupportedZones set up for this service is used.- Parameters:
userId
- calling usertypeGUID
- unique identifier of the asset type to search for (null for the generic Asset type)typeName
- unique identifier of the asset type to search for (null for the generic Asset type)name
- name to search for - this is a regular expression (RegEx)nameParameterName
- property that provided the namestartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of B beans
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
findAssetsByName
public List<B> findAssetsByName(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested name in either the display name or qualified name.- Parameters:
userId
- calling usertypeGUID
- unique identifier of the asset type to search for (null for the generic Asset type)typeName
- unique identifier of the asset type to search for (null for the generic Asset type)name
- name to search for - this is a regular expression (RegEx)nameParameterName
- property that provided the nameserviceSupportedZones
- list of supported zones for this servicestartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of B beans
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAssetGUIDsByName
public List<String> getAssetGUIDsByName(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested name in either the display name or qualified name. The match must be exact. SupportedZones set up for this service is used.- Parameters:
userId
- calling usertypeGUID
- unique identifier of the asset type to search for (null for the generic Asset type)typeName
- unique identifier of the asset type to search for (null for the generic Asset type)name
- name to search for - this must be an exact match either on the display name or the qualified namenameParameterName
- property that provided the namestartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of B beans
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAssetGUIDsByName
public List<String> getAssetGUIDsByName(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested name in either the display name or qualified name. The match must be exact.- Parameters:
userId
- calling usertypeGUID
- unique identifier of the asset type to search for (null for the generic Asset type)typeName
- unique identifier of the asset type to search for (null for the generic Asset type)name
- name to search fornameParameterName
- property that provided the nameserviceSupportedZones
- list of supported zones for this servicestartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of B beans
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAssetsByName
public List<B> getAssetsByName(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested name in either the display name or qualified name. The match must be exact. SupportedZones set up for this service is used.- Parameters:
userId
- calling usertypeGUID
- unique identifier of the asset type to search for (null for the generic Asset type)typeName
- unique identifier of the asset type to search for (null for the generic Asset type)name
- name to search fornameParameterName
- property that provided the namestartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforDuplicateProcessing
- this request os for duplicate processing so do not deduplicateforLineage
- this request is for lineage so ignore Memento classificationseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of B beans
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAssetsByName
public List<B> getAssetsByName(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested name in either the display name or qualified name. The match must be exact.- Parameters:
userId
- calling usertypeGUID
- unique identifier of the asset type to search for (null for the generic Asset type)typeName
- unique identifier of the asset type to search for (null for the generic Asset type)name
- name to search for - this must be an exact match on the display name or qualified namenameParameterName
- property that provided the nameserviceSupportedZones
- list of supported zones for this servicestartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforDuplicateProcessing
- this request os for duplicate processing so do not deduplicateforLineage
- this request is for lineage so ignore Memento classificationseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of B beans
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAssetsByDeployedImplementationType
public List<B> getAssetsByDeployedImplementationType(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested name in the deployed implementation type property. The match must be exact. SupportedZones set up for this service is used.- Parameters:
userId
- calling usertypeGUID
- unique identifier of the asset type to search for (null for the generic Asset type)typeName
- unique identifier of the asset type to search for (null for the generic Asset type)name
- name to search fornameParameterName
- property that provided the namestartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforDuplicateProcessing
- this request os for duplicate processing so do not deduplicateforLineage
- this request is for lineage so ignore Memento classificationseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of B beans
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAssetsByDeployedImplementationType
public List<B> getAssetsByDeployedImplementationType(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested name in the deployed implementation type property. The match must be exact.- Parameters:
userId
- calling usertypeGUID
- unique identifier of the asset type to search for (null for the generic Asset type)typeName
- unique identifier of the asset type to search for (null for the generic Asset type)name
- name to search for - this must be an exact match on the display name or qualified namenameParameterName
- property that provided the nameserviceSupportedZones
- list of supported zones for this servicestartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforDuplicateProcessing
- this request os for duplicate processing so do not deduplicateforLineage
- this request is for lineage so ignore Memento classificationseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of B beans
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAssetsByMetadataCollectionId
public List<B> getAssetsByMetadataCollectionId(String userId, String typeName, String metadataCollectionId, String metadataCollectionIdParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested metadataCollectionId.- Parameters:
userId
- calling usertypeName
- unique name of the asset type to search for (null for generic Asset)metadataCollectionId
- unique identifier of metadataCollection to search formetadataCollectionIdParameterName
- parameter providing the metadata collection idstartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforDuplicateProcessing
- this request os for duplicate processing so do not deduplicateforLineage
- this request is for lineage so ignore Memento classificationseffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of B beans
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
findAssetGUIDs
public List<String> findAssetGUIDs(String userId, String searchString, String searchStringParameter, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested search string in their name, qualified name or description.- Parameters:
userId
- calling usersearchString
- string to search for in textsearchStringParameter
- name of parameter supplying the search stringstartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of unique identifiers for 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
-
findAssetGUIDs
public List<String> findAssetGUIDs(String userId, String typeGUID, String typeName, String searchString, String searchStringParameter, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested search string in their name, qualified name or description.- Parameters:
userId
- calling usertypeGUID
- unique identifier of the asset type to search for - null for generic AssettypeName
- unique name of the asset type to search for - null for generic AssetsearchString
- string to search for in textsearchStringParameter
- parameter providing search stringstartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of unique identifiers for 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
-
findAssets
public List<B> findAssets(String userId, String searchString, String searchStringParameter, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested search string in their name, qualified name or description.- Parameters:
userId
- calling usersearchString
- string to search for in textsearchStringParameter
- parameter providing search stringstartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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
-
findAssets
public List<B> findAssets(String userId, String typeGUID, String typeName, String searchString, String searchStringParameter, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return a list of assets with the requested search string in their name, qualified name or description.- Parameters:
userId
- calling usertypeGUID
- unique identifier of the asset type to search fortypeName
- unique name of the asset type to search forsearchString
- string to search for in textsearchStringParameter
- parameter providing search stringstartFrom
- starting element (used in paging through large result sets)pageSize
- maximum number of results to returnforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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
-
getAssetGUIDsByTag
public List<String> getAssetGUIDsByTag(String userId, String tagGUID, String tagGUIDParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Return the list of unique identifiers for assets that are linked to a specific tag either directly, or via one of its schema elements.- Parameters:
userId
- the name of the calling user.tagGUID
- unique identifier of tag.tagGUIDParameterName
- name of parameter supplying the GUIDstartFrom
- index of the list to start from (0 for start)pageSize
- maximum number of elements to return.forLineage
- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing
- the request is for duplicate processing and so must not deduplicateeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- asset guid list
- Throws:
InvalidParameterException
- the userId is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-