Class SchemaExchangeRESTServices
java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.server.SchemaExchangeRESTServices
SchemaExchangeRESTServices is the server-side implementation of the Asset Manager OMAS's
support for schemas. It matches the SchemaExchangeClient.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclearColumnAsPrimaryKey
(String serverName, String userId, String schemaAttributeGUID, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody requestBody) Remove the primary key designation from the schema attribute.clearForeignKeyRelationship
(String serverName, String userId, String primaryKeyGUID, String foreignKeyGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Remove the foreign key relationship between two schema elements.clearSchemaElementAsCalculatedValue
(String serverName, String userId, String schemaElementGUID, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody requestBody) Remove the calculated value designation from the schema element.clearSchemaElementRelationship
(String serverName, String userId, String endOneGUID, String relationshipTypeName, String endTwoGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Remove a relationship between two schema elements.clearSchemaTypeParent
(String serverName, String userId, String parentElementGUID, String parentElementTypeName, String schemaTypeGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Remove the relationship between a schema type and its parent data asset, process or port.createSchemaAttribute
(String serverName, String userId, String schemaElementGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, SchemaAttributeRequestBody requestBody) Create a new metadata element to represent a schema attribute.createSchemaAttributeFromTemplate
(String serverName, String userId, String schemaElementGUID, String templateGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, TemplateRequestBody requestBody) Create a new metadata element to represent a schema attribute using an existing metadata element as a template.createSchemaType
(String serverName, String userId, boolean assetManagerIsHome, String anchorGUID, boolean forLineage, boolean forDuplicateProcessing, SchemaTypeRequestBody requestBody) Create a new metadata element to represent a schema type.createSchemaTypeFromTemplate
(String serverName, String userId, String templateGUID, boolean assetManagerIsHome, TemplateRequestBody requestBody) Create a new metadata element to represent a schema type using an existing metadata element as a template.findSchemaAttributes
(String serverName, String userId, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, SearchStringRequestBody requestBody) Retrieve the list of schema attribute metadata elements that contain the search string.findSchemaType
(String serverName, String userId, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, SearchStringRequestBody requestBody) Retrieve the list of schema type metadata elements that contain the search string.getNestedAttributes
(String serverName, String userId, String schemaTypeGUID, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Retrieve the list of schema attributes associated with a schemaType.getSchemaAttributeByGUID
(String serverName, String userId, String schemaAttributeGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Retrieve the schema attribute metadata element with the supplied unique identifier.getSchemaAttributesByName
(String serverName, String userId, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, NameRequestBody requestBody) Retrieve the list of schema attribute metadata elements with a matching qualified or display name.getSchemaTypeByGUID
(String serverName, String userId, String schemaTypeGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Retrieve the schema type metadata element with the supplied unique identifier.getSchemaTypeByName
(String serverName, String userId, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, NameRequestBody requestBody) Retrieve the list of schema type metadata elements with a matching qualified or display name.getSchemaTypeForElement
(String serverName, String userId, String parentElementGUID, String parentElementTypeName, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Return the schema type associated with a specific open metadata element (data asset, process or port).getSchemaTypeParent
(String serverName, String userId, String schemaTypeGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Retrieve the header of the metadata element connected to a schema type.removeSchemaAttribute
(String serverName, String userId, String schemaAttributeGUID, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody requestBody) Remove the metadata element representing a schema attribute.removeSchemaType
(String serverName, String userId, String schemaTypeGUID, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody requestBody) Remove the metadata element representing a schema type.setSchemaElementAsCalculatedValue
(String serverName, String userId, String schemaElementGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, CalculatedValueClassificationRequestBody requestBody) Classify the schema type (or attribute if type is embedded) to indicate that it is a calculated value.setupColumnAsPrimaryKey
(String serverName, String userId, String schemaAttributeGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, PrimaryKeyClassificationRequestBody requestBody) Classify the column schema attribute to indicate that it describes a primary key.setupForeignKeyRelationship
(String serverName, String userId, String primaryKeyGUID, String foreignKeyGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, ForeignKeyRequestBody requestBody) Link two schema attributes together to show a foreign key relationship.setupSchemaElementRelationship
(String serverName, String userId, String endOneGUID, String relationshipTypeName, String endTwoGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, RelationshipRequestBody requestBody) Create a relationship between two schema elements.setupSchemaTypeParent
(String serverName, String userId, String parentElementGUID, String parentElementTypeName, String schemaTypeGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, RelationshipRequestBody requestBody) Connect a schema type to a data asset, process or port.updateForeignKeyRelationship
(String serverName, String userId, String primaryKeyGUID, String foreignKeyGUID, boolean forLineage, boolean forDuplicateProcessing, ForeignKeyRequestBody requestBody) Update the relationship properties for the query target.updateSchemaAttribute
(String serverName, String userId, String schemaAttributeGUID, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, SchemaAttributeRequestBody requestBody) Update the properties of the metadata element representing a schema attribute.updateSchemaType
(String serverName, String userId, String schemaTypeGUID, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, SchemaTypeRequestBody requestBody) Update the metadata element representing a schema type.
-
Constructor Details
-
SchemaExchangeRESTServices
public SchemaExchangeRESTServices()Default constructor
-
-
Method Details
-
createSchemaType
public GUIDResponse createSchemaType(String serverName, String userId, boolean assetManagerIsHome, String anchorGUID, boolean forLineage, boolean forDuplicateProcessing, SchemaTypeRequestBody requestBody) Create a new metadata element to represent a schema type.- Parameters:
serverName
- name of the server to route the request touserId
- calling userassetManagerIsHome
- ensure that only the asset manager can update this schema elementanchorGUID
- unique identifier of the intended anchor of the schema typeforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- properties about the schema type to store- Returns:
- unique identifier of the new schema type or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
createSchemaTypeFromTemplate
public GUIDResponse createSchemaTypeFromTemplate(String serverName, String userId, String templateGUID, boolean assetManagerIsHome, TemplateRequestBody requestBody) Create a new metadata element to represent a schema type using an existing metadata element as a template.- Parameters:
serverName
- name of the server to route the request touserId
- calling userassetManagerIsHome
- ensure that only the asset manager can update this schema elementtemplateGUID
- unique identifier of the metadata element to copyrequestBody
- properties that override the template- Returns:
- unique identifier of the new schema type or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateSchemaType
public VoidResponse updateSchemaType(String serverName, String userId, String schemaTypeGUID, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, SchemaTypeRequestBody requestBody) Update the metadata element representing a schema type.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaTypeGUID
- unique identifier of the metadata element to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- new properties for the metadata element- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupSchemaTypeParent
public VoidResponse setupSchemaTypeParent(String serverName, String userId, String parentElementGUID, String parentElementTypeName, String schemaTypeGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, RelationshipRequestBody requestBody) Connect a schema type to a data asset, process or port.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaTypeGUID
- 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 toassetManagerIsHome
- ensure that only the asset manager can update this relationshipforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearSchemaTypeParent
public VoidResponse clearSchemaTypeParent(String serverName, String userId, String parentElementGUID, String parentElementTypeName, String schemaTypeGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Remove the relationship between a schema type and its parent data asset, process or port.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaTypeGUID
- 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 toforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupSchemaElementRelationship
public VoidResponse setupSchemaElementRelationship(String serverName, String userId, String endOneGUID, String relationshipTypeName, String endTwoGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, RelationshipRequestBody requestBody) Create a relationship between two schema elements. The name of the desired relationship, and any properties (including effectivity dates) are passed on the API.- Parameters:
serverName
- name of the server to route the request touserId
- calling userendOneGUID
- 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 createassetManagerIsHome
- ensure that only the asset manager can update this relationshipforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- relationship properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearSchemaElementRelationship
public VoidResponse clearSchemaElementRelationship(String serverName, String userId, String endOneGUID, String relationshipTypeName, String endTwoGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Remove a relationship between two schema elements. The name of the desired relationship is passed on the API.- Parameters:
serverName
- name of the server to route the request touserId
- calling userendOneGUID
- 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 deleteforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
removeSchemaType
public VoidResponse removeSchemaType(String serverName, String userId, String schemaTypeGUID, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody requestBody) Remove the metadata element representing a schema type.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaTypeGUID
- unique identifier of the metadata element to removeforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller and external identifier of element- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
findSchemaType
public SchemaTypeElementsResponse findSchemaType(String serverName, String userId, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, SearchStringRequestBody requestBody) Retrieve the list of schema type metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
serverName
- name of the server to route the request touserId
- calling userstartFrom
- paging start pointpageSize
- maximum results that can be returnedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- string to find in the properties plus external identifiers- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getSchemaTypeForElement
public SchemaTypeElementResponse getSchemaTypeForElement(String serverName, String userId, String parentElementGUID, String parentElementTypeName, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Return the schema type associated with a specific open metadata element (data asset, process or port).- Parameters:
serverName
- name of the server to route the request touserId
- calling userparentElementGUID
- 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 toforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller- Returns:
- metadata element describing the schema type associated with the requested parent element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getSchemaTypeByName
public SchemaTypeElementsResponse getSchemaTypeByName(String serverName, String userId, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, NameRequestBody requestBody) Retrieve the list of schema type metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
serverName
- name of the server to route the request touserId
- calling userstartFrom
- paging start pointpageSize
- maximum results that can be returnedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- name to search for plus identifiers- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getSchemaTypeByGUID
public SchemaTypeElementResponse getSchemaTypeByGUID(String serverName, String userId, String schemaTypeGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Retrieve the schema type metadata element with the supplied unique identifier.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaTypeGUID
- unique identifier of the requested metadata elementforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller- Returns:
- requested metadata element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getSchemaTypeParent
public ElementHeaderResponse getSchemaTypeParent(String serverName, String userId, String schemaTypeGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Retrieve the header of the metadata element connected to a schema type.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaTypeGUID
- unique identifier of the requested metadata elementforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller- Returns:
- header for parent element (data asset, process, port) or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
createSchemaAttribute
public GUIDResponse createSchemaAttribute(String serverName, String userId, String schemaElementGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, SchemaAttributeRequestBody requestBody) Create a new metadata element to represent a schema attribute.- Parameters:
serverName
- name of the server to route the request touserId
- calling userassetManagerIsHome
- 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 toforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- properties for the schema attribute- Returns:
- unique identifier of the new metadata element for the schema attribute or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
createSchemaAttributeFromTemplate
public GUIDResponse createSchemaAttributeFromTemplate(String serverName, String userId, String schemaElementGUID, String templateGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, TemplateRequestBody requestBody) Create a new metadata element to represent a schema attribute using an existing metadata element as a template.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaElementGUID
- unique identifier of the schemaType or Schema Attribute where the schema attribute is connected totemplateGUID
- unique identifier of the metadata element to copyassetManagerIsHome
- ensure that only the asset manager can update this schema attributeforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- properties that override the template- Returns:
- unique identifier of the new metadata element for the schema attribute or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateSchemaAttribute
public VoidResponse updateSchemaAttribute(String serverName, String userId, String schemaAttributeGUID, boolean isMergeUpdate, boolean forLineage, boolean forDuplicateProcessing, SchemaAttributeRequestBody requestBody) Update the properties of the metadata element representing a schema attribute.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaAttributeGUID
- unique identifier of the schema attribute to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- new properties for the schema attribute- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setSchemaElementAsCalculatedValue
public VoidResponse setSchemaElementAsCalculatedValue(String serverName, String userId, String schemaElementGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, CalculatedValueClassificationRequestBody requestBody) Classify the schema type (or attribute if type is embedded) to indicate that it is a calculated value.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaElementGUID
- unique identifier of the metadata element to updateassetManagerIsHome
- ensure that only the asset manager can update this classificationforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller and external identifier of element- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearSchemaElementAsCalculatedValue
public VoidResponse clearSchemaElementAsCalculatedValue(String serverName, String userId, String schemaElementGUID, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody requestBody) Remove the calculated value designation from the schema element.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaElementGUID
- unique identifier of the metadata element to updateforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller and external identifier of element- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupColumnAsPrimaryKey
public VoidResponse setupColumnAsPrimaryKey(String serverName, String userId, String schemaAttributeGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, PrimaryKeyClassificationRequestBody requestBody) Classify the column schema attribute to indicate that it describes a primary key.- Parameters:
serverName
- name of the server to route the request touserId
- calling userassetManagerIsHome
- ensure that only the asset manager can update this classificationschemaAttributeGUID
- unique identifier of the metadata element to updateforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- details of the primary key plus external identifiers- Returns:
- null or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearColumnAsPrimaryKey
public VoidResponse clearColumnAsPrimaryKey(String serverName, String userId, String schemaAttributeGUID, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody requestBody) Remove the primary key designation from the schema attribute.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaAttributeGUID
- unique identifier of the metadata element to updateforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller and external identifier of element- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupForeignKeyRelationship
public VoidResponse setupForeignKeyRelationship(String serverName, String userId, String primaryKeyGUID, String foreignKeyGUID, boolean assetManagerIsHome, boolean forLineage, boolean forDuplicateProcessing, ForeignKeyRequestBody requestBody) Link two schema attributes together to show a foreign key relationship.- Parameters:
serverName
- name of the server to route the request touserId
- calling userprimaryKeyGUID
- unique identifier of the derived schema elementforeignKeyGUID
- unique identifier of the query target schema elementassetManagerIsHome
- ensure that only the asset manager can update this relationshipforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- properties for the foreign key relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateForeignKeyRelationship
public VoidResponse updateForeignKeyRelationship(String serverName, String userId, String primaryKeyGUID, String foreignKeyGUID, boolean forLineage, boolean forDuplicateProcessing, ForeignKeyRequestBody requestBody) Update the relationship properties for the query target.- Parameters:
serverName
- name of the server to route the request touserId
- calling userprimaryKeyGUID
- unique identifier of the derived schema elementforeignKeyGUID
- unique identifier of the query target schema elementforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- properties for the foreign key relationship plus external identifiers- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearForeignKeyRelationship
public VoidResponse clearForeignKeyRelationship(String serverName, String userId, String primaryKeyGUID, String foreignKeyGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Remove the foreign key relationship between two schema elements.- Parameters:
serverName
- name of the server to route the request touserId
- calling userprimaryKeyGUID
- unique identifier of the derived schema elementforeignKeyGUID
- unique identifier of the query target schema elementforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
removeSchemaAttribute
public VoidResponse removeSchemaAttribute(String serverName, String userId, String schemaAttributeGUID, boolean forLineage, boolean forDuplicateProcessing, UpdateRequestBody requestBody) Remove the metadata element representing a schema attribute.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaAttributeGUID
- unique identifier of the metadata element to removeforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller and external identifier of element- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
findSchemaAttributes
public SchemaAttributeElementsResponse findSchemaAttributes(String serverName, String userId, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, SearchStringRequestBody requestBody) Retrieve the list of schema attribute metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
serverName
- name of the server to route the request touserId
- calling userstartFrom
- paging start pointpageSize
- maximum results that can be returnedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- string to find in the properties plus external identifiers- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getNestedAttributes
public SchemaAttributeElementsResponse getNestedAttributes(String serverName, String userId, String schemaTypeGUID, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Retrieve the list of schema attributes associated with a schemaType.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaTypeGUID
- unique identifier of the schemaType of intereststartFrom
- paging start pointpageSize
- maximum results that can be returnedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller- Returns:
- list of associated metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getSchemaAttributesByName
public SchemaAttributeElementsResponse getSchemaAttributesByName(String serverName, String userId, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, NameRequestBody requestBody) Retrieve the list of schema attribute metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
serverName
- name of the server to route the request touserId
- calling userstartFrom
- paging start pointpageSize
- maximum results that can be returnedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getSchemaAttributeByGUID
public SchemaAttributeElementResponse getSchemaAttributeByGUID(String serverName, String userId, String schemaAttributeGUID, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Retrieve the schema attribute metadata element with the supplied unique identifier.- Parameters:
serverName
- name of the server to route the request touserId
- calling userschemaAttributeGUID
- unique identifier of the requested metadata elementforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?requestBody
- unique identifier/name of software server capability representing the caller- Returns:
- matching metadata element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-