public class SchemaAttributeHandler<SCHEMA_ATTRIBUTE,SCHEMA_TYPE> extends ReferenceableHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
SchemaAttributeHandler(OpenMetadataAPIGenericConverter<SCHEMA_ATTRIBUTE> schemaAttributeConverter,
Class<SCHEMA_ATTRIBUTE> schemaAttributeBeanClass,
OpenMetadataAPIGenericConverter<SCHEMA_TYPE> schemaTypeConverter,
Class<SCHEMA_TYPE> schemaTypeBeanClass,
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 asset handler with information needed to work with B objects.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createNestedSchemaAttribute(String userId,
String externalSourceGUID,
String externalSourceName,
String parentAttributeGUID,
String parentAttributeGUIDParameterName,
String parentAttributeTypeName,
String parentAttributeRelationshipTypeGUID,
String parentAttributeRelationshipTypeName,
String qualifiedName,
String qualifiedNameParameterName,
SchemaAttributeBuilder schemaAttributeBuilder,
String methodName)
Create a new schema attribute with its type attached.
|
List<SCHEMA_ATTRIBUTE> |
findSchemaAttributes(String userId,
String searchString,
String searchStringParameterName,
String resultTypeGUID,
String resultTypeName,
String requiredClassificationName,
String omittedClassificationName,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of database table metadata elements that contain the search string.
|
SCHEMA_ATTRIBUTE |
getSchemaAttribute(String userId,
String schemaAttributeGUID,
String schemaAttributeGUIDParameterName,
String expectedTypeName,
String requiredClassificationName,
String omittedClassificationName,
String methodName)
Retrieve a specific schema attribute by GUID.
|
List<SCHEMA_ATTRIBUTE> |
getSchemaAttributesByName(String userId,
String typeGUID,
String typeName,
String name,
String requiredClassificationName,
String omittedClassificationName,
int elementStart,
int maxElements,
String methodName)
Returns a list of specifically typed schema attributes with matching names - either display names or qualified names
|
List<SCHEMA_ATTRIBUTE> |
getSchemaAttributesByName(String userId,
String typeGUID,
String typeName,
String name,
String requiredClassificationName,
String omittedClassificationName,
List<String> serviceSupportedZones,
int startFrom,
int pageSize,
String methodName)
Returns a list of specifically typed schema attributes with matching names - either display names or qualified names
|
List<SCHEMA_ATTRIBUTE> |
getSchemaAttributesForComplexSchemaType(String userId,
String schemaTypeGUID,
String guidParameterName,
String requiredClassificationName,
String omittedClassificationName,
int startFrom,
int pageSize,
String methodName)
Returns a list of schema attributes that are linked to a ComplexSchemaType via the AttributeForSchema relationship.
|
List<SCHEMA_ATTRIBUTE> |
getSchemaAttributesForComplexSchemaType(String userId,
String schemaTypeGUID,
String schemaTypeGUIDParameterName,
String requiredClassificationName,
String omittedClassificationName,
List<String> serviceSupportedZones,
int startFrom,
int pageSize,
String methodName)
Returns a list of schema attributes that are linked to a ComplexSchemaType via the AttributeForSchema relationship.
|
addSecurityTags, findBeanGUIDsByQualifiedName, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, removeSecurityTags, removeSemanticAssignment, saveSemanticAssignment, saveSemanticAssignmentcountAttachments, 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 SchemaAttributeHandler(OpenMetadataAPIGenericConverter<SCHEMA_ATTRIBUTE> schemaAttributeConverter, Class<SCHEMA_ATTRIBUTE> schemaAttributeBeanClass, OpenMetadataAPIGenericConverter<SCHEMA_TYPE> schemaTypeConverter, Class<SCHEMA_TYPE> schemaTypeBeanClass, 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)
schemaAttributeConverter - specific converter for the SCHEMA_ATTRIBUTE bean classschemaAttributeBeanClass - name of bean class that is represented by the generic class SCHEMA_ATTRIBUTEschemaTypeConverter - specific converter for the SCHEMA_TYPE bean classschemaTypeBeanClass - name of bean class that is represented by the generic class SCHEMA_TYPEserviceName - 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.public String createNestedSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String parentAttributeGUID, String parentAttributeGUIDParameterName, String parentAttributeTypeName, String parentAttributeRelationshipTypeGUID, String parentAttributeRelationshipTypeName, String qualifiedName, String qualifiedNameParameterName, SchemaAttributeBuilder schemaAttributeBuilder, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerparentAttributeGUID - unique identifier of the metadata element to connect the new schema attribute toparentAttributeGUIDParameterName - parameter name supplying parentAttributeGUIDparentAttributeTypeName - type of the parent element - may be a schema attribute or a schema typeparentAttributeRelationshipTypeGUID - unique identifier of the relationship from the new schema type to the parentparentAttributeRelationshipTypeName - unique name of the relationship from the new schema type to the parentqualifiedName - unique identifier for this schema typequalifiedNameParameterName - name of parameter supplying the qualified nameschemaAttributeBuilder - builder containing the properties of the schema typemethodName - calling methodInvalidParameterException - 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)public List<SCHEMA_ATTRIBUTE> getSchemaAttributesForComplexSchemaType(String userId, String schemaTypeGUID, String guidParameterName, String requiredClassificationName, String omittedClassificationName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - String userId of user making request.schemaTypeGUID - String unique id for containing schema type.guidParameterName - String name of the parameter supplying the guid.requiredClassificationName - String the name of the classification that must be on the schema attribute or linked schema type entity.omittedClassificationName - String the name of a classification that must not be on the schema attribute or linked schema type entity.startFrom - int starting position for first returned element.pageSize - int maximum number of elements to return on the call.methodName - 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<SCHEMA_ATTRIBUTE> getSchemaAttributesForComplexSchemaType(String userId, String schemaTypeGUID, String schemaTypeGUIDParameterName, String requiredClassificationName, String omittedClassificationName, List<String> serviceSupportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - String userId of user making request.schemaTypeGUID - String unique id for containing schema type.schemaTypeGUIDParameterName - String name of the parameter supplying the guid.requiredClassificationName - String the name of the classification that must be on the schema attribute or linked schema type entity.omittedClassificationName - String the name of a classification that must not be on the schema attribute or linked schema type entity.serviceSupportedZones - list of zone names for calling servicestartFrom - int starting position for first returned element.pageSize - int maximum number of elements to return on the call.methodName - 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 SCHEMA_ATTRIBUTE getSchemaAttribute(String userId, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, String expectedTypeName, String requiredClassificationName, String omittedClassificationName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdschemaAttributeGUID - unique identifier of schema attributeschemaAttributeGUIDParameterName - parameter passing the schemaAttributeGUIDexpectedTypeName - type or subtype of schema attributerequiredClassificationName - a classification that must be either on the schema attribute or its type.omittedClassificationName - a classification that must NOT be on either the schema attribute or its type.methodName - calling methodInvalidParameterException - the guid or bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<SCHEMA_ATTRIBUTE> getSchemaAttributesByName(String userId, String typeGUID, String typeName, String name, String requiredClassificationName, String omittedClassificationName, int elementStart, int maxElements, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - String userId of user making request.typeGUID - String unique identifier of type of schema attribute required.typeName - String unique name of type of schema attribute required.name - String name (qualified or display name) of schema attribute.requiredClassificationName - String name of classification that must be presentomittedClassificationName - String name of classification that must not be presentelementStart - int starting position for first returned element.maxElements - int maximum number of elements to return on the call.methodName - 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<SCHEMA_ATTRIBUTE> getSchemaAttributesByName(String userId, String typeGUID, String typeName, String name, String requiredClassificationName, String omittedClassificationName, List<String> serviceSupportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - String userId of user making requesttypeGUID - String unique identifier of type of schema attribute requiredtypeName - String unique name of type of schema attribute requiredname - String name (qualified or display name) of schema attributerequiredClassificationName - String name of classification that must be presentomittedClassificationName - String name of classification that must not be presentserviceSupportedZones - zones that assets must be;ong in to be visiblestartFrom - int starting position for first returned elementpageSize - int maximum number of elements to return on the callmethodName - 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<SCHEMA_ATTRIBUTE> findSchemaAttributes(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, String requiredClassificationName, String omittedClassificationName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the searchString of the calling user.searchString - searchString of endpoint. This may include wild card characters.searchStringParameterName - name of parameter providing search stringresultTypeGUID - unique identifier of the type that the results should match withresultTypeName - unique value of the type that the results should match withrequiredClassificationName - String the name of the classification that must be on the entity.omittedClassificationName - String the name of a classification that must not be on the entity.startFrom - index of the list ot start from (0 for start)pageSize - maximum number of elements to return.methodName - calling methodInvalidParameterException - 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)Copyright © 2018–2020 ODPi. All rights reserved.