public class SchemaTypeHandler<B> extends ReferenceableHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
SchemaTypeHandler(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 asset handler with information needed to work with B objects.
|
| Modifier and Type | Method and Description |
|---|---|
String |
addSchemaType(String userId,
String externalSourceGUID,
String externalSourceName,
SchemaTypeBuilder schemaTypeBuilder,
String methodName)
Store a new schema type (and optional attributes) in the repository and return its unique identifier (GUID).
|
String |
createSchemaTypeFromTemplate(String userId,
String externalSourceGUID,
String externalSourceName,
String templateGUID,
String qualifiedName,
String displayName,
String description,
String methodName)
Create a new metadata element to represent a schema type using an existing metadata element as a template.
|
List<B> |
findSchemaTypes(String userId,
String searchString,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of schema type metadata elements that contain the search string.
|
B |
getSchemaType(String userId,
String schemaTypeGUID,
String guidParameterName,
String methodName)
Retrieve a specific schema type based on its unique identifier (GUID).
|
List<B> |
getSchemaTypeByName(String userId,
String name,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of schema type metadata elements with a matching qualified or display name.
|
B |
getSchemaTypeForAsset(String userId,
String assetGUID,
String assetGUIDParameterName,
String methodName)
Is there an attached schema for the Asset?
|
B |
getSchemaTypeForParent(String userId,
String parentGUID,
String parentGUIDParameterName,
String parentTypeName,
String relationshipTypeGUID,
String relationshipTypeName,
String methodName)
Is there an attached schema for the parent entity? This is either an asset or a port entity.
|
B |
getSchemaTypeForPort(String userId,
String portGUID,
String portGUIDParameterName,
String methodName)
Is there an attached schema for the Port?
|
B |
getSchemaTypeFromInstance(String userId,
InstanceHeader schemaRootHeader,
String schemaRootTypeName,
InstanceProperties instanceProperties,
List<Classification> entityClassifications,
String methodName)
Transform the schema type information stored either as a schema type entity or in the TypeClassifiedAttribute classification into a schema type
bean.
|
void |
removeSchemaType(String userId,
String externalSourceGUID,
String externalSourceName,
String schemaTypeGUID)
Remove the requested schemaType if it is no longer connected to any other entity.
|
void |
updateSchemaType(String userId,
String externalSourceGUID,
String externalSourceName,
String existingSchemaTypeGUID,
String existingSchemaTypeGUIDParameterName,
SchemaTypeBuilder builder)
Update a stored schemaType.
|
void |
updateSchemaType(String userId,
String externalSourceGUID,
String externalSourceName,
String existingSchemaTypeGUID,
String existingSchemaTypeGUIDParameterName,
SchemaTypeBuilder builder,
boolean isMergeUpdate,
String methodName)
Update a stored schemaType.
|
addSecurityTags, addTemplateClassification, findBeanGUIDsByQualifiedName, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, linkElementsAsDuplicates, removeSecurityTags, removeSemanticAssignment, removeTemplateClassification, saveSemanticAssignment, saveSemanticAssignment, unlinkElementsAsDuplicatesarchiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findBeans, findEntities, getAllAttachmentLinks, getAnchorsForAttachedElements, getAttachedElement, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntities, getAttachedEntity, getAttachedEntity, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHelper, getServiceName, getUniqueAttachmentLink, getUniqueAttachmentLink, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkAllElements, unlinkConnectedElement, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, verifyExternalSourceIdentitypublic SchemaTypeHandler(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 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 addSchemaType(String userId, String externalSourceGUID, String externalSourceName, SchemaTypeBuilder schemaTypeBuilder, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userIdexternalSourceGUID - unique identifier of software server capability representing the caller - null for local cohortexternalSourceName - unique name of software server capability representing the callerschemaTypeBuilder - properties for new schemaTypemethodName - calling methodInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createSchemaTypeFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String templateGUID, String qualifiedName, String displayName, String description, 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 callertemplateGUID - unique identifier of the metadata element to copyqualifiedName - unique name for the schema type - used in other configurationdisplayName - short display name for the schema typedescription - description 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 void updateSchemaType(String userId, String externalSourceGUID, String externalSourceName, String existingSchemaTypeGUID, String existingSchemaTypeGUIDParameterName, SchemaTypeBuilder builder) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userIdexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerexistingSchemaTypeGUID - unique identifier of the existing schemaType entityexistingSchemaTypeGUIDParameterName - name of parameter for existingSchemaTypeGUIDbuilder - new schemaType valuesInvalidParameterException - the schemaType bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void updateSchemaType(String userId, String externalSourceGUID, String externalSourceName, String existingSchemaTypeGUID, String existingSchemaTypeGUIDParameterName, SchemaTypeBuilder builder, boolean isMergeUpdate, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userIdexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerexistingSchemaTypeGUID - unique identifier of the existing schemaType entityexistingSchemaTypeGUIDParameterName - name of parameter for existingSchemaTypeGUIDbuilder - new schemaType valuesisMergeUpdate - should the new properties be merged with existing properties (true) or completely replace them (false)?InvalidParameterException - the schemaType bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void removeSchemaType(String userId, String externalSourceGUID, String externalSourceName, String schemaTypeGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userexternalSourceGUID - unique identifier of software server capability representing the caller - null for local cohortexternalSourceName - unique name of software server capability representing the callerschemaTypeGUID - object to deleteInvalidParameterException - the entity guid is not knownUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic B getSchemaTypeForAsset(String userId, String assetGUID, String assetGUIDParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userassetGUID - identifier for the entity that the object is attached toassetGUIDParameterName - name of parameter for assetGUIDmethodName - calling methodInvalidParameterException - the schemaType bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic B getSchemaTypeForPort(String userId, String portGUID, String portGUIDParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userportGUID - identifier for the entity that the object is attached toportGUIDParameterName - name of parameter for portGUIDmethodName - calling methodInvalidParameterException - the schemaType bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic B getSchemaTypeForParent(String userId, String parentGUID, String parentGUIDParameterName, String parentTypeName, String relationshipTypeGUID, String relationshipTypeName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userparentGUID - identifier for the entity that the object is attached toparentGUIDParameterName - parameter supplying parentGUIDparentTypeName - type name of anchorrelationshipTypeGUID - unique identifier of the relationship type to search alongrelationshipTypeName - unique name of the relationship type to search alongmethodName - calling methodInvalidParameterException - the schemaType bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic B getSchemaType(String userId, String schemaTypeGUID, String guidParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userschemaTypeGUID - guid of schema type to retrieve.guidParameterName - parameter describing where the guid came frommethodName - calling methodInvalidParameterException - the guid is nullUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<B> findSchemaTypes(String userId, String searchString, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - 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<B> getSchemaTypeByName(String userId, String name, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - 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 B getSchemaTypeFromInstance(String userId, InstanceHeader schemaRootHeader, String schemaRootTypeName, InstanceProperties instanceProperties, List<Classification> entityClassifications, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userschemaRootHeader - header of the schema element that holds the root informationschemaRootTypeName - name of type of the schema element that holds the root informationinstanceProperties - properties describing the schema typeentityClassifications - classifications from the root entitymethodName - calling methodInvalidParameterException - problem with the entityUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.