Class DataEngineerResource
java.lang.Object
org.odpi.openmetadata.viewservices.dataengineer.server.spring.DataEngineerResource
@RestController
@RequestMapping("/servers/{serverName}/api/open-metadata/data-engineer")
public class DataEngineerResource
extends Object
The DataEngineerResource provides part of the server-side implementation of the Data Engineer OMVS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDataValue(String serverName, NewElementRequestBody requestBody) Create a data value.createDataValueFromTemplate(String serverName, TemplateRequestBody requestBody) Create a new metadata element to represent a data value using an existing metadata element as a template.deleteDataValue(String serverName, String dataValueGUID, DeleteElementRequestBody requestBody) Delete a data value.detachDataValueSource(String serverName, String dataValueGUID, String assetGUID, DeleteRelationshipRequestBody requestBody) Detach a data value from the asset that describes the digital resource where the data is stored.detachEmbeddedDataValue(String serverName, String parentDataValueGUID, String embeddedDataValueGUID, DeleteRelationshipRequestBody requestBody) Remove an embedded data value from its parent data value.detachProcessingVariable(String serverName, String elementGUID, String dataValueGUID, DeleteRelationshipRequestBody requestBody) Detach an element (such as a process) from a data value that is used to configure its processing.findDataValues(String serverName, SearchStringRequestBody requestBody) Retrieve the list of data value metadata elements that contain the search string.getDataValueByGUID(String serverName, String dataValueGUID, GetRequestBody requestBody) Return the properties of a specific data value.getDataValuesByName(String serverName, FilterRequestBody requestBody) Returns the list of data values with a particular name.getTabularDataSetReport(String serverName, String tabularDataSetGUID, int startFromRow, int maxRowCount) Returns details of a tabular data set including the data rows that match the startFromRow and maxRowCount values.linkDataValueSource(String serverName, String dataValueGUID, String assetGUID, NewRelationshipRequestBody requestBody) Attach a data value to the asset that describes the digital resource where the data is stored.linkEmbeddedDataValue(String serverName, String parentDataValueGUID, String embeddedDataValueGUID, NewRelationshipRequestBody requestBody) Embed a data value in another data value.linkProcessingVariable(String serverName, String elementGUID, String dataValueGUID, NewRelationshipRequestBody requestBody) Attach an element (such as a process) to a data value that is used to configure its processing.updateDataValue(String serverName, String dataValueGUID, UpdateElementRequestBody requestBody) Update the properties of a data value.
-
Constructor Details
-
DataEngineerResource
public DataEngineerResource()Default constructor
-
-
Method Details
-
getTabularDataSetReport
@GetMapping("/tabular-data-sets/{tabularDataSetGUID}/report") public TabularDataSetReportResponse getTabularDataSetReport(@PathVariable String serverName, @PathVariable String tabularDataSetGUID, @RequestParam(required=false,defaultValue="0") int startFromRow, @RequestParam(required=false,defaultValue="0") int maxRowCount) Returns details of a tabular data set including the data rows that match the startFromRow and maxRowCount values. If maxRowCount=0 then no data records are returned.- Parameters:
serverName- name of called servertabularDataSetGUID- unique identifier of tabular dat set assetstartFromRow- cursor position in the data setmaxRowCount- maximum number of rows to return. 0 means no rows.- Returns:
- a list of rows InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
createDataValue
@PostMapping(path="/data-values") public GUIDResponse createDataValue(@PathVariable String serverName, @RequestBody(required=false) NewElementRequestBody requestBody) Create a data value.- Parameters:
serverName- name of the server to route the request torequestBody- properties for the new element- Returns:
- unique identifier of the newly created element or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
createDataValueFromTemplate
@PostMapping(path="/data-values/from-template") public GUIDResponse createDataValueFromTemplate(@PathVariable String serverName, @RequestBody(required=false) TemplateRequestBody requestBody) Create a new metadata element to represent a data value using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new element.- Parameters:
serverName- name of the server to route the request torequestBody- properties that override the template- Returns:
- unique identifier of the new metadata element or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
updateDataValue
@PostMapping(path="/data-values/{dataValueGUID}/update") public BooleanResponse updateDataValue(@PathVariable String serverName, @PathVariable String dataValueGUID, @RequestBody(required=false) UpdateElementRequestBody requestBody) Update the properties of a data value.- Parameters:
serverName- name of the server to route the request todataValueGUID- unique identifier of the data valuerequestBody- properties for the element- Returns:
- boolean - true if an update occurred or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
deleteDataValue
@PostMapping(path="/data-values/{dataValueGUID}/delete") public VoidResponse deleteDataValue(@PathVariable String serverName, @PathVariable String dataValueGUID, @RequestBody(required=false) DeleteElementRequestBody requestBody) Delete a data value.- Parameters:
serverName- name of the server to route the request todataValueGUID- unique identifier of the data valuerequestBody- options for the delete- Returns:
- void or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
getDataValuesByName
@PostMapping(path="/data-values/by-name") public OpenMetadataRootElementsResponse getDataValuesByName(@PathVariable String serverName, @RequestBody(required=false) FilterRequestBody requestBody) Returns the list of data values with a particular name.- Parameters:
serverName- name of the server to route the request torequestBody- name to search for and the query options- Returns:
- a list of elements or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
getDataValueByGUID
@PostMapping(path="/data-values/{dataValueGUID}/retrieve") public OpenMetadataRootElementResponse getDataValueByGUID(@PathVariable String serverName, @PathVariable String dataValueGUID, @RequestBody(required=false) GetRequestBody requestBody) Return the properties of a specific data value.- Parameters:
serverName- name of the server to route the request todataValueGUID- unique identifier of the data valuerequestBody- options for the retrieve- Returns:
- retrieved properties or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
findDataValues
@PostMapping(path="/data-values/by-search-string") public OpenMetadataRootElementsResponse findDataValues(@PathVariable String serverName, @RequestBody(required=false) SearchStringRequestBody requestBody) Retrieve the list of data value metadata elements that contain the search string.- Parameters:
serverName- name of the server to route the request torequestBody- search string and the query options- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
linkDataValueSource
@PostMapping(path="/data-values/{dataValueGUID}/data-value-sources/{assetGUID}/attach") public VoidResponse linkDataValueSource(@PathVariable String serverName, @PathVariable String dataValueGUID, @PathVariable String assetGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach a data value to the asset that describes the digital resource where the data is stored.- Parameters:
serverName- name of the server to route the request todataValueGUID- unique identifier of the data valueassetGUID- unique identifier of the asset for the digital resource where the data is storedrequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
detachDataValueSource
@PostMapping(path="/data-values/{dataValueGUID}/data-value-sources/{assetGUID}/detach") public VoidResponse detachDataValueSource(@PathVariable String serverName, @PathVariable String dataValueGUID, @PathVariable String assetGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a data value from the asset that describes the digital resource where the data is stored.- Parameters:
serverName- name of the server to route the request todataValueGUID- unique identifier of the data valueassetGUID- unique identifier of the asset for the digital resource where the data is storedrequestBody- options for the delete- Returns:
- void or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
linkProcessingVariable
@PostMapping(path="/elements/{elementGUID}/processing-variables/{dataValueGUID}/attach") public VoidResponse linkProcessingVariable(@PathVariable String serverName, @PathVariable String elementGUID, @PathVariable String dataValueGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Attach an element (such as a process) to a data value that is used to configure its processing.- Parameters:
serverName- name of the server to route the request toelementGUID- unique identifier of the element that uses the data valuedataValueGUID- unique identifier of the data valuerequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
detachProcessingVariable
@PostMapping(path="/elements/{elementGUID}/processing-variables/{dataValueGUID}/detach") public VoidResponse detachProcessingVariable(@PathVariable String serverName, @PathVariable String elementGUID, @PathVariable String dataValueGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach an element (such as a process) from a data value that is used to configure its processing.- Parameters:
serverName- name of the server to route the request toelementGUID- unique identifier of the element that uses the data valuedataValueGUID- unique identifier of the data valuerequestBody- options for the delete- Returns:
- void or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
linkEmbeddedDataValue
@PostMapping(path="/data-values/{parentDataValueGUID}/embedded-data-values/{embeddedDataValueGUID}/attach") public VoidResponse linkEmbeddedDataValue(@PathVariable String serverName, @PathVariable String parentDataValueGUID, @PathVariable String embeddedDataValueGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Embed a data value in another data value.- Parameters:
serverName- name of the server to route the request toparentDataValueGUID- unique identifier of the parent data valueembeddedDataValueGUID- unique identifier of the embedded data valuerequestBody- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-
detachEmbeddedDataValue
@PostMapping(path="/data-values/{parentDataValueGUID}/embedded-data-values/{embeddedDataValueGUID}/detach") public VoidResponse detachEmbeddedDataValue(@PathVariable String serverName, @PathVariable String parentDataValueGUID, @PathVariable String embeddedDataValueGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Remove an embedded data value from its parent data value.- Parameters:
serverName- name of the server to route the request toparentDataValueGUID- unique identifier of the parent data valueembeddedDataValueGUID- unique identifier of the embedded data valuerequestBody- options for the delete- Returns:
- void or InvalidParameterException one of the parameters is invalid PropertyServerException a problem reported in the open metadata server(s) UserNotAuthorizedException the user is not authorized to issue this request
-