Interface OutputModuleApi
public interface OutputModuleApi
Contains all api operations of Output Module.
The Output Module is a lightweight graph query engine. It allows many different output formats (json, xml, excel, csv, ...) and provides a one stop API to query most of DGC's entities (assets, communities, domains, types, ...) using SQL-like filtering capabilities. The query engine also supports sorting of entities using any of the available properties as well as paging of the results. Last but not least, the query engine also honors view permissions that were set for the particular logged in user that is issuing the REST call. Please refer to Output Module documentation for mode details.
-
Method Summary
Modifier and TypeMethodDescriptionexportCSV(ExportCSVRequest request) Performs an Output Module query and exports the returns results immediately in CSV format.exportCSVInJob(ExportCSVInJobRequest request) Starts a job that performs an Output Module query and stores the results in a file in CSV format.exportCSVToFile(ExportCSVToFileRequest request) Performs an Output Module query and stores the query results in a file in CSV format.voidexportCSVToStream(ExportCSVRequest request, OutputStream outputStream) Performs an Output Module query and streams the results to Response immediately in CSV format .exportExcelInJob(ExportExcelInJobRequest request) Starts a job that performs an Output Module query and stores the results in a file in Excel format.Performs an Output Module query and stores the query results in a file in Excel format.exportJSON(ExportJSONRequest request) Performs an Output Module query and exports the returns results immediately in JSON format.exportJSONInJob(ExportJSONInJobRequest request) Starts a job that performs an Output Module query and stores the results in a file in JSON format.exportJSONToFile(ExportJSONToFileRequest request) Performs an Output Module query and stores the query results in a file in JSON format.voidexportJSONToStream(ExportJSONRequest request, OutputStream outputStream) Performs an Output Module query and streams the results to Response immediately in JSON format .exportXML(ExportXMLRequest request) Performs an Output Module query and exports the returns results immediately in XML format.exportXMLInJob(ExportXMLInJobRequest request) Starts a job that performs an Output Module query and stores the results in a file in XML format.exportXMLToFile(ExportXMLToFileRequest request) Performs an Output Module query and stores the query results in a file in XML format.
-
Method Details
-
exportCSV
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.StringLengthFormatter.class) String exportCSV(ExportCSVRequest request) Performs an Output Module query and exports the returns results immediately in CSV format.- Parameters:
request- the properties of the request- Returns:
- the string response in CSV format
-
exportCSVToStream
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.StringLengthFormatter.class) void exportCSVToStream(ExportCSVRequest request, OutputStream outputStream) Performs an Output Module query and streams the results to Response immediately in CSV format .- Parameters:
request- the properties of the requestoutputStream- CSV response data streamed to OutputStream
-
exportCSVInJob
Starts a job that performs an Output Module query and stores the results in a file in CSV format. Id of the file can be retrieved from themessage.idproperty of the job once the job is finished.- Parameters:
request- the properties of the request- Returns:
- the job that performs an Output Module query
-
exportCSVToFile
Performs an Output Module query and stores the query results in a file in CSV format. The id of the file is returned in the response.- Parameters:
request- the properties of the request- Returns:
- the information about the file where the results are stored
-
exportExcelInJob
Starts a job that performs an Output Module query and stores the results in a file in Excel format. Id of the file can be retrieved from themessage.idproperty of the job once the job is finished.- Parameters:
request- the properties of the request- Returns:
- the job that performs an Output Module query
-
exportExcelToFile
Performs an Output Module query and stores the query results in a file in Excel format. The id of the file is returned in the response.- Parameters:
request- the properties of the request- Returns:
- the information about the file where the results are stored
-
exportJSON
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.StringLengthFormatter.class) String exportJSON(ExportJSONRequest request) Performs an Output Module query and exports the returns results immediately in JSON format.- Returns:
- the string response in JSON format
-
exportJSONToStream
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.StringLengthFormatter.class) void exportJSONToStream(ExportJSONRequest request, OutputStream outputStream) Performs an Output Module query and streams the results to Response immediately in JSON format .- Parameters:
request- the properties of the requestoutputStream- JSON response data streamed to OutputStream
-
exportJSONInJob
Starts a job that performs an Output Module query and stores the results in a file in JSON format. Id of the file can be retrieved from themessage.idproperty of the job once the job is finished.- Parameters:
request- the properties of the request- Returns:
- the job that performs an Output Module query
-
exportJSONToFile
Performs an Output Module query and stores the query results in a file in JSON format. The id of the file is returned in the response.- Parameters:
request- the properties of the request- Returns:
- the information about the file where the results are stored
-
exportXML
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.StringLengthFormatter.class) String exportXML(ExportXMLRequest request) Performs an Output Module query and exports the returns results immediately in XML format.- Returns:
- the string response in XML format
-
exportXMLInJob
Starts a job that performs an Output Module query and stores the results in a file in XML format. Id of the file can be retrieved from themessage.idproperty of the job once the job is finished.- Parameters:
request- the properties of the request- Returns:
- the job that performs an Output Module query
-
exportXMLToFile
Performs an Output Module query and stores the query results in a file in XML format. The id of the file is returned in the response.- Parameters:
request- the properties of the request- Returns:
- the information about the file where the results are stored
-