Package org.gorpipe.querydialogs.factory
Class PerspectiveDialog
java.lang.Object
org.gorpipe.querydialogs.BasicBean
org.gorpipe.querydialogs.AbstractListBean
org.gorpipe.querydialogs.Dialog
org.gorpipe.querydialogs.factory.PerspectiveDialog
- All Implemented Interfaces:
Serializable,ListModel
- See Also:
-
Field Summary
FieldsFields inherited from class org.gorpipe.querydialogs.Dialog
argumentMap, attributes, dialogDescription, errorMsgTemplate, executable, gitSHA, longRunningQueryTemplate, packageVersion, PROPERTY_BASE_CHARTCOLUMNS, PROPERTY_BASE_CHARTDF, PROPERTY_BASE_CHARTEXEC, PROPERTY_BASE_CHARTSCRIPT, PROPERTY_BASE_QUERY, PROPERTY_CHART, PROPERTY_EXECUTABLE, PROPERTY_QUERY, PROPERTY_TYPE, version -
Constructor Summary
ConstructorsConstructorDescriptionPerspectiveDialog(Map<String, ? extends Object> attributes, org.gorpipe.gor.model.FileReader fileResolver, org.gorpipe.gor.model.QueryEvaluator queryEval, DialogDescription dialogDescription, PerspectiveDialogDisplayParams displayParams, DialogType type, String query, String chartScript, String chartExec, String chartColumns, ChartDataType chartDF, List<Argument> arguments, String htmlTemplate, List<? extends Object> initialColumns, List<Perspective> perspectives, List<ColumnGroup> columnGroups, List<org.gorpipe.gor.model.ReportCommand> reportCommands, String errorMsgTemplate, String writePath, String longRunningQueryTemplate, String version, String packageVersion, String gitSHA) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanDetermine whether the query should be run as a long query which implies that the results of the query will not be streamed to the SM user but instead the results are saved to a directory of the user´s choice.Get argument map.Get the dialog category the dialog belongs to.Get the dialog fade in image color.Deprecated.Should define an html template for perspectives insteadGet the dialog image color.Deprecated.Should define initial columns for perspectives insteadGet copies of perspectives.List<org.gorpipe.gor.model.ReportCommand>Get the report command list.voidsaveArgumentValues(Path selFilePath) voidsetArgumentValues(Path path) Read argument values from file and set.voidsetArgumentValues(Map<String, ArgumentContent> argName2Content) Set values for arguments.voidsetDialogsFilePath(Path dialogsFilePath) voidsetHtmlTemplate(String htmlTemplate) Deprecated.Should define an html template for perspectives insteadvoidsetReportViewer(ReportViewer container) booleanbooleanverify()Verify dialog by getting the error message.Methods inherited from class org.gorpipe.querydialogs.Dialog
advancedArgumentsVisible, calcInterpolatedQuery, copyArguments, determineLongRunningQuery, getArgument, getAttribute, getBaseChartColumns, getBaseChartDF, getBaseChartExec, getBaseChartScript, getBaseQuery, getChart, getDescription, getElementAt, getErrorMessage, getFileResolver, getGitSha, getHelpLink, getInterpolatedChart, getInterpolatedQuery, getListDescription, getName, getPackageVersion, getQuery, getQueryEval, getShortName, getSize, getType, getVersion, hasArgument, interpolateChart, interpolateQuery, isExecutable, loadQuery, setAdvancedArgumentsVisible, setArgument, setBaseChartColumns, setBaseChartDF, setBaseChartExec, setBaseChartScript, setBaseQuery, setDeferUpdates, setType, toStringMethods inherited from class org.gorpipe.querydialogs.AbstractListBean
addListDataListener, fireContentsChanged, removeListDataListenerMethods inherited from class org.gorpipe.querydialogs.BasicBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Field Details
-
PROPERTY_HTML_TEMPLATE
- See Also:
-
writePath
-
-
Constructor Details
-
PerspectiveDialog
public PerspectiveDialog(Map<String, ? extends Object> attributes, org.gorpipe.gor.model.FileReader fileResolver, org.gorpipe.gor.model.QueryEvaluator queryEval, DialogDescription dialogDescription, PerspectiveDialogDisplayParams displayParams, DialogType type, String query, String chartScript, String chartExec, String chartColumns, ChartDataType chartDF, List<Argument> arguments, String htmlTemplate, List<? extends Object> initialColumns, List<Perspective> perspectives, List<ColumnGroup> columnGroups, List<org.gorpipe.gor.model.ReportCommand> reportCommands, String errorMsgTemplate, String writePath, String longRunningQueryTemplate, String version, String packageVersion, String gitSHA) throws freemarker.template.TemplateException- Throws:
freemarker.template.TemplateException
-
PerspectiveDialog
- Throws:
freemarker.template.TemplateException
-
-
Method Details
-
getHtmlTemplate
Deprecated.Should define an html template for perspectives instead -
setHtmlTemplate
Deprecated.Should define an html template for perspectives instead -
getInitialColumns
Deprecated.Should define initial columns for perspectives instead -
getPerspectives
-
getColumnGroups
-
getPerspectivesCopies
Get copies of perspectives.- Returns:
- list of perspectives
-
verify
public boolean verify()Verify dialog by getting the error message. If the error message is empty the dialog is valid and the method returnstrue. If the error message is not empty the dialog is invalid, and the error message is displayed in an error dialog and the method returnsfalse.- Returns:
trueif dialog is valid, otherwisefalse
-
checkIfLongRunningQuery
public boolean checkIfLongRunningQuery()Determine whether the query should be run as a long query which implies that the results of the query will not be streamed to the SM user but instead the results are saved to a directory of the user´s choice.- Returns:
trueif the query is a long running query, otherwisefalse
-
setReportViewer
-
addNewReportToViewer
public void addNewReportToViewer() -
getReportCommands
Get the report command list.- Returns:
- the report command list
-
getDialogCategory
Get the dialog category the dialog belongs to.- Returns:
- the dialog category
-
getImageColor
Get the dialog image color.- Returns:
- the dialog image color
-
getFadeInImageColor
Get the dialog fade in image color.- Returns:
- the dialog fade in image color
-
getArgumentMap
Get argument map.- Returns:
- the argument map
-
setArgumentValues
Set values for arguments.- Parameters:
argName2Content- argument name to value map
-
setArgumentValues
Read argument values from file and set.- Parameters:
path- thepath of the file to read argument values from- Throws:
IOException
-
saveArgumentValues
-
storingAllowed
public boolean storingAllowed() -
getDialogsFilePath
-
setDialogsFilePath
-