Class DataEngineerRESTServices

java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.viewservices.dataengineer.server.DataEngineerRESTServices

public class DataEngineerRESTServices extends TokenController
The DataEngineerRESTServices provides the server-side implementation of the Data Engineer Open Metadata View Service (OMVS).
  • Constructor Details

    • DataEngineerRESTServices

      public DataEngineerRESTServices()
      Default constructor
  • Method Details

    • getTabularDataSetReport

      public TabularDataSetReportResponse 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. 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 projects 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

      public GUIDResponse createDataValue(String serverName, 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

      public GUIDResponse createDataValueFromTemplate(String serverName, 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

      public BooleanResponse updateDataValue(String serverName, String dataValueGUID, 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

      public VoidResponse deleteDataValue(String serverName, String dataValueGUID, 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

      public OpenMetadataRootElementsResponse getDataValuesByName(String serverName, 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

      public OpenMetadataRootElementResponse getDataValueByGUID(String serverName, String dataValueGUID, 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

      public OpenMetadataRootElementsResponse findDataValues(String serverName, 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

      public VoidResponse 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.
      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

      public VoidResponse 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.
      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

      public VoidResponse 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.
      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

      public VoidResponse 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.
      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

      public VoidResponse linkEmbeddedDataValue(String serverName, String parentDataValueGUID, String embeddedDataValueGUID, 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

      public VoidResponse detachEmbeddedDataValue(String serverName, String parentDataValueGUID, String embeddedDataValueGUID, 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