public class ReferenceableHandler<B> extends OpenMetadataAPIGenericHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and 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
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSecurityTags(String userId,
String beanGUID,
String beanGUIDParameterName,
List<String> securityLabels,
Map<String,Object> securityProperties,
String methodName)
Add or replace the security tags for a referenceable.
|
List<String> |
findBeanGUIDsByQualifiedName(String userId,
String typeGUID,
String typeName,
String name,
String nameParameterName,
int startFrom,
int pageSize,
String methodName)
Return a list of unique identifiers for referenceables with the requested qualified name.
|
List<String> |
findBeanGUIDsByQualifiedName(String userId,
String typeGUID,
String typeName,
String name,
String nameParameterName,
List<String> serviceSupportedZones,
int startFrom,
int pageSize,
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,
int startFrom,
int pageSize,
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,
List<String> serviceSupportedZones,
int startFrom,
int pageSize,
String methodName)
Return a list of referenceables with the requested qualified name.
|
B |
getBeanByQualifiedName(String userId,
String typeGUID,
String typeName,
String name,
String nameParameterName,
List<String> serviceSupportedZones,
String methodName)
Return the bean with the requested qualified name.
|
B |
getBeanByQualifiedName(String userId,
String typeGUID,
String typeName,
String name,
String nameParameterName,
String methodName)
Return the bean with the requested qualified name.
|
String |
getBeanGUIDByQualifiedName(String userId,
String typeGUID,
String typeName,
String name,
String nameParameterName,
List<String> serviceSupportedZones,
String methodName)
Return the bean with the requested qualified name.
|
String |
getBeanGUIDByQualifiedName(String userId,
String typeGUID,
String typeName,
String name,
String nameParameterName,
String methodName)
Return the unique identifier of the bean with the requested qualified name.
|
List<String> |
getBeanGUIDsByQualifiedName(String userId,
String typeGUID,
String typeName,
String name,
String nameParameterName,
int startFrom,
int pageSize,
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,
List<String> serviceSupportedZones,
int startFrom,
int pageSize,
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,
String methodName)
Return a list of referenceables with the requested qualified name.
|
List<B> |
getMoreInformation(String userId,
String startingGUID,
String startingGUIDParameterName,
String suppliedStartingTypeName,
String suppliedResultingTypeName,
int startFrom,
int pageSize,
String methodName)
Returns the list of related assets for the asset.
|
List<B> |
getMoreInformation(String userId,
String startingGUID,
String startingGUIDParameterName,
String suppliedStartingTypeName,
String suppliedResultingTypeName,
List<String> serviceSupportedZones,
int startFrom,
int pageSize,
String methodName)
Returns the list of related assets for the asset.
|
Map<String,String> |
getVendorProperties(String userId,
String referenceableGUID,
String qualifiedName,
String methodName)
Retrieve the property facet for the vendor properties.
|
void |
removeSecurityTags(String userId,
String beanGUID,
String beanGUIDParameterName,
String methodName)
Remove the security tags classification from a referenceable.
|
void |
removeSemanticAssignment(String userId,
String externalSourceGUID,
String externalSourceName,
String beanGUID,
String glossaryTermGUID,
String methodName)
Remove the relationship between a glossary term and a referenceable (typically
a field in the schema).
|
void |
saveSemanticAssignment(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.
|
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,
String methodName)
Create a simple relationship between a glossary term and a referenceable.
|
countAttachments, createBeanFromTemplate, createBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, getAllAttachmentLinks, getAnchorsForAttachedElements, getAttachedElement, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntity, getAttachedEntity, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getRepositoryHelper, getServiceName, getUniqueAttachmentLink, linkElementToElement, linkElementToElement, relinkElementToNewElement, relinkElementToNewElement, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, validateAnchorEntity, validateAnchorEntity, verifyExternalSourceIdentitypublic 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)
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.public String getBeanGUIDByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public String getBeanGUIDByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 servicemethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public B getBeanByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public B getBeanByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 servicemethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<String> getBeanGUIDsByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<String> getBeanGUIDsByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 returnmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<B> getBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<B> getBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 returnmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<String> findBeanGUIDsByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 returnmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<String> findBeanGUIDsByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 returnmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<B> findBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 returnmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<B> findBeansByQualifiedName(String userId, String typeGUID, String typeName, String name, String nameParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 returnmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void addSecurityTags(String userId, String beanGUID, String beanGUIDParameterName, List<String> securityLabels, Map<String,Object> securityProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userbeanGUID - unique identifier of beanbeanGUIDParameterName - name of parameter supplying the beanGUIDsecurityLabels - list of security labels defining the security characteristics of the elementsecurityProperties - Descriptive labels describing origin of the assetmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void removeSecurityTags(String userId, String beanGUID, String beanGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userbeanGUID - unique identifier of entity to updatebeanGUIDParameterName - name of parameter providing beanGUIDmethodName - calling methodInvalidParameterException - entity not known, null userId or guidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<B> getMoreInformation(String userId, String startingGUID, String startingGUIDParameterName, String suppliedStartingTypeName, String suppliedResultingTypeName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 methodInvalidParameterException - - 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.public List<B> getMoreInformation(String userId, String startingGUID, String startingGUIDParameterName, String suppliedStartingTypeName, String suppliedResultingTypeName, List<String> serviceSupportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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.methodName - String calling methodInvalidParameterException - - 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.public void saveSemanticAssignment(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String beanGUIDParameter, String glossaryTermGUID, String glossaryTermGUIDParameter, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 methodInvalidParameterException - the guid properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic 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, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
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 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 assignmentmethodName - calling methodInvalidParameterException - the guid properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void removeSemanticAssignment(String userId, String externalSourceGUID, String externalSourceName, String beanGUID, String glossaryTermGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 referenceableglossaryTermGUID - unique identifier of the glossary termmethodName - calling methodInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic Map<String,String> getVendorProperties(String userId, String referenceableGUID, String qualifiedName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userreferenceableGUID - unique identifier of the metadata elementqualifiedName - qualified name of the metadata elementmethodName - calling methodInvalidParameterException - one of the parameters is null or invalidPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2020 ODPi. All rights reserved.