Class DataEngineerRESTServices
java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.viewservices.dataengineer.server.DataEngineerRESTServices
The DataEngineerRESTServices provides the server-side implementation of the Data Engineer Open Metadata
View Service (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.Methods inherited from class org.odpi.openmetadata.tokencontroller.TokenController
getUser
-
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 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 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
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
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
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 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
public VoidResponse deleteDataValue(String serverName, String dataValueGUID, 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
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 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
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 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
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 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
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 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
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 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
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 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
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 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
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 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
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 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
-