public class Query2Resource
extends java.lang.Object
Constructor and Description |
---|
Query2Resource(OlapUtilService olapUtils,
ThinQueryService thinQueryService,
<any> saikuSessionContainer,
<any> authenticatorService,
SecurityService securityService) |
Modifier and Type | Method and Description |
---|---|
Response |
cancel(java.lang.String username,
java.lang.String queryName)
Cancel a running query.
|
ThinQuery |
createQuery(java.lang.String username,
java.lang.String queryName,
java.lang.String jsonFormParam,
java.lang.String fileFormParam,
<any> formParams)
Create a new Saiku Query.
|
Status |
deleteQuery(java.lang.String queryName)
Delete query from the query pool.
|
ThinQuery |
drillacross(java.lang.String username,
java.lang.String queryName,
java.lang.String position,
java.lang.String returns)
Drill across on a result set
|
QueryResult |
drillthrough(java.lang.String username,
java.lang.String queryName,
java.lang.Integer maxrows,
java.lang.String position,
java.lang.String returns)
Drill through on the query result set.
|
ThinQuery |
enrich(java.lang.String username,
ThinQuery tq)
Enrich a thin query model
|
QueryResult |
execute(java.lang.String username,
ThinQuery tq)
Execute a Saiku Query
|
Response |
exportHtml(java.lang.String username,
java.lang.String queryname,
java.lang.String format,
java.lang.Boolean css,
java.lang.Boolean tableonly,
java.lang.Boolean wrapcontent)
Get HTML export
|
Response |
exportHtml(java.lang.String username,
ThinQuery tq,
java.lang.String format,
java.lang.Boolean css,
java.lang.Boolean tableonly,
java.lang.Boolean wrapcontent)
Get HTML export
|
Response |
exportPdf(java.lang.String username,
java.lang.String queryName)
Export table to PDF.
|
Response |
exportPdfWithChart(java.lang.String username,
java.lang.String queryName,
java.lang.String svg)
Export PDF with chart
|
Response |
exportPdfWithChartAndFormat(java.lang.String username,
java.lang.String queryName,
java.lang.String format,
java.lang.String svg,
java.lang.String name)
Export PDF with chart and cellset format.
|
Response |
exportPdfWithFormat(java.lang.String username,
java.lang.String queryName,
java.lang.String format,
java.lang.String name)
Export to PDF with cellset format.
|
Response |
getDrillthroughExport(java.lang.String username,
java.lang.String queryName,
java.lang.Integer maxrows,
java.lang.String position,
java.lang.String returns)
Export the drill through to a CSV file for further analysis
|
java.util.List<SimpleCubeElement> |
getLevelMembers(java.lang.String username,
java.lang.String queryName,
java.lang.String hierarchyName,
java.lang.String levelName,
boolean result,
java.lang.String searchString,
int searchLimit)
Get level members from a query.
|
Response |
getQueryCsvExport(java.lang.String username,
java.lang.String queryName)
Get CSV export of a query.
|
Response |
getQueryCsvExport(java.lang.String username,
java.lang.String queryName,
java.lang.String format,
java.lang.String name)
Get CSV export of a query.
|
Response |
getQueryExcelExport(java.lang.String username,
java.lang.String queryName)
Query export to excel.
|
Response |
getQueryExcelExport(java.lang.String username,
java.lang.String queryName,
java.lang.String format,
java.lang.String name)
Query export to excel
|
ThinQuery |
zoomIn(java.lang.String username,
java.lang.String queryName,
java.lang.String positionListString)
Zoom into a query result table.
|
public Query2Resource(OlapUtilService olapUtils, ThinQueryService thinQueryService, <any> saikuSessionContainer, <any> authenticatorService, SecurityService securityService)
public Status deleteQuery(java.lang.String queryName)
queryName
- The query namepublic ThinQuery createQuery(java.lang.String username, java.lang.String queryName, java.lang.String jsonFormParam, java.lang.String fileFormParam, <any> formParams) throws ServletException
queryName
- The query namefileFormParam
- The filejsonFormParam
- The jsonformParams
- The form paramsServletException
public QueryResult execute(java.lang.String username, ThinQuery tq)
tq
- Thin Query modelpublic Response cancel(java.lang.String username, java.lang.String queryName)
queryName
- The query namepublic ThinQuery enrich(java.lang.String username, ThinQuery tq)
tq
- The thin querypublic java.util.List<SimpleCubeElement> getLevelMembers(java.lang.String username, java.lang.String queryName, java.lang.String hierarchyName, java.lang.String levelName, boolean result, java.lang.String searchString, int searchLimit)
queryName
- The query namehierarchyName
- The hierarchy namelevelName
- The level nameresult
- Use the current resultsearchString
- The search stringsearchLimit
- The search limitpublic Response getQueryExcelExport(java.lang.String username, java.lang.String queryName)
queryName
- The query namepublic Response getQueryExcelExport(java.lang.String username, java.lang.String queryName, java.lang.String format, java.lang.String name)
queryName
- The queryformat
- The cellset formatname
- The export namepublic Response getQueryCsvExport(java.lang.String username, java.lang.String queryName)
queryName
- The query namepublic Response getQueryCsvExport(java.lang.String username, java.lang.String queryName, java.lang.String format, java.lang.String name)
queryName
- The query nameformat
- The cell set formatname
- The export namepublic ThinQuery zoomIn(java.lang.String username, java.lang.String queryName, java.lang.String positionListString)
queryName
- The query namepositionListString
- The zoom positionpublic QueryResult drillthrough(java.lang.String username, java.lang.String queryName, java.lang.Integer maxrows, java.lang.String position, java.lang.String returns)
queryName
- The query namemaxrows
- The max rows returnedposition
- The positionreturns
- The returned dimensions and levelspublic Response getDrillthroughExport(java.lang.String username, java.lang.String queryName, java.lang.Integer maxrows, java.lang.String position, java.lang.String returns)
queryName
- The query namemaxrows
- The max rowsposition
- The positionreturns
- The returned dimensions and levelspublic Response exportPdfWithChart(java.lang.String username, java.lang.String queryName, java.lang.String svg)
queryName
- The query.svg
- The SVG stringpublic Response exportPdf(java.lang.String username, java.lang.String queryName)
queryName
- The query namepublic Response exportPdfWithFormat(java.lang.String username, java.lang.String queryName, java.lang.String format, java.lang.String name)
queryName
- The queryformat
- The cellset formatname
- The name of the export.public Response exportPdfWithChartAndFormat(java.lang.String username, java.lang.String queryName, java.lang.String format, java.lang.String svg, java.lang.String name)
queryName
- The query nameformat
- The cell set formatsvg
- The SVGname
- The export namepublic Response exportHtml(java.lang.String username, java.lang.String queryname, java.lang.String format, java.lang.Boolean css, java.lang.Boolean tableonly, java.lang.Boolean wrapcontent)
queryname
- The query nameformat
- The cellset formatcss
- The css stylesheettableonly
- Export table only or chart as wellwrapcontent
- Wrap contentpublic Response exportHtml(java.lang.String username, ThinQuery tq, java.lang.String format, java.lang.Boolean css, java.lang.Boolean tableonly, java.lang.Boolean wrapcontent)
tq
- The current thin query modelformat
- The cellset formatcss
- The css stylesheettableonly
- Export table only or chart as wellwrapcontent
- Wrap contentpublic ThinQuery drillacross(java.lang.String username, java.lang.String queryName, java.lang.String position, java.lang.String returns)
queryName
- The query nameposition
- The drill positionreturns
- The dimensions and levels returned