Class ReferenceableHandler<B>
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler<B>
-
- Direct Known Subclasses:
ActorProfileHandler,AnnotationHandler,APIOperationHandler,APIParameterListHandler,AssetHandler,CertificationHandler,CollectionHandler,CommentHandler,ConnectionHandler,ConnectorTypeHandler,DisplayDataContainerHandler,EndpointHandler,EventTypeHandler,ExternalIdentifierHandler,ExternalReferenceHandler,ExternalReferenceLinkHandler,GlossaryCategoryHandler,GlossaryHandler,GlossaryTermHandler,GovernanceDefinitionHandler,GovernanceDomainHandler,LicenseHandler,LocationHandler,NoteHandler,NoteLogHandler,PersonRoleHandler,ProcessHandler,RelatedMediaHandler,SchemaAttributeHandler,SchemaTypeHandler,SoftwareCapabilityHandler,SoftwareServerCapabilityHandler,UserIdentityHandler,ValidValuesHandler
public class ReferenceableHandler<B> extends OpenMetadataAPIGenericHandler<B>
ReferenceableHandler manages methods on generic referenceables.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
-
Constructor Summary
Constructors Constructor Description ReferenceableHandler(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 information needed to interact with the repository services
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOwner(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String owner, String ownerTypeName, String ownerPropertyName, String methodName)Add or replace the ownership for a referenceable.voidaddSecurityTags(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, List<String> securityLabels, Map<String,Object> securityProperties, String methodName)Add or replace the security tags for a referenceable.voidaddTemplateClassification(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String name, String description, Map<String,String> additionalProperties, String methodName)Classify an asset as suitable to be used as a template for cataloguing assets of a similar types.voidclearBusinessSignificant(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String methodName)Remove the "BusinessSignificant" designation from the element.List<String>findBeanGUIDsByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName)Return a list of unique identifiers for referenceables with the requested qualified name.List<B>findBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName)Return a list of referenceables with the requested qualified name.List<B>findBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName)Return a list of referenceables with the requested qualified name.BgetBeanByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName)Return the bean with the requested qualified name.BgetBeanByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, String methodName)Return the bean with the requested qualified name.StringgetBeanGUIDByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName)Return the unique identifier of the bean with the requested qualified name.StringgetBeanGUIDByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName)Return the bean with the requested qualified name.List<String>getBeanGUIDsByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName)Return a list of unique identifiers for referenceables with the requested qualified name.List<String>getBeanGUIDsByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName)Return a list of unique identifiers for referenceables with the requested qualified name.List<B>getBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, String methodName)Return a list of referenceables with the requested qualified name.List<B>getBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName)Return a list of referenceables with the requested qualified name.List<B>getCollectionMembers(String userId, String collectionGUID, String collectionGUIDParameterName, int startFrom, int pageSize, Date effectiveTime, String methodName)Return the list of elements associated with a collection.EntityDetailgetEntityByUniqueQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName)Return the entity for a qualified name that is effective at a specific time - if multiple entities have this name, an exception is thrown.List<B>getMoreInformation(String userId, String startingGUID, String startingGUIDParameterName, String suppliedStartingTypeName, String suppliedResultingTypeName, int startFrom, int pageSize, String methodName)Returns the list of elements that are linked to provide more information.List<B>getMoreInformation(String userId, String startingGUID, String startingGUIDParameterName, String suppliedStartingTypeName, String suppliedResultingTypeName, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName)Returns the list of elements that are linked to provide more information.Map<String,String>getVendorProperties(String userId, String referenceableGUID, String referenceableGUIDParameter, String methodName)Retrieve the property facet for the vendor properties.voidlinkElementsAsPeerDuplicates(String userId, String element1GUID, String element1GUIDParameter, String element2GUID, String element2GUIDParameter, boolean setKnownDuplicate, int statusIdentifier, String steward, String stewardTypeName, String stewardPropertyName, String source, String notes, String methodName)Create a simple relationship between two elements in an Asset description (typically the asset itself or attributes in their schema).voidremoveOwner(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String methodName)Remove the ownership classification from a referenceable.voidremoveResourceListMember(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameter, String memberGUID, String memberGUIDParameter, Date effectiveTime, String methodName)Remove the relationship between a referenceable and a resource it uses.voidremoveSecurityTags(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String methodName)Remove the security tags classification from a referenceable.voidremoveSemanticAssignment(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameter, String glossaryTermGUID, String glossaryTermGUIDParameter, Date effectiveTime, String methodName)Remove the relationship between a glossary term and a referenceable (typically a field in the schema).voidremoveTemplateClassification(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String methodName)Remove the classification that indicates that this asset can be used as a template.voidsaveResourceListMember(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameter, String memberGUID, String memberGUIDParameter, String resourceUse, boolean watchResource, Date effectiveFrom, Date effectiveTo, String methodName)Create a relationship between a referenceable and a resource it uses.voidsaveSemanticAssignment(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameter, String glossaryTermGUID, String glossaryTermGUIDParameter, String methodName)Create a simple relationship between a glossary term and a referenceable.voidsaveSemanticAssignment(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameter, String glossaryTermGUID, String glossaryTermGUIDParameter, String description, String expression, int statusOrdinal, int confidence, String createdBy, String steward, String source, Date effectiveFrom, Date effectiveTo, String methodName)Create a simple relationship between a glossary term and a referenceable.voidsetBusinessSignificant(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String description, String scope, String businessCapabilityGUID, String methodName)Classify a referenceable as "BusinessSignificant" (this may effect the way that lineage is displayed).voidsetVendorProperties(String userId, String referenceableGUID, Map<String,String> vendorProperties, String methodName)Create the property facet for the vendor properties.voidunlinkElementsAsPeerDuplicates(String userId, String element1GUID, String element1GUIDParameter, String element2GUID, String element2GUIDParameter, Date effectiveTime, String methodName)Remove the relationship between two elements that marks them as duplicates.-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, entityMatchSearchCriteria, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEffectiveTime, getEffectiveTime, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getTypeDefByName, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, regexSearchCriteria, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
-
-
-
-
Constructor Detail
-
ReferenceableHandler
public ReferenceableHandler(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 information needed to interact with the repository services- 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 Asset instances from.defaultZones- list of zones that the access service should set in all new Asset instances.publishZones- list of zones that the access service sets up in published Asset instances.auditLog- destination for audit log events.
-
-
Method Detail
-
getBeanGUIDByQualifiedName
public String getBeanGUIDByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return the unique identifier of the bean with the requested qualified name. The match is exact. It uses the supportedZones supplied with the service.- 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 nameforLineage- 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- Returns:
- matching B bean
- 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.
-
getBeanGUIDByQualifiedName
public String getBeanGUIDByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return the bean with the requested qualified name. The match is 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 nameforLineage- 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- list of supported zones for this serviceeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- matching B bean
- 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.
-
getBeanByQualifiedName
public B getBeanByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return the bean with the requested qualified name. The match is exact. It uses the supportedZones supplied with the service.- 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 namemethodName- calling method- Returns:
- matching B bean
- 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.
-
getBeanByQualifiedName
public B getBeanByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return the bean with the requested qualified name. The match is 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 nameforLineage- 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- list of supported zones for this serviceeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- matching B bean
- 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.
-
getBeanGUIDsByQualifiedName
public List<String> getBeanGUIDsByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of unique identifiers for referenceables with the requested qualified name. The match is exact. It uses the supportedZones supplied with the service.- 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 nameforLineage- 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 deduplicatestartFrom- starting element (used in paging through large result sets)pageSize- maximum number of results to returneffectiveTime- 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.
-
getBeanGUIDsByQualifiedName
public List<String> getBeanGUIDsByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of unique identifiers for referenceables with the requested qualified name. The match is 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 nameforLineage- 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- list of supported zones for this servicestartFrom- starting element (used in paging through large result sets)pageSize- maximum number of results to returneffectiveTime- the time that the retrieved elements must be effective formethodName- 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.
-
getBeansByQualifiedName
public List<B> getBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of referenceables with the requested qualified name. The match is exact. It uses the supportedZones supplied with the service.- 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 returnmethodName- 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.
-
getBeansByQualifiedName
public List<B> getBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of referenceables with the requested qualified name. The match is 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 returneffectiveTime- the time that the retrieved elements must be effective formethodName- 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.
-
getEntityByUniqueQualifiedName
public EntityDetail getEntityByUniqueQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return the entity for a qualified name that is effective at a specific time - if multiple entities have this name, an exception is thrown.- 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 nameforLineage- 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- 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.
-
findBeanGUIDsByQualifiedName
public List<String> findBeanGUIDsByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of unique identifiers for referenceables with the requested qualified name. The match is via a Regular Expression (RegEx).- 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 nameforLineage- 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- list of supported zones for this servicestartFrom- starting element (used in paging through large result sets)pageSize- maximum number of results to returneffectiveTime- the time that the retrieved elements must be effective formethodName- 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.
-
findBeansByQualifiedName
public List<B> findBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of referenceables with the requested qualified name. The match is via a Regular Expression (RegEx). It uses the supportedZones supplied with the service.- 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 nameforLineage- 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 deduplicatestartFrom- starting element (used in paging through large result sets)pageSize- maximum number of results to returneffectiveTime- the time that the retrieved elements must be effective formethodName- 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.
-
findBeansByQualifiedName
public List<B> findBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return a list of referenceables with the requested qualified name. The match is via a Regular Expression (RegEx).- 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 nameforLineage- 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- list of supported zones for this servicestartFrom- starting element (used in paging through large result sets)pageSize- maximum number of results to returneffectiveTime- the time that the retrieved elements must be effective formethodName- 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.
-
addOwner
public void addOwner(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String owner, String ownerTypeName, String ownerPropertyName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Add or replace the ownership for a referenceable.- Parameters:
userId- calling userbeanGUID- unique identifier of beanbeanGUIDParameterName- name of parameter supplying the beanGUIDbeanGUIDTypeName- type of beanowner- name of the ownerownerTypeName- type of element that owner comes fromownerPropertyName- name of property used to identify ownermethodName- calling method- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
removeOwner
public void removeOwner(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the ownership classification from a referenceable.- Parameters:
userId- calling userbeanGUID- unique identifier of entity to updatebeanGUIDParameterName- name of parameter providing beanGUIDbeanGUIDTypeName- type of beanmethodName- calling method- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
addSecurityTags
public void addSecurityTags(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, List<String> securityLabels, Map<String,Object> securityProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Add or replace the security tags for a referenceable.- Parameters:
userId- calling userbeanGUID- unique identifier of beanbeanGUIDParameterName- name of parameter supplying the beanGUIDbeanGUIDTypeName- type of beansecurityLabels- list of security labels defining the security characteristics of the elementsecurityProperties- Descriptive labels describing origin of the assetmethodName- calling method- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
removeSecurityTags
public void removeSecurityTags(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the security tags classification from a referenceable.- Parameters:
userId- calling userbeanGUID- unique identifier of entity to updatebeanGUIDParameterName- name of parameter providing beanGUIDbeanGUIDTypeName- type of beanmethodName- calling method- Throws:
InvalidParameterException- entity not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
setBusinessSignificant
public void setBusinessSignificant(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String description, String scope, String businessCapabilityGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify a referenceable as "BusinessSignificant" (this may effect the way that lineage is displayed).- Parameters:
userId- calling userbeanGUID- unique identifier of entity to updatebeanGUIDParameterName- name of parameter providing beanGUIDbeanGUIDTypeName- type of beandescription- description of why this is significantscope- scope of its business significancebusinessCapabilityGUID- unique identifier of the business capability that rates this as significantmethodName- 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)
-
clearBusinessSignificant
public void clearBusinessSignificant(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the "BusinessSignificant" designation from the element.- Parameters:
userId- calling userbeanGUID- unique identifier of entity to updatebeanGUIDParameterName- name of parameter providing beanGUIDbeanGUIDTypeName- type of beanmethodName- 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)
-
addTemplateClassification
public void addTemplateClassification(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String name, String description, Map<String,String> additionalProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify an asset as suitable to be used as a template for cataloguing assets of a similar types.- Parameters:
userId- calling userbeanGUID- unique identifier of beanbeanGUIDParameterName- name of parameter supplying the beanGUIDbeanGUIDTypeName- type of beanname- name of the templatedescription- description of when, where and how to use the templateadditionalProperties- any additional propertiesmethodName- calling method- Throws:
InvalidParameterException- asset or element not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
removeTemplateClassification
public void removeTemplateClassification(String userId, String beanGUID, String beanGUIDParameterName, String beanGUIDTypeName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the classification that indicates that this asset can be used as a template.- Parameters:
userId- calling userbeanGUID- unique identifier of beanbeanGUIDParameterName- name of parameter supplying the beanGUIDbeanGUIDTypeName- type of beanmethodName- calling method- Throws:
InvalidParameterException- asset or element not known, null userId or guidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getMoreInformation
public List<B> getMoreInformation(String userId, String startingGUID, String startingGUIDParameterName, String suppliedStartingTypeName, String suppliedResultingTypeName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Returns the list of elements that are linked to provide more information. It uses the supportedZones supplied with the service.- Parameters:
userId- String userId of user making request.startingGUID- String unique id for element.startingGUIDParameterName- name of parameter supplying the GUIDsuppliedStartingTypeName- name of the type of object that the search begins with - null means referenceablesuppliedResultingTypeName- name of the type of object that the search returns - null mean referenceablestartFrom- int starting position for fist returned element.pageSize- int maximum number of elements to return on the call.methodName- String calling method- Returns:
- a list of assets 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.
-
getMoreInformation
public List<B> getMoreInformation(String userId, String startingGUID, String startingGUIDParameterName, String suppliedStartingTypeName, String suppliedResultingTypeName, List<String> serviceSupportedZones, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Returns the list of elements that are linked to provide more information.- Parameters:
userId- String userId of user making request.startingGUID- String unique id for element.startingGUIDParameterName- name of parameter supplying the GUIDsuppliedStartingTypeName- name of the type of object that the search begins with - null means referenceablesuppliedResultingTypeName- name of the type of object that the search returns - null mean referenceableserviceSupportedZones- supported zones for calling servicestartFrom- int starting position for fist returned element.pageSize- int maximum number of elements to return on the call.effectiveTime- the time that the retrieved elements must be effective formethodName- String calling method- Returns:
- a list of assets 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.
-
saveSemanticAssignment
public void saveSemanticAssignment(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameter, String glossaryTermGUID, String glossaryTermGUIDParameter, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Create a simple relationship between a glossary term and a referenceable.- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external source - null for localbeanGUID- unique identifier of the asset that is being describedbeanGUIDParameter- parameter supply the beanGUIDglossaryTermGUID- unique identifier of the glossary termglossaryTermGUIDParameter- parameter supplying the list of GlossaryTermGUIDmethodName- calling method- Throws:
InvalidParameterException- the guid properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
saveSemanticAssignment
public void saveSemanticAssignment(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameter, String glossaryTermGUID, String glossaryTermGUIDParameter, String description, String expression, int statusOrdinal, int confidence, String createdBy, String steward, String source, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Create a simple relationship between a glossary term and a referenceable.- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external source - null for localbeanGUID- unique identifier of the element that is being describedbeanGUIDParameter- parameter supply the beanGUIDglossaryTermGUID- unique identifier of the glossary termglossaryTermGUIDParameter- parameter supplying the list of GlossaryTermGUIDdescription- description of the assignmentexpression- expression used to determine the assignmentstatusOrdinal- the status of the assignmentconfidence- how confident is the assignment - no confidence = 0 to complete confidence = 100createdBy- who/what created the assignmentsteward- which steward is responsible for assignmentsource- where was the source of the assignmenteffectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
InvalidParameterException- the guid properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
removeSemanticAssignment
public void removeSemanticAssignment(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameter, String glossaryTermGUID, String glossaryTermGUIDParameter, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the relationship between a glossary term and a referenceable (typically a field in the schema).- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcebeanGUID- unique identifier of the element that is being describedbeanGUIDParameter- parameter supply the beanGUIDglossaryTermGUID- unique identifier of the glossary termglossaryTermGUIDParameter- parameter supplying the list of GlossaryTermGUIDeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
saveResourceListMember
public void saveResourceListMember(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameter, String memberGUID, String memberGUIDParameter, String resourceUse, boolean watchResource, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Create a relationship between a referenceable and a resource it uses.- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external source - null for localbeanGUID- unique identifier of the starting elementbeanGUIDParameter- parameter supplying the beanGUIDmemberGUID- unique identifier of the element to linkmemberGUIDParameter- parameter supplying the memberGUIDresourceUse- description of the way that the resource list is usedwatchResource- should changes in the members result in notificationseffectiveFrom- starting time for this relationship (null for all time)effectiveTo- ending time for this relationship (null for all time)methodName- calling method- Throws:
InvalidParameterException- the guid properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
removeResourceListMember
public void removeResourceListMember(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameter, String memberGUID, String memberGUIDParameter, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the relationship between a referenceable and a resource it uses.- Parameters:
userId- calling userexternalSourceGUID- guid of the software server capability entity that represented the external source - null for localexternalSourceName- name of the software server capability entity that represented the external sourcebeanGUID- unique identifier of the referenceablebeanGUIDParameter- parameter supplying beanGUIDmemberGUID- unique identifier of the glossary termmemberGUIDParameter- parameter supplying memberGUIDeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getCollectionMembers
public List<B> getCollectionMembers(String userId, String collectionGUID, String collectionGUIDParameterName, int startFrom, int pageSize, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the list of elements associated with a collection.- Parameters:
userId- calling usercollectionGUID- unique identifier of the collection to querycollectionGUIDParameterName- name of the parameter supplying collectionGUIDstartFrom- paging start pointpageSize- maximum results that can be returnedeffectiveTime- the time that the retrieved elements must be effective formethodName- calling method- Returns:
- list of metadata elements describing the definitions associated with the requested definition
- 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)
-
linkElementsAsPeerDuplicates
public void linkElementsAsPeerDuplicates(String userId, String element1GUID, String element1GUIDParameter, String element2GUID, String element2GUIDParameter, boolean setKnownDuplicate, int statusIdentifier, String steward, String stewardTypeName, String stewardPropertyName, String source, String notes, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a simple relationship between two elements in an Asset description (typically the asset itself or attributes in their schema).- Parameters:
userId- calling userelement1GUID- unique identifier of first elementelement1GUIDParameter- name of parameter supplying element1GUIDelement2GUID- unique identifier of second elementelement2GUIDParameter- name of parameter supplying element2GUIDsetKnownDuplicate- should the KnownDuplicate classification be set on the elements?statusIdentifier- what is the status of this relationship (negative means untrusted, 0 means unverified and positive means trusted)steward- identifier of the stewardstewardTypeName- type of element used to identify the stewardstewardPropertyName- property name used to identify stewardsource- source of the duplicate detection processingnotes- notes for the stewardmethodName- calling method- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
unlinkElementsAsPeerDuplicates
public void unlinkElementsAsPeerDuplicates(String userId, String element1GUID, String element1GUIDParameter, String element2GUID, String element2GUIDParameter, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the relationship between two elements that marks them as duplicates.- Parameters:
userId- calling userelement1GUID- unique identifier of first elementelement1GUIDParameter- name of parameter supplying element1GUIDelement2GUID- unique identifier of second elementelement2GUIDParameter- name of parameter supplying element2GUIDeffectiveTime- 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 or the elements are not linked as duplicatesPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
setVendorProperties
public void setVendorProperties(String userId, String referenceableGUID, Map<String,String> vendorProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create the property facet for the vendor properties.- Parameters:
userId- calling userreferenceableGUID- unique identifier of the software server capabilityvendorProperties- properties for the vendormethodName- calling method- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getVendorProperties
public Map<String,String> getVendorProperties(String userId, String referenceableGUID, String referenceableGUIDParameter, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the property facet for the vendor properties. It uses the supportedZones supplied with the service.- Parameters:
userId- calling userreferenceableGUID- unique identifier of the metadata elementreferenceableGUIDParameter- parameter name for referenceableGUIDmethodName- calling method- Returns:
- map of properties
- Throws:
InvalidParameterException- one of the parameters is null or invalidPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
-