public class SchemaExchangeService extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
clearColumnAsPrimaryKey(String schemaAttributeGUID,
String schemaAttributeExternalIdentifier)
Remove the primary key designation from the schema attribute.
|
void |
clearForeignKeyRelationship(String primaryKeyGUID,
String foreignKeyGUID)
Remove the foreign key relationship between two schema elements.
|
void |
clearSchemaElementAsCalculatedValue(String schemaElementGUID,
String schemaElementExternalIdentifier)
Remove the calculated value designation from the schema element.
|
void |
clearSchemaTypeParent(String schemaTypeGUID,
String parentElementGUID,
String parentElementTypeName)
Remove the relationship between a schema type and its parent data asset, process or port.
|
String |
createSchemaAttribute(boolean assetManagerIsHome,
String schemaElementGUID,
String schemaAttributeExternalIdentifier,
String schemaAttributeExternalIdentifierName,
String schemaAttributeExternalIdentifierUsage,
KeyPattern schemaAttributeExternalIdentifierKeyPattern,
Map<String,String> mappingProperties,
SchemaAttributeProperties schemaAttributeProperties)
Create a new metadata element to represent a schema attribute.
|
String |
createSchemaAttributeFromTemplate(boolean assetManagerIsHome,
String schemaElementGUID,
String templateGUID,
String schemaAttributeExternalIdentifier,
String schemaAttributeExternalIdentifierName,
String schemaAttributeExternalIdentifierUsage,
KeyPattern schemaAttributeExternalIdentifierKeyPattern,
Map<String,String> mappingProperties,
TemplateProperties templateProperties)
Create a new metadata element to represent a schema attribute using an existing metadata element as a template.
|
String |
createSchemaType(boolean assetManagerIsHome,
String schemaTypeExternalIdentifier,
String schemaTypeExternalIdentifierName,
String schemaTypeExternalIdentifierUsage,
KeyPattern schemaTypeExternalIdentifierKeyPattern,
Map<String,String> mappingProperties,
SchemaTypeProperties schemaTypeProperties)
Create a new metadata element to represent a schema type.
|
String |
createSchemaTypeFromTemplate(boolean assetManagerIsHome,
String templateGUID,
String schemaTypeExternalIdentifier,
String schemaTypeExternalIdentifierName,
String schemaTypeExternalIdentifierUsage,
KeyPattern schemaTypeExternalIdentifierKeyPattern,
Map<String,String> mappingProperties,
TemplateProperties templateProperties)
Create a new metadata element to represent a schema type using an existing metadata element as a template.
|
List<SchemaAttributeElement> |
findSchemaAttributes(String searchString,
int startFrom,
int pageSize)
Retrieve the list of schema attribute metadata elements that contain the search string.
|
List<SchemaTypeElement> |
findSchemaType(String searchString,
int startFrom,
int pageSize)
Retrieve the list of schema type metadata elements that contain the search string.
|
List<SchemaAttributeElement> |
getAttributesForSchemaType(String schemaTypeGUID,
int startFrom,
int pageSize)
Retrieve the list of schema attributes associated with a schemaType.
|
SchemaAttributeElement |
getSchemaAttributeByGUID(String schemaAttributeGUID)
Retrieve the schema attribute metadata element with the supplied unique identifier.
|
List<SchemaAttributeElement> |
getSchemaAttributesByName(String name,
int startFrom,
int pageSize)
Retrieve the list of schema attribute metadata elements with a matching qualified or display name.
|
SchemaTypeElement |
getSchemaTypeByGUID(String schemaTypeGUID)
Retrieve the schema type metadata element with the supplied unique identifier.
|
List<SchemaTypeElement> |
getSchemaTypeByName(String name,
int startFrom,
int pageSize)
Retrieve the list of schema type metadata elements with a matching qualified or display name.
|
SchemaTypeElement |
getSchemaTypeForElement(String parentElementGUID,
String parentElementTypeName)
Return the schema type associated with a specific open metadata element (data asset, process or port).
|
ElementHeader |
getSchemaTypeParent(String schemaTypeGUID)
Retrieve the header of the metadata element connected to a schema type.
|
void |
removeSchemaAttribute(String schemaAttributeGUID,
String schemaAttributeExternalIdentifier)
Remove the metadata element representing a schema attribute.
|
void |
removeSchemaType(String schemaTypeGUID,
String schemaTypeExternalIdentifier)
Remove the metadata element representing a schema type.
|
void |
setSchemaElementAsCalculatedValue(boolean assetManagerIsHome,
String schemaElementGUID,
String schemaElementExternalIdentifier,
String formula)
Classify the schema type (or attribute if type is embedded) to indicate that it is a calculated value.
|
void |
setupColumnAsPrimaryKey(String userId,
String assetManagerGUID,
String assetManagerName,
boolean assetManagerIsHome,
String schemaAttributeGUID,
String schemaAttributeExternalIdentifier,
String primaryKeyName,
KeyPattern primaryKeyPattern)
Classify the column schema attribute to indicate that it describes a primary key.
|
void |
setupForeignKeyRelationship(boolean assetManagerIsHome,
String primaryKeyGUID,
String foreignKeyGUID,
ForeignKeyProperties foreignKeyProperties)
Link two schema attributes together to show a foreign key relationship.
|
void |
setupSchemaTypeParent(boolean assetManagerIsHome,
String schemaTypeGUID,
String parentElementGUID,
String parentElementTypeName)
Connect a schema type to a data asset, process or port.
|
void |
updateForeignKeyRelationship(String userId,
String assetManagerGUID,
String assetManagerName,
String primaryKeyGUID,
String foreignKeyGUID,
ForeignKeyProperties foreignKeyProperties)
Update the relationship properties for the query target.
|
void |
updateSchemaAttribute(String schemaAttributeGUID,
String schemaAttributeExternalIdentifier,
boolean isMergeUpdate,
SchemaAttributeProperties schemaAttributeProperties)
Update the properties of the metadata element representing a schema attribute.
|
void |
updateSchemaType(String schemaTypeGUID,
String schemaTypeExternalIdentifier,
boolean isMergeUpdate,
SchemaTypeProperties schemaTypeProperties)
Update the metadata element representing a schema type.
|
public String createSchemaType(boolean assetManagerIsHome, String schemaTypeExternalIdentifier, String schemaTypeExternalIdentifierName, String schemaTypeExternalIdentifierUsage, KeyPattern schemaTypeExternalIdentifierKeyPattern, Map<String,String> mappingProperties, SchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
assetManagerIsHome - ensure that only the asset manager can update this schema elementschemaTypeExternalIdentifier - unique identifier of the schema type in the external asset managerschemaTypeExternalIdentifierName - name of property for the external identifier in the external asset managerschemaTypeExternalIdentifierUsage - optional usage description for the external identifier when calling the external asset managerschemaTypeExternalIdentifierKeyPattern - pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties - additional properties to help with the mapping of the elements in the external asset manager and open metadataschemaTypeProperties - properties about the schema type to storeInvalidParameterException - 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 String createSchemaTypeFromTemplate(boolean assetManagerIsHome, String templateGUID, String schemaTypeExternalIdentifier, String schemaTypeExternalIdentifierName, String schemaTypeExternalIdentifierUsage, KeyPattern schemaTypeExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
assetManagerIsHome - ensure that only the asset manager can update this schema elementtemplateGUID - unique identifier of the metadata element to copyschemaTypeExternalIdentifier - unique identifier of the schema type in the external asset managerschemaTypeExternalIdentifierName - name of property for the external identifier in the external asset managerschemaTypeExternalIdentifierUsage - optional usage description for the external identifier when calling the external asset managerschemaTypeExternalIdentifierKeyPattern - pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties - additional properties to help with the mapping of the elements in the
external asset manager and open metadatatemplateProperties - properties that override the templateInvalidParameterException - 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 schemaTypeGUID, String schemaTypeExternalIdentifier, boolean isMergeUpdate, SchemaTypeProperties schemaTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeGUID - unique identifier of the metadata element to updateschemaTypeExternalIdentifier - unique identifier of the schema type in the external asset managerisMergeUpdate - should the new properties be merged with existing properties (true) or completely replace them (false)?schemaTypeProperties - new properties for the metadata elementInvalidParameterException - 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 setupSchemaTypeParent(boolean assetManagerIsHome,
String schemaTypeGUID,
String parentElementGUID,
String parentElementTypeName)
throws InvalidParameterException,
UserNotAuthorizedException,
PropertyServerException
assetManagerIsHome - ensure that only the asset manager can update this relationshipschemaTypeGUID - unique identifier of the schema type to connectparentElementGUID - unique identifier of the open metadata element that this schema type is to be connected toparentElementTypeName - unique type name of the open metadata element that this schema type is to be connected toInvalidParameterException - 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 clearSchemaTypeParent(String schemaTypeGUID, String parentElementGUID, String parentElementTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeGUID - unique identifier of the schema type to connectparentElementGUID - unique identifier of the open metadata element that this schema type is to be connected toparentElementTypeName - unique type name of the open metadata element that this schema type is to be connected toInvalidParameterException - 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 removeSchemaType(String schemaTypeGUID, String schemaTypeExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeGUID - unique identifier of the metadata element to removeschemaTypeExternalIdentifier - unique identifier of the schema type in the external asset managerInvalidParameterException - 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<SchemaTypeElement> findSchemaType(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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 SchemaTypeElement getSchemaTypeForElement(String parentElementGUID, String parentElementTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
parentElementGUID - unique identifier of the open metadata element that this schema type is to be connected toparentElementTypeName - unique type name of the open metadata element that this schema type is to be connected toInvalidParameterException - 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<SchemaTypeElement> getSchemaTypeByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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 SchemaTypeElement getSchemaTypeByGUID(String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeGUID - unique identifier of the requested metadata elementInvalidParameterException - 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 ElementHeader getSchemaTypeParent(String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeGUID - unique identifier of the requested metadata elementInvalidParameterException - 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 String createSchemaAttribute(boolean assetManagerIsHome, String schemaElementGUID, String schemaAttributeExternalIdentifier, String schemaAttributeExternalIdentifierName, String schemaAttributeExternalIdentifierUsage, KeyPattern schemaAttributeExternalIdentifierKeyPattern, Map<String,String> mappingProperties, SchemaAttributeProperties schemaAttributeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
assetManagerIsHome - ensure that only the asset manager can update this schema attributeschemaElementGUID - unique identifier of the schemaType or Schema Attribute where the schema attribute is connected toschemaAttributeExternalIdentifier - unique identifier of the schema attribute in the external asset managerschemaAttributeExternalIdentifierName - name of property for the external identifier in the external asset managerschemaAttributeExternalIdentifierUsage - optional usage description for the external identifier when calling the external asset managerschemaAttributeExternalIdentifierKeyPattern - pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties - additional properties to help with the mapping of the elements in the
external asset manager and open metadataschemaAttributeProperties - properties for the schema attributeInvalidParameterException - 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 String createSchemaAttributeFromTemplate(boolean assetManagerIsHome, String schemaElementGUID, String templateGUID, String schemaAttributeExternalIdentifier, String schemaAttributeExternalIdentifierName, String schemaAttributeExternalIdentifierUsage, KeyPattern schemaAttributeExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
assetManagerIsHome - ensure that only the asset manager can update this schema elementschemaElementGUID - unique identifier of the schemaType or Schema Attribute where the schema attribute is connected totemplateGUID - unique identifier of the metadata element to copyschemaAttributeExternalIdentifier - unique identifier of the schema attribute in the external asset managerschemaAttributeExternalIdentifierName - name of property for the external identifier in the external asset managerschemaAttributeExternalIdentifierUsage - optional usage description for the external identifier when calling the external asset managerschemaAttributeExternalIdentifierKeyPattern - pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties - additional properties to help with the mapping of the elements in the
external asset manager and open metadatatemplateProperties - properties that override the templateInvalidParameterException - 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 updateSchemaAttribute(String schemaAttributeGUID, String schemaAttributeExternalIdentifier, boolean isMergeUpdate, SchemaAttributeProperties schemaAttributeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaAttributeGUID - unique identifier of the schema attribute to updateschemaAttributeExternalIdentifier - unique identifier of the schema attribute in the external asset managerisMergeUpdate - should the new properties be merged with existing properties (true) or completely replace them (false)?schemaAttributeProperties - new properties for the schema attributeInvalidParameterException - 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 setSchemaElementAsCalculatedValue(boolean assetManagerIsHome,
String schemaElementGUID,
String schemaElementExternalIdentifier,
String formula)
throws InvalidParameterException,
UserNotAuthorizedException,
PropertyServerException
assetManagerIsHome - ensure that only the asset manager can update this schema attributeschemaElementGUID - unique identifier of the metadata element to updateschemaElementExternalIdentifier - unique identifier of the schema element in the external asset managerformula - description of how the value is calculatedInvalidParameterException - 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 clearSchemaElementAsCalculatedValue(String schemaElementGUID, String schemaElementExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaElementGUID - unique identifier of the metadata element to updateschemaElementExternalIdentifier - unique identifier of the schema element in the external asset managerInvalidParameterException - 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 setupColumnAsPrimaryKey(String userId, String assetManagerGUID, String assetManagerName, boolean assetManagerIsHome, String schemaAttributeGUID, String schemaAttributeExternalIdentifier, String primaryKeyName, KeyPattern primaryKeyPattern) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerassetManagerIsHome - ensure that only the asset manager can update this classificationschemaAttributeGUID - unique identifier of the metadata element to updateschemaAttributeExternalIdentifier - unique identifier of the schema attribute in the external asset managerprimaryKeyName - name of the primary key (if different from the column name)primaryKeyPattern - key pattern used to maintain the primary keyInvalidParameterException - 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 clearColumnAsPrimaryKey(String schemaAttributeGUID, String schemaAttributeExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaAttributeGUID - unique identifier of the metadata element to updateschemaAttributeExternalIdentifier - unique identifier of the schema attribute in the external asset managerInvalidParameterException - 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 setupForeignKeyRelationship(boolean assetManagerIsHome,
String primaryKeyGUID,
String foreignKeyGUID,
ForeignKeyProperties foreignKeyProperties)
throws InvalidParameterException,
UserNotAuthorizedException,
PropertyServerException
assetManagerIsHome - ensure that only the asset manager can update this relationshipprimaryKeyGUID - unique identifier of the derived schema elementforeignKeyGUID - unique identifier of the query target schema elementforeignKeyProperties - properties for the foreign key relationshipInvalidParameterException - 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 updateForeignKeyRelationship(String userId, String assetManagerGUID, String assetManagerName, String primaryKeyGUID, String foreignKeyGUID, ForeignKeyProperties foreignKeyProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerprimaryKeyGUID - unique identifier of the derived schema elementforeignKeyGUID - unique identifier of the query target schema elementforeignKeyProperties - properties for the foreign key relationshipInvalidParameterException - 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 clearForeignKeyRelationship(String primaryKeyGUID, String foreignKeyGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
primaryKeyGUID - unique identifier of the derived schema elementforeignKeyGUID - unique identifier of the query target schema elementInvalidParameterException - 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 removeSchemaAttribute(String schemaAttributeGUID, String schemaAttributeExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaAttributeGUID - unique identifier of the metadata element to removeschemaAttributeExternalIdentifier - unique identifier of the schema attribute in the external asset managerInvalidParameterException - 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<SchemaAttributeElement> findSchemaAttributes(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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<SchemaAttributeElement> getAttributesForSchemaType(String schemaTypeGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaTypeGUID - unique identifier of the schemaType of intereststartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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<SchemaAttributeElement> getSchemaAttributesByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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 SchemaAttributeElement getSchemaAttributeByGUID(String schemaAttributeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
schemaAttributeGUID - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.