public class DataFieldHandler<B> extends OpenMetadataAPIGenericHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
DataFieldHandler(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 |
|---|---|
String |
addDataFieldToDataField(String userId,
String externalSourceGUID,
String externalSourceName,
String parentDataFieldGUID,
int dataFieldPosition,
String dataFieldName,
String dataFieldType,
String dataFieldDescription,
List<String> dataFieldAliases,
int dataFieldSortOrder,
String defaultValue,
Map<String,String> additionalProperties,
String methodName)
Add a new data field and link it to an existing data field.
|
String |
addDataFieldToDiscoveryReport(String userId,
String externalSourceGUID,
String externalSourceName,
String annotationGUID,
int dataFieldPosition,
String dataFieldName,
String dataFieldType,
String dataFieldDescription,
List<String> dataFieldAliases,
int dataFieldSortOrder,
String defaultValue,
Map<String,String> additionalProperties,
String methodName)
Add a new data field to the Annotation store linked off of an annotation (typically SchemaAnalysisAnnotation).
|
void |
deleteDataField(String userId,
String externalSourceGUID,
String externalSourceName,
String dataFieldGUID,
String methodName)
Remove a data field from the metadata repositories.
|
B |
getDataField(String userId,
String dataFieldGUID,
String methodName)
Return a specific data field stored in the metadata repositories.
|
List<B> |
getNestedDataFields(String userId,
String parentDataFieldGUID,
int startingFrom,
int pageSize,
String methodName)
Return any data fields attached to this data field.
|
List<B> |
getNewDataFieldsForAsset(String userId,
String discoveryReportGUID,
int startingFrom,
int pageSize,
String methodName)
Return the current list of data fields for this discovery run.
|
List<B> |
getPreviousDataFieldsForAsset(String userId,
String discoveryReportGUID,
int startingFrom,
int pageSize,
String methodName)
Return the list of data fields from previous runs of the discovery service.
|
void |
updateDataField(String userId,
String externalSourceGUID,
String externalSourceName,
String dataFieldGUID,
boolean isMergeUpdate,
String dataFieldName,
String dataFieldType,
String dataFieldDescription,
List<String> dataFieldAliases,
int dataFieldSortOrder,
String defaultValue,
Map<String,String> additionalProperties,
String methodName)
Replace the current properties of a data field.
|
archiveBeanInRepository, 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 DataFieldHandler(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 List<B> getPreviousDataFieldsForAsset(String userId, String discoveryReportGUID, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - unique identifier of the discovery analysis reportstartingFrom - starting position in the list.pageSize - maximum number of elements that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving data fields from the annotation store.public List<B> getNewDataFieldsForAsset(String userId, String discoveryReportGUID, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userdiscoveryReportGUID - unique identifier of the discovery analysis reportstartingFrom - starting position in the list.pageSize - maximum number of elements that can be returnedmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving data fields from the annotation store.public List<B> getNestedDataFields(String userId, String parentDataFieldGUID, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userparentDataFieldGUID - parent data field identifierstartingFrom - starting position in the listpageSize - maximum number of annotations that can be returned.methodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem that occurred within the property server.public B getDataField(String userId, String dataFieldGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userdataFieldGUID - unique identifier of the data fieldmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem retrieving the data field from the annotation store.public String addDataFieldToDiscoveryReport(String userId, String externalSourceGUID, String externalSourceName, String annotationGUID, int dataFieldPosition, String dataFieldName, String dataFieldType, String dataFieldDescription, List<String> dataFieldAliases, int dataFieldSortOrder, String defaultValue, Map<String,String> additionalProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userexternalSourceGUID - unique identifier of the external source (null for local)externalSourceName - unique name of the external source (null for local)annotationGUID - unique identifier of the annotation that the data field is to be linked todataFieldPosition - the position of the data field in the schema (if there is ordering of fields)dataFieldName - the name of the data fielddataFieldType - the type of the data fielddataFieldDescription - a description of the data fielddataFieldAliases - any aliases associated with the data fielddataFieldSortOrder - any sort orderdefaultValue - default value of the fieldadditionalProperties - any additional propertiesmethodName - calling methodInvalidParameterException - the dataField is invalid or the annotation GUID points to an annotation
that can not be associated with a data field.UserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem adding the data field to the Annotation store.public String addDataFieldToDataField(String userId, String externalSourceGUID, String externalSourceName, String parentDataFieldGUID, int dataFieldPosition, String dataFieldName, String dataFieldType, String dataFieldDescription, List<String> dataFieldAliases, int dataFieldSortOrder, String defaultValue, Map<String,String> additionalProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userexternalSourceGUID - unique identifier of the external source (null for local)externalSourceName - unique name of the external source (null for local)parentDataFieldGUID - unique identifier of the data field that this new one is to be attached todataFieldPosition - the position of the data field in the schema (if there is ordering of fields)dataFieldName - the name of the data fielddataFieldType - the type of the data fielddataFieldDescription - a description of the data fielddataFieldAliases - any aliases associated with the data fielddataFieldSortOrder - any sort orderdefaultValue - default value of the fieldadditionalProperties - any additional propertiesmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem saving data fields in the annotation store.public void updateDataField(String userId, String externalSourceGUID, String externalSourceName, String dataFieldGUID, boolean isMergeUpdate, String dataFieldName, String dataFieldType, String dataFieldDescription, List<String> dataFieldAliases, int dataFieldSortOrder, String defaultValue, Map<String,String> additionalProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userexternalSourceGUID - unique identifier of the external source (null for local)externalSourceName - unique name of the external source (null for local)dataFieldGUID - unique identifier of the data fieldisMergeUpdate - flag to indicate whether all properties should be updated, or just the properties specified.dataFieldName - the name of the data fielddataFieldType - the type of the data fielddataFieldDescription - a description of the data fielddataFieldAliases - any aliases associated with the data fielddataFieldSortOrder - any sort orderdefaultValue - default value of the fieldadditionalProperties - any additional propertiesmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem updating the data field in the annotation store.public void deleteDataField(String userId, String externalSourceGUID, String externalSourceName, String dataFieldGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling userexternalSourceGUID - unique identifier of the external source (null for local)externalSourceName - unique name of the external source (null for local)dataFieldGUID - unique identifier of the data fieldmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user id not authorized to issue this requestPropertyServerException - there was a problem deleting the data field from the annotation store.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.