Class PerspectiveDialogFactory

    • 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
      • buildDialogs

        public java.util.List<PerspectiveDialog> buildDialogs​(java.nio.file.Path resource)
                                                       throws java.io.IOException,
                                                              freemarker.template.TemplateException
        Overrides:
        buildDialogs in class AbstractDialogFactory<PerspectiveDialog>
        Parameters:
        resource - - the Yaml to read
        Returns:
        a List of Dialogs
        Throws:
        java.io.IOException
        freemarker.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:
        buildDialogs in class AbstractDialogFactory<PerspectiveDialog>
        Parameters:
        resource - - the Yaml to read
        Returns:
        a List of Dialogs
        Throws:
        java.io.IOException
        freemarker.template.TemplateException
      • buildDialogs

        public java.util.List<PerspectiveDialog> buildDialogs​(java.lang.String resource)
                                                       throws java.io.IOException,
                                                              freemarker.template.TemplateException
        Overrides:
        buildDialogs in class AbstractDialogFactory<PerspectiveDialog>
        Parameters:
        resource - - the Yaml to read
        Returns:
        a List of Dialogs
        Throws:
        java.io.IOException
        freemarker.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.IOException
        freemarker.template.TemplateException