Class SchemaExchangeResource
java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.server.spring.SchemaExchangeResource
@RestController
@RequestMapping("/servers/{serverName}/open-metadata/access-services/asset-manager/users/{userId}")
public class SchemaExchangeResource
extends Object
SchemaExchangeResource is the server-side implementation of the Asset Manager OMAS's
support for schemas. It matches the SchemaExchangeClientBase.
-
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 parentSchemaElementGUID, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, EffectiveTimeQueryRequestBody requestBody) Retrieve the list of schema attributes associated with a schema element.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
-
SchemaExchangeResource
public SchemaExchangeResource()Default constructor
-
-
Method Details
-
createSchemaType
@PostMapping(path="/schema-types") public GUIDResponse createSchemaType(@PathVariable String serverName, @PathVariable String userId, @RequestParam boolean assetManagerIsHome, @RequestParam(required=false,defaultValue="null") String anchorGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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 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
@PostMapping(path="/schema-types/from-template/{templateGUID}") public GUIDResponse createSchemaTypeFromTemplate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String templateGUID, @RequestParam boolean assetManagerIsHome, @RequestBody 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 usertemplateGUID
- unique identifier of the metadata element to copyassetManagerIsHome
- ensure that only the asset manager can update this schema elementrequestBody
- properties that override the template- Returns:
- unique identifier of the new schema type 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
@PostMapping(path="/schema-types/{schemaTypeGUID}") public VoidResponse updateSchemaType(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaTypeGUID, @RequestParam boolean isMergeUpdate, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/parents/{parentElementGUID}/{parentElementTypeName}/schema-types/{schemaTypeGUID}") public VoidResponse setupSchemaTypeParent(@PathVariable String serverName, @PathVariable String userId, @PathVariable String parentElementGUID, @PathVariable String parentElementTypeName, @PathVariable String schemaTypeGUID, @RequestParam boolean assetManagerIsHome, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/parents/{parentElementGUID}/{parentElementTypeName}/schema-types/{schemaTypeGUID}/remove") public VoidResponse clearSchemaTypeParent(@PathVariable String serverName, @PathVariable String userId, @PathVariable String parentElementGUID, @PathVariable String parentElementTypeName, @PathVariable String schemaTypeGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-elements/{endOneGUID}/relationships/{relationshipTypeName}/schema-elements/{endTwoGUID}") public VoidResponse setupSchemaElementRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String endOneGUID, @PathVariable String relationshipTypeName, @PathVariable String endTwoGUID, @RequestParam boolean assetManagerIsHome, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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 relationshipassetManagerIsHome
- ensure that only the asset manager can update this relationshiprelationshipTypeName
- type of the relationship to createforLineage
- 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
@PostMapping(path="/schema-elements/{endOneGUID}/relationships/{relationshipTypeName}/schema-elements/{endTwoGUID}/remove") public VoidResponse clearSchemaElementRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String endOneGUID, @PathVariable String relationshipTypeName, @PathVariable String endTwoGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-types/{schemaTypeGUID}/remove") public VoidResponse removeSchemaType(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaTypeGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-types/by-search-string") public SchemaTypeElementsResponse findSchemaType(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/parents/{parentElementTypeName}/{parentElementGUID}/schema-types/retrieve") public SchemaTypeElementResponse getSchemaTypeForElement(@PathVariable String serverName, @PathVariable String userId, @PathVariable String parentElementGUID, @PathVariable String parentElementTypeName, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-types/by-name") public SchemaTypeElementsResponse getSchemaTypeByName(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-types/{schemaTypeGUID}/retrieve") public SchemaTypeElementResponse getSchemaTypeByGUID(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaTypeGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/parents/schema-types/{schemaTypeGUID}/retrieve") public ElementHeaderResponse getSchemaTypeParent(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaTypeGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-elements/{schemaElementGUID}/schema-attributes") public GUIDResponse createSchemaAttribute(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaElementGUID, @RequestParam boolean assetManagerIsHome, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-elements/{schemaElementGUID}/schema-attributes/from-template/{templateGUID}") public GUIDResponse createSchemaAttributeFromTemplate(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaElementGUID, @PathVariable String templateGUID, @RequestParam boolean assetManagerIsHome, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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 elementforLineage
- 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
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}") public VoidResponse updateSchemaAttribute(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaAttributeGUID, @RequestParam boolean isMergeUpdate, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-elements/{schemaElementGUID}/is-calculated-value") public VoidResponse setSchemaElementAsCalculatedValue(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaElementGUID, @RequestParam boolean assetManagerIsHome, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-elements/{schemaElementGUID}/is-calculated-value/remove") public VoidResponse clearSchemaElementAsCalculatedValue(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaElementGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/is-primary-key") public VoidResponse setupColumnAsPrimaryKey(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaAttributeGUID, @RequestParam boolean assetManagerIsHome, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/is-primary-key/remove") public VoidResponse clearColumnAsPrimaryKey(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaAttributeGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-attributes/{primaryKeyGUID}/relationships/foreign-keys/{foreignKeyGUID}") public VoidResponse setupForeignKeyRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String primaryKeyGUID, @PathVariable String foreignKeyGUID, @RequestParam boolean assetManagerIsHome, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-attributes/{primaryKeyGUID}/relationships/foreign-keys/{foreignKeyGUID}/update") public VoidResponse updateForeignKeyRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String primaryKeyGUID, @PathVariable String foreignKeyGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-attributes/{primaryKeyGUID}/relationships/foreign-keys/{foreignKeyGUID}/remove") public VoidResponse clearForeignKeyRelationship(@PathVariable String serverName, @PathVariable String userId, @PathVariable String primaryKeyGUID, @PathVariable String foreignKeyGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/remove") public VoidResponse removeSchemaAttribute(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaAttributeGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-attributes/by-search-string") public SchemaAttributeElementsResponse findSchemaAttributes(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-elements/{parentSchemaElementGUID}/schema-attributes/retrieve") public SchemaAttributeElementsResponse getNestedAttributes(@PathVariable String serverName, @PathVariable String userId, @PathVariable String parentSchemaElementGUID, @RequestParam int startFrom, @RequestParam int pageSize, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody EffectiveTimeQueryRequestBody requestBody) Retrieve the list of schema attributes associated with a schema element.- Parameters:
serverName
- name of the server to route the request touserId
- calling userparentSchemaElementGUID
- unique identifier of the schema element 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
@PostMapping(path="/schema-attributes/by-name") public SchemaAttributeElementsResponse getSchemaAttributesByName(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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
@PostMapping(path="/schema-attributes/{schemaAttributeGUID}/retrieve") public SchemaAttributeElementResponse getSchemaAttributeByGUID(@PathVariable String serverName, @PathVariable String userId, @PathVariable String schemaAttributeGUID, @RequestParam(required=false,defaultValue="false") boolean forLineage, @RequestParam(required=false,defaultValue="false") boolean forDuplicateProcessing, @RequestBody 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)
-