Class SchemaAttributeHandler<SCHEMA_ATTRIBUTE,SCHEMA_TYPE>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPITemplateHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.SchemaAttributeHandler<SCHEMA_ATTRIBUTE,SCHEMA_TYPE>
SchemaAttributeHandler manages Schema Attribute objects. It runs server-side in
the OMAG Server Platform and retrieves SchemaElement entities through the OMRSRepositoryConnector.
This handler does not support effectivity dates but probably should.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
OpenMetadataAPIGenericHandler.AnchorIdentifiers
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
assetActionDescription, auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, qualifiedNamePropertyNamesList, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
Constructor Summary
ConstructorDescriptionSchemaAttributeHandler
(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 handler with information needed to work with B objects. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearQueryTargetRelationship
(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryTargetGUID, String queryTargetGUIDParameterName, String methodName) Update the query properties for a query relationship for a derived schema element.void
clearSchemaElementRelationship
(String userId, String externalSourceGUID, String externalSourceName, String endOneGUID, String endTwoGUID, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Remove a relationship between two schema elements.createNestedSchemaAttribute
(String userId, String externalSourceGUID, String externalSourceName, String parentElementGUID, String parentElementGUIDParameterName, String qualifiedName, String qualifiedNameParameterName, String displayName, String description, String externalSchemaTypeGUID, String dataType, String defaultValue, String fixedValue, String validValuesSetGUID, String formula, boolean isDeprecated, int elementPosition, int minCardinality, int maxCardinality, boolean allowsDuplicateValues, boolean orderedValues, String defaultValueOverride, int sortOrder, int minimumLength, int length, int significantDigits, boolean isNullable, String nativeJavaClass, List<String> aliases, Map<String, String> additionalProperties, String typeName, Map<String, Object> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Create a new schema attribute with its type attached that is nested inside a complex schema type or a schema attribute.createNestedSchemaAttribute
(String userId, String externalSourceGUID, String externalSourceName, String parentElementGUID, String parentElementGUIDParameterName, String parentElementTypeName, String parentAttributeRelationshipTypeGUID, String parentAttributeRelationshipTypeName, String qualifiedName, String qualifiedNameParameterName, SchemaAttributeBuilder schemaAttributeBuilder, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Create a new schema attribute with its type attached.createNestedSchemaAttribute
(String userId, String externalSourceGUID, String externalSourceName, String parentElementGUID, String parentElementGUIDParameterName, String qualifiedName, String qualifiedNameParameterName, SchemaAttributeBuilder schemaAttributeBuilder, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Create a new schema attribute with its type attached.createSchemaAttributeFromTemplate
(String userId, String externalSourceGUID, String externalSourceName, String parentElementGUID, String parentElementGUIDParameterName, String templateGUID, String qualifiedName, String displayName, String description, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Create a new metadata element to represent a schema attribute using an existing metadata element as a template.findSchemaAttributes
(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, String requiredClassificationName, String omittedClassificationName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Retrieve the list of database table metadata elements that contain the search string.getAttachedSchemaAttributes
(String userId, String parentElementGUID, String parentElementGUIDParameterName, String schemaAttributeTypeName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Returns a list of schema attributes that are linked to a parent schema element.getAttachedSchemaAttributes
(String userId, String parentElementGUID, String parentElementGUIDParameterName, String schemaAttributeTypeName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Returns a list of schema attributes that are linked to a parent schema element.getNestedSchemaAttributes
(String userId, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Returns a list of schema attributes that are linked to a schema attribute via the NestedSchemaAttribute relationship.getNestedSchemaAttributes
(String userId, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, String schemaAttributeTypeName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Returns a list of schema attributes that are linked to a schema attribute via the NestedSchemaAttribute relationship.getSchemaAttribute
(String userId, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, String expectedTypeName, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Retrieve a specific schema attribute by GUID.getSchemaAttributesByName
(String userId, String typeGUID, String typeName, String name, String requiredClassificationName, String omittedClassificationName, int elementStart, int maxElements, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Returns a list of specifically typed schema attributes with matching names - either display names or qualified namesgetSchemaAttributesByName
(String userId, String typeGUID, String typeName, String name, String requiredClassificationName, String omittedClassificationName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Returns a list of specifically typed schema attributes with matching names - either display names or qualified namesgetSchemaAttributesForComplexSchemaType
(String userId, String schemaTypeGUID, String guidParameterName, String requiredClassificationName, String omittedClassificationName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Returns a list of schema attributes that are linked to a ComplexSchemaType via the AttributeForSchema relationship.getSchemaAttributesForComplexSchemaType
(String userId, String schemaTypeGUID, String schemaTypeGUIDParameterName, String schemaAttributeTypeName, String requiredClassificationName, String omittedClassificationName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Returns a list of schema attributes that are linked to a ComplexSchemaType via the AttributeForSchema relationship.void
removeSchemaTypes
(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Remove any links to schema typesvoid
setupQueryTargetRelationship
(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryId, String query, String queryTargetGUID, String queryTargetGUIDParameterName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Create a new query relationship for a derived schema element.void
setupSchemaElementRelationship
(String userId, String externalSourceGUID, String externalSourceName, String endOneGUID, String endTwoGUID, String relationshipTypeName, Map<String, Object> properties, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Create a relationship between two schema elements.void
updateQueryTargetRelationship
(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryId, String query, String queryTargetGUID, String queryTargetGUIDParameterName, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update the query properties for a query relationship for a derived schema element.void
updateSchemaAttribute
(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, InstanceProperties instanceProperties, boolean isMergeUpdate, Date effectiveTime, String methodName) Update a schema attributevoid
updateSchemaAttribute
(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, String qualifiedName, String qualifiedNameParameterName, String displayName, String description, String externalSchemaTypeGUID, String dataType, String defaultValue, String fixedValue, String validValuesSetGUID, String formula, boolean isDeprecated, int elementPosition, int minCardinality, int maxCardinality, boolean allowsDuplicateValues, boolean orderedValues, String defaultValueOverride, int sortOrder, int minimumLength, int length, int significantDigits, boolean isNullable, String nativeJavaClass, List<String> aliases, Map<String, String> additionalProperties, String typeName, Map<String, Object> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update the properties in a schema attribute.void
updateSchemaAttribute
(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, String qualifiedName, String qualifiedNameParameterName, SchemaAttributeBuilder schemaAttributeBuilder, String typeName, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update the properties in a schema attribute.void
updateSchemaAttribute
(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, InstanceProperties instanceProperties, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update a schema attributevoid
updateSchemaAttribute
(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, InstanceProperties instanceProperties, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update a schema attributeMethods inherited from class org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler
addAssignmentScope, addDataFieldValuesClassification, addGovernanceActionClassification, addGovernanceDefinitionScope, addGovernanceExpectationsClassification, addGovernanceMeasurementsClassification, addGovernedBy, addImplementedBy, addMoreInformation, addOwner, addRetentionClassification, addSecurityTags, addStakeholder, addSubjectAreaClassification, addTemplateClassification, clearBusinessSignificant, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getAssignedActors, getAssignmentScope, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getCatalogTemplateList, getCollectionMembers, getCommissionedByStakeholder, getDataFieldValuesClassifiedElement, getDescriptiveElements, getElementsSourceFrom, getEntityByUniqueQualifiedName, getGovernanceActionClassifiedElements, getGovernanceDefinitionScope, getGovernedElements, getMeanings, getMoreInformation, getMoreInformation, getOwnersElements, getReferenceValueAssignees, getResourceList, getRetentionClassifiedElements, getSecurityTagsClassifiedElements, getSemanticAssignments, getSourceElements, getStakeholders, getSubjectAreaMembers, getSubjectAreaMembers, getSupportedByResource, getSupportedByTemplate, getValidValueConsumers, getVendorProperties, linkConsolidatedDuplicate, linkElementsAsPeerDuplicates, removeAssignmentScope, removeCatalogTemplate, removeDataFieldValuesClassification, removeGovernanceActionClassification, removeGovernanceDefinitionScope, removeGovernanceExpectationsClassification, removeGovernanceMeasurementsClassification, removeGovernedBy, removeImplementedBy, removeMoreInformation, removeOwner, removeResourceListMember, removeRetentionClassification, removeSecurityTags, removeSemanticAssignment, removeStakeholder, removeSubjectAreaClassification, removeTemplateClassification, saveCatalogTemplate, saveResourceListMember, saveSemanticAssignment, saveSemanticAssignment, saveSemanticAssignments, setBusinessSignificant, setVendorProperties, unlinkElementsAsPeerDuplicates
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPITemplateHandler
createBeanFromTemplate, createBeanFromTemplate
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorGUIDToBuilder, addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanInRepository, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getAttachmentsForType, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanHistory, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getDomainName, getDomainName, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getSpecification, getSupplementaryProperties, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, uncheckedLinkElementToElement, undoBeanUpdateInRepository, undoBeanUpdateInRepository, undoBeanUpdateInRepository, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
getConverter, getElementStub, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getSupportedZones, getTypeDefByName, setSecurityVerifier
-
Constructor Details
-
SchemaAttributeHandler
public 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 handler with information needed to work with B objects.- Parameters:
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.
-
-
Method Details
-
createSchemaAttributeFromTemplate
public String createSchemaAttributeFromTemplate(String userId, String externalSourceGUID, String externalSourceName, String parentElementGUID, String parentElementGUIDParameterName, String templateGUID, String qualifiedName, String displayName, String description, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a schema attribute using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new schema attribute.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerparentElementGUID
- element to connect this schema attribute toparentElementGUIDParameterName
- parameter supplying parentElementGUIDtemplateGUID
- unique identifier of the metadata element to copyqualifiedName
- unique name for the schema attribute - used in other configurationdisplayName
- short display name for the schema attributedescription
- description of the schema attributeforLineage
- 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 for (null for any time, new Date() for now)methodName
- calling method- Returns:
- unique identifier of the new metadata element
- 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)
-
createNestedSchemaAttribute
public String createNestedSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String parentElementGUID, String parentElementGUIDParameterName, String qualifiedName, String qualifiedNameParameterName, SchemaAttributeBuilder schemaAttributeBuilder, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new schema attribute with its type attached.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerparentElementGUID
- unique identifier of the metadata element to connect the new schema attribute toparentElementGUIDParameterName
- parameter name supplying parentElementGUIDqualifiedName
- unique identifier for this schema typequalifiedNameParameterName
- name of parameter supplying the qualified nameschemaAttributeBuilder
- builder containing the properties of the schema typeeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)forLineage
- 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 for (null for any time, new Date() for now)methodName
- calling method- Returns:
- unique identifier of the new schema attribute already linked to its parent
- 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)
-
createNestedSchemaAttribute
public String createNestedSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String parentElementGUID, String parentElementGUIDParameterName, String qualifiedName, String qualifiedNameParameterName, String displayName, String description, String externalSchemaTypeGUID, String dataType, String defaultValue, String fixedValue, String validValuesSetGUID, String formula, boolean isDeprecated, int elementPosition, int minCardinality, int maxCardinality, boolean allowsDuplicateValues, boolean orderedValues, String defaultValueOverride, int sortOrder, int minimumLength, int length, int significantDigits, boolean isNullable, String nativeJavaClass, List<String> aliases, Map<String, String> additionalProperties, String typeName, Map<String, throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionObject> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Create a new schema attribute with its type attached that is nested inside a complex schema type or a schema attribute.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerparentElementGUID
- unique identifier of the metadata element to connect the new schema attribute toparentElementGUIDParameterName
- parameter name supplying parentElementGUIDqualifiedName
- unique identifier for this schema typequalifiedNameParameterName
- name of parameter supplying the qualified namedisplayName
- the stored display name property for the attributedescription
- the stored description property associated with the attributeexternalSchemaTypeGUID
- unique identifier of a schema Type that provides the type. If null, a private schema type is useddataType
- data type name - for stored valuesdefaultValue
- string containing default value - for stored valuesfixedValue
- string containing a fixed value - for a literalvalidValuesSetGUID
- unique identifier of a valid value set that lists the valid values for this schemaformula
- String formula - for derived valuesisDeprecated
- is this table deprecated?elementPosition
- the position of this attribute in its parent type.minCardinality
- minimum number of repeating instances allowed for this attribute - typically 1maxCardinality
- the maximum number of repeating instances allowed for this column - typically 1allowsDuplicateValues
- whether the same value can be used by more than one instance of this attributeorderedValues
- whether the attribute instances are arranged in an ordersortOrder
- the order that the attribute instances are arranged in - if anyminimumLength
- the minimum length of the datalength
- the length of the data fieldsignificantDigits
- number of significant digits to the right of decimal pointisNullable
- whether the field is nullable or notnativeJavaClass
- equivalent Java class implementationdefaultValueOverride
- default value for this columnaliases
- a list of alternative names for the attributeadditionalProperties
- any arbitrary properties not part of the type systemtypeName
- name of the type that is a subtype of DeployedDatabaseSchema - or null to create standard typeextendedProperties
- properties from any subtypeeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)forLineage
- 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 for (null for any time, new Date() for now)methodName
- calling method- Returns:
- unique identifier of the new schema attribute already linked to its parent
- 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)
-
createNestedSchemaAttribute
public String createNestedSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String parentElementGUID, String parentElementGUIDParameterName, String parentElementTypeName, String parentAttributeRelationshipTypeGUID, String parentAttributeRelationshipTypeName, String qualifiedName, String qualifiedNameParameterName, SchemaAttributeBuilder schemaAttributeBuilder, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new schema attribute with its type attached.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerparentElementGUID
- unique identifier of the metadata element to connect the new schema attribute toparentElementGUIDParameterName
- parameter name supplying parentElementGUIDparentElementTypeName
- 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 typeforLineage
- 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 deduplicateeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- unique identifier of the new schema attribute already linked to its parent
- 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)
-
getSchemaAttributesForComplexSchemaType
public List<SCHEMA_ATTRIBUTE> getSchemaAttributesForComplexSchemaType(String userId, String schemaTypeGUID, String guidParameterName, String requiredClassificationName, String omittedClassificationName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Returns a list of schema attributes that are linked to a ComplexSchemaType via the AttributeForSchema relationship. It validates the unique identifier of the complex schema type, and the visibility/security of any attached asset using the supported zones for this component. Then begins to extract the schema attributes. Exceptions occur if a schema attribute does not have a type.- Parameters:
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.forLineage
- 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 for (null for any time, new Date() for now)methodName
- calling method- Returns:
- a schema attributes response
- 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.
-
getSchemaAttributesForComplexSchemaType
public List<SCHEMA_ATTRIBUTE> getSchemaAttributesForComplexSchemaType(String userId, String schemaTypeGUID, String schemaTypeGUIDParameterName, String schemaAttributeTypeName, String requiredClassificationName, String omittedClassificationName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Returns a list of schema attributes that are linked to a ComplexSchemaType via the AttributeForSchema relationship. It validates the unique identifier of the complex schema type, and the visibility/security of any attached asset using the supplied supported zones (needed for the calls from the OCF Metadata REST Services). Then it begins to extract the schema attributes. Exceptions occur if a schema attribute does not have a type.- Parameters:
userId
- String userId of user making request.schemaTypeGUID
- String unique id for containing schema type.schemaTypeGUIDParameterName
- String name of the parameter supplying the guid.schemaAttributeTypeName
- unique name of associated schema attribute typerequiredClassificationName
- 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.forLineage
- 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 for (null for any time, new Date() for now)methodName
- calling method- Returns:
- a schema attributes response
- 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.
-
getAttachedSchemaAttributes
public List<SCHEMA_ATTRIBUTE> getAttachedSchemaAttributes(String userId, String parentElementGUID, String parentElementGUIDParameterName, String schemaAttributeTypeName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Returns a list of schema attributes that are linked to a parent schema element. This may be a complex schema type or a schema attribute. It is necessary to find out the type of the parent schema element to be sure which type of retrieval is needed.- Parameters:
userId
- String userId of user making request.parentElementGUID
- String unique id for parent schema element.parentElementGUIDParameterName
- String name of the parameter supplying the guid.schemaAttributeTypeName
- subtype of schema attribute or nullstartFrom
- int starting position for first returned element.pageSize
- int maximum number of elements to return on the call.forLineage
- 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 for (null for any time, new Date() for now)methodName
- calling method- Returns:
- a schema attributes response
- 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.
-
getAttachedSchemaAttributes
public List<SCHEMA_ATTRIBUTE> getAttachedSchemaAttributes(String userId, String parentElementGUID, String parentElementGUIDParameterName, String schemaAttributeTypeName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Returns a list of schema attributes that are linked to a parent schema element. This may be a complex schema type or a schema attribute. It is necessary to find out the type of the parent schema element to be sure which type of retrieval is needed.- Parameters:
userId
- String userId of user making request.parentElementGUID
- String unique id for parent schema element.parentElementGUIDParameterName
- String name of the parameter supplying the guid.schemaAttributeTypeName
- subtype of schema attribute or nullserviceSupportedZones
- 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.forLineage
- 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 for (null for any time, new Date() for now)methodName
- calling method- Returns:
- a schema attributes response
- 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.
-
getNestedSchemaAttributes
public List<SCHEMA_ATTRIBUTE> getNestedSchemaAttributes(String userId, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Returns a list of schema attributes that are linked to a schema attribute via the NestedSchemaAttribute relationship. It validates the unique identifier of the parent schema attribute, and the visibility/security of any attached asset using the supplied supported zones (needed for the calls from the OCF Metadata REST Services). Then it begins to extract the schema attributes. Exceptions occur if a schema attribute does not have a type.- Parameters:
userId
- String userId of user making request.schemaAttributeGUID
- String unique id for containing schema attribute.schemaAttributeGUIDParameterName
- String name of the parameter supplying the guid.startFrom
- int starting position for first returned element.pageSize
- int maximum number of elements to return on the call.forLineage
- 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 for (null for any time, new Date() for now)methodName
- calling method- Returns:
- a schema attributes response
- 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.
-
getNestedSchemaAttributes
public List<SCHEMA_ATTRIBUTE> getNestedSchemaAttributes(String userId, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, String schemaAttributeTypeName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Returns a list of schema attributes that are linked to a schema attribute via the NestedSchemaAttribute relationship. It validates the unique identifier of the parent schema attribute, and the visibility/security of any attached asset using the supplied supported zones (needed for the calls from the OCF Metadata REST Services). Then it begins to extract the schema attributes. Exceptions occur if a schema attribute does not have a type.- Parameters:
userId
- String userId of user making request.schemaAttributeGUID
- String unique id for containing schema attribute.schemaAttributeGUIDParameterName
- String name of the parameter supplying the guid.schemaAttributeTypeName
- subtype of schema attribute (or null)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.forLineage
- 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 for (null for any time, new Date() for now)methodName
- calling method- Returns:
- a schema attributes response
- 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.
-
getSchemaAttribute
public SCHEMA_ATTRIBUTE getSchemaAttribute(String userId, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, String expectedTypeName, String requiredClassificationName, String omittedClassificationName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Retrieve a specific schema attribute by GUID. It is only returned if the guid is known, the entity is of the correct type, the classifications are as expected and any asset it is connected to is both visible via the zones setting and the security verifier allows the update.- Parameters:
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.forLineage
- 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 for (null for any time, new Date() for now)methodName
- calling method- Returns:
- guid of new schema
- Throws:
InvalidParameterException
- the guid or bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
getSchemaAttributesByName
public List<SCHEMA_ATTRIBUTE> getSchemaAttributesByName(String userId, String typeGUID, String typeName, String name, String requiredClassificationName, String omittedClassificationName, int elementStart, int maxElements, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Returns a list of specifically typed schema attributes with matching names - either display names or qualified names- Parameters:
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.forLineage
- 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 for (null for any time, new Date() for now)methodName
- calling method- Returns:
- a schema attributes response
- 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.
-
getSchemaAttributesByName
public List<SCHEMA_ATTRIBUTE> getSchemaAttributesByName(String userId, String typeGUID, String typeName, String name, String requiredClassificationName, String omittedClassificationName, List<String> serviceSupportedZones, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Returns a list of specifically typed schema attributes with matching names - either display names or qualified names- Parameters:
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 callforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- a schema attributes response
- 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.
-
findSchemaAttributes
public List<SCHEMA_ATTRIBUTE> findSchemaAttributes(String userId, String searchString, String searchStringParameterName, String resultTypeGUID, String resultTypeName, String requiredClassificationName, String omittedClassificationName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of database table metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
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.forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- list of matching schema attribute elements
- 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)
-
updateSchemaAttribute
public void updateSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, String qualifiedName, String qualifiedNameParameterName, String displayName, String description, String externalSchemaTypeGUID, String dataType, String defaultValue, String fixedValue, String validValuesSetGUID, String formula, boolean isDeprecated, int elementPosition, int minCardinality, int maxCardinality, boolean allowsDuplicateValues, boolean orderedValues, String defaultValueOverride, int sortOrder, int minimumLength, int length, int significantDigits, boolean isNullable, String nativeJavaClass, List<String> aliases, Map<String, String> additionalProperties, String typeName, Map<String, throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionObject> extendedProperties, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Update the properties in a schema attribute.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerschemaAttributeGUID
- unique identifier of the metadata element to connect the new schema attribute toschemaAttributeGUIDParameterName
- parameter name supplying schemaAttributeGUIDqualifiedName
- unique identifier for this schema typequalifiedNameParameterName
- name of parameter supplying the qualified namedisplayName
- the stored display name property for the database tabledescription
- the stored description property associated with the database tableexternalSchemaTypeGUID
- unique identifier of an external schema identifierdataType
- data type name - for stored valuesdefaultValue
- string containing default value - for stored valuesfixedValue
- string containing fixed value - for literalsvalidValuesSetGUID
- unique identifier for a valid values set to supportformula
- String formula - for derived valuesisDeprecated
- is this table deprecated?elementPosition
- the position of this column in its parent table.minCardinality
- minimum number of repeating instances allowed for this column - typically 1maxCardinality
- the maximum number of repeating instances allowed for this column - typically 1allowsDuplicateValues
- whether the same value can be used by more than one instance of this attributeorderedValues
- whether the attribute instances are arranged in an ordersortOrder
- the order that the attribute instances are arranged in - if anyminimumLength
- the minimum length of the datalength
- the length of the data fieldsignificantDigits
- number of significant digits to the right of decimal pointisNullable
- whether the field is nullable or notnativeJavaClass
- equivalent Java class implementationdefaultValueOverride
- default value for this columnaliases
- a list of alternative names for the attributeadditionalProperties
- any arbitrary properties not part of the type systemtypeName
- name of the type of this element - which defines the valid extended propertiesextendedProperties
- properties from any subtypeeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)isMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?forLineage
- 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 for (null for any time, new Date() for now)methodName
- 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)
-
updateSchemaAttribute
public void updateSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, String qualifiedName, String qualifiedNameParameterName, SchemaAttributeBuilder schemaAttributeBuilder, String typeName, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the properties in a schema attribute.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerschemaAttributeGUID
- unique identifier of the metadata element to connect the new schema attribute toschemaAttributeGUIDParameterName
- parameter name supplying schemaAttributeGUIDqualifiedName
- unique identifier for this schema typequalifiedNameParameterName
- name of parameter supplying the qualified nameschemaAttributeBuilder
- schema attribute buildertypeName
- name of the type of this element - which defines the valid extended propertiesisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?forLineage
- 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 for (null for any time, new Date() for now)methodName
- 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)
-
updateSchemaAttribute
public void updateSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, InstanceProperties instanceProperties, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update a schema attribute- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerschemaAttributeGUID
- unique identifier of schema attributeinstanceProperties
- the schema attribute's propertiesforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- 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 invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-
updateSchemaAttribute
public void updateSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, InstanceProperties instanceProperties, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update a schema attribute- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerschemaAttributeGUID
- unique identifier of schema attributeschemaAttributeGUIDParameterName
- parameter supplying schemaAttributeGUIDinstanceProperties
- the schema attribute's propertiesisMergeUpdate
- should the properties be merged with existing properties of replace them?forLineage
- 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 for (null for any time, new Date() for now)methodName
- 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)
-
updateSchemaAttribute
public void updateSchemaAttribute(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, InstanceProperties instanceProperties, boolean isMergeUpdate, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update a schema attribute- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerschemaAttributeGUID
- unique identifier of schema attributeschemaAttributeGUIDParameterName
- parameter supplying schemaAttributeGUIDforLineage
- 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
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)instanceProperties
- the schema attribute's propertiesisMergeUpdate
- should the properties be merged with existing properties of replace them?methodName
- 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)
-
removeSchemaTypes
public void removeSchemaTypes(String userId, String externalSourceGUID, String externalSourceName, String schemaAttributeGUID, String schemaAttributeGUIDParameterName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Remove any links to schema types- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the callerexternalSourceName
- unique name of software capability representing the callerschemaAttributeGUID
- unique identifier of schema attributeschemaAttributeGUIDParameterName
- parameter supplying schemaAttributeGUIDforLineage
- 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 for (null for any time, new Date() for now)methodName
- 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)
-
setupQueryTargetRelationship
public void setupQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryId, String query, String queryTargetGUID, String queryTargetGUIDParameterName, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new query relationship for a derived schema element.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the DBMSexternalSourceName
- unique name of software capability representing the DBMSschemaElementGUID
- unique identifier of the schema element that this query supportsschemaElementGUIDParameterName
- parameter name for schemaElementGUIDschemaElementTypeName
- name of type for schema elementqueryId
- identifier for the query - used as a placeholder in the formula (stored in the column's CalculatedValue classification)query
- the query that is made on the targetGUIDqueryTargetGUID
- the unique identifier of the target (this is a schema element - typically a schema attribute)queryTargetGUIDParameterName
- parameter supplying queryTargetGUIDeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)forLineage
- 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 for (null for any time, new Date() for now)methodName
- 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)
-
updateQueryTargetRelationship
public void updateQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryId, String query, String queryTargetGUID, String queryTargetGUIDParameterName, Date effectiveFrom, Date effectiveTo, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the query properties for a query relationship for a derived schema element.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the DBMSexternalSourceName
- unique name of software capability representing the DBMSschemaElementGUID
- unique identifier of the schema element that this query supportsschemaElementGUIDParameterName
- parameter name for schemaElementGUIDschemaElementTypeName
- name of type for schema elementqueryId
- identifier for the query - used as a placeholder in the formula (stored in the column's CalculatedValue classification)query
- the query that is made on the targetGUIDqueryTargetGUID
- the unique identifier of the target (this is a schema element - typically a schema attribute)queryTargetGUIDParameterName
- parameter supplying queryTargetGUIDeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)isMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?forLineage
- 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 for (null for any time, new Date() for now)methodName
- 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)
-
clearQueryTargetRelationship
public void clearQueryTargetRelationship(String userId, String externalSourceGUID, String externalSourceName, String schemaElementGUID, String schemaElementGUIDParameterName, String schemaElementTypeName, String queryTargetGUID, String queryTargetGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the query properties for a query relationship for a derived schema element.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software capability representing the DBMSexternalSourceName
- unique name of software capability representing the DBMSschemaElementGUID
- unique identifier of the schema element that this query supportsschemaElementGUIDParameterName
- parameter name for schemaElementGUIDschemaElementTypeName
- name of type for schema elementqueryTargetGUID
- the unique identifier of the target (this is a schema element - typically a schema attribute)queryTargetGUIDParameterName
- parameter supplying queryTargetGUIDmethodName
- 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)
-
setupSchemaElementRelationship
public void setupSchemaElementRelationship(String userId, String externalSourceGUID, String externalSourceName, String endOneGUID, String endTwoGUID, String relationshipTypeName, Map<String, Object> properties, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionCreate a relationship between two schema elements. The name of the desired relationship, and any properties (including effectivity dates) are passed on the API.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerendOneGUID
- unique identifier of the schema element at end one of the relationshipendTwoGUID
- unique identifier of the schema element at end two of the relationshiprelationshipTypeName
- type of the relationship to createproperties
- properties for the new relationshipeffectiveFrom
- the date when this element is active - null for active noweffectiveTo
- the date when this element becomes inactive - null for active until deletedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- when should the elements be effected for - null is anytime; new Date() is nowmethodName
- 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)
-
clearSchemaElementRelationship
public void clearSchemaElementRelationship(String userId, String externalSourceGUID, String externalSourceName, String endOneGUID, String endTwoGUID, String relationshipTypeName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove a relationship between two schema elements. The name of the desired relationship is passed on the API.- Parameters:
userId
- calling userexternalSourceGUID
- unique identifier of software server capability representing the callerexternalSourceName
- unique name of software server capability representing the callerendOneGUID
- unique identifier of the schema element at end one of the relationshipendTwoGUID
- unique identifier of the schema element at end two of the relationshiprelationshipTypeName
- type of the relationship to createforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?effectiveTime
- when should the elements be effected for - null is anytime; new Date() is nowmethodName
- 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)
-