Package org.gorpipe.querydialogs.factory
Class PerspectiveDialogFactory
- java.lang.Object
-
- org.gorpipe.querydialogs.factory.AbstractDialogFactory<PerspectiveDialog>
-
- org.gorpipe.querydialogs.factory.PerspectiveDialogFactory
-
public class PerspectiveDialogFactory extends AbstractDialogFactory<PerspectiveDialog>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOTHER_DIALOG_CATEGORYGroup used for dialogs where dialog group attribute is not defined-
Fields inherited from class org.gorpipe.querydialogs.factory.AbstractDialogFactory
inputFileFirstReport
-
-
Constructor Summary
Constructors Constructor Description PerspectiveDialogFactory(org.gorpipe.gor.model.FileReader fileResolver, org.gorpipe.gor.model.QueryEvaluator queryEvaluator)PerspectiveDialogFactory(org.gorpipe.gor.model.FileReader fileResolver, org.gorpipe.gor.model.QueryEvaluator queryEvaluator, boolean ignoreAllowedMismatch)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PerspectiveDialogbuildDialog(java.lang.String name, java.util.Map<java.lang.String,? extends java.lang.Object> attributes)java.util.List<PerspectiveDialog>buildDialogs(java.lang.String resource)java.util.List<PerspectiveDialog>buildDialogs(java.lang.String resource, byte[] ymlPayload)java.util.List<PerspectiveDialog>buildDialogs(java.lang.String resource, java.lang.String cacheDir)java.util.List<PerspectiveDialog>buildDialogs(java.nio.file.Path resource)static PerspectiveDialogFactorycreate(org.gorpipe.gor.model.FileReader fileResolver, org.gorpipe.gor.model.QueryEvaluator queryEval)Create a new perspective dialog factory.static PerspectiveDialogFactorycreate(org.gorpipe.gor.model.FileReader fileResolver, org.gorpipe.gor.model.QueryEvaluator queryEval, boolean ignoreAllowedMismatch)Create a new perspective dialog factory.-
Methods inherited from class org.gorpipe.querydialogs.factory.AbstractDialogFactory
buildArgument, buildDialogs, getFileReader, getInputFileFirstReport, getQueryEval, registerArgumentBuilder
-
-
-
-
Field Detail
-
OTHER_DIALOG_CATEGORY
public static final java.lang.String OTHER_DIALOG_CATEGORY
Group used for dialogs where dialog group attribute is not defined- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PerspectiveDialogFactory
public PerspectiveDialogFactory(org.gorpipe.gor.model.FileReader fileResolver, org.gorpipe.gor.model.QueryEvaluator queryEvaluator)
-
PerspectiveDialogFactory
public PerspectiveDialogFactory(org.gorpipe.gor.model.FileReader fileResolver, org.gorpipe.gor.model.QueryEvaluator queryEvaluator, boolean ignoreAllowedMismatch)
-
-
Method Detail
-
create
public static PerspectiveDialogFactory create(org.gorpipe.gor.model.FileReader fileResolver, org.gorpipe.gor.model.QueryEvaluator queryEval)
Create a new perspective dialog factory.- Returns:
- perspective dialog factory
-
create
public static PerspectiveDialogFactory create(org.gorpipe.gor.model.FileReader fileResolver, org.gorpipe.gor.model.QueryEvaluator queryEval, boolean ignoreAllowedMismatch)
Create a new perspective dialog factory.- Returns:
- perspective dialog factory
-
buildDialog
protected PerspectiveDialog buildDialog(java.lang.String name, java.util.Map<java.lang.String,? extends java.lang.Object> attributes) throws freemarker.template.TemplateException
- Specified by:
buildDialogin classAbstractDialogFactory<PerspectiveDialog>- Throws:
freemarker.template.TemplateException
-
buildDialogs
public java.util.List<PerspectiveDialog> buildDialogs(java.nio.file.Path resource) throws java.io.IOException, freemarker.template.TemplateException
- Overrides:
buildDialogsin classAbstractDialogFactory<PerspectiveDialog>- Parameters:
resource- - the Yaml to read- Returns:
- a
ListofDialogs - Throws:
java.io.IOExceptionfreemarker.template.TemplateException
-
buildDialogs
public java.util.List<PerspectiveDialog> buildDialogs(java.lang.String resource, java.lang.String cacheDir) throws java.io.IOException, freemarker.template.TemplateException
- Overrides:
buildDialogsin classAbstractDialogFactory<PerspectiveDialog>- Parameters:
resource- - the Yaml to read- Returns:
- a
ListofDialogs - Throws:
java.io.IOExceptionfreemarker.template.TemplateException
-
buildDialogs
public java.util.List<PerspectiveDialog> buildDialogs(java.lang.String resource) throws java.io.IOException, freemarker.template.TemplateException
- Overrides:
buildDialogsin classAbstractDialogFactory<PerspectiveDialog>- Parameters:
resource- - the Yaml to read- Returns:
- a
ListofDialogs - Throws:
java.io.IOExceptionfreemarker.template.TemplateException
-
buildDialogs
public java.util.List<PerspectiveDialog> buildDialogs(java.lang.String resource, byte[] ymlPayload) throws java.io.IOException, freemarker.template.TemplateException
- Throws:
java.io.IOExceptionfreemarker.template.TemplateException
-
-