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 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 server
      tabularDataSetGUID - unique identifier of tabular dat set asset
      startFromRow - cursor position in the data set
      maxRowCount - 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 to
      requestBody - 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 to
      requestBody - 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 to
      dataValueGUID - unique identifier of the data value
      requestBody - 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 to
      dataValueGUID - unique identifier of the data value
      requestBody - 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 to
      requestBody - 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 to
      dataValueGUID - unique identifier of the data value
      requestBody - 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 to
      requestBody - 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 to
      dataValueGUID - unique identifier of the data value
      assetGUID - unique identifier of the asset for the digital resource where the data is stored
      requestBody - 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 to
      dataValueGUID - unique identifier of the data value
      assetGUID - unique identifier of the asset for the digital resource where the data is stored
      requestBody - 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 to
      elementGUID - unique identifier of the element that uses the data value
      dataValueGUID - unique identifier of the data value
      requestBody - 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 to
      elementGUID - unique identifier of the element that uses the data value
      dataValueGUID - unique identifier of the data value
      requestBody - 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 to
      parentDataValueGUID - unique identifier of the parent data value
      embeddedDataValueGUID - unique identifier of the embedded data value
      requestBody - 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 to
      parentDataValueGUID - unique identifier of the parent data value
      embeddedDataValueGUID - unique identifier of the embedded data value
      requestBody - 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