Class PerspectiveDialogFactory

java.lang.Object
org.gorpipe.querydialogs.factory.AbstractDialogFactory<PerspectiveDialog>
org.gorpipe.querydialogs.factory.PerspectiveDialogFactory

public class PerspectiveDialogFactory
extends AbstractDialogFactory<PerspectiveDialog>
  • Field Details

  • Constructor Details

    • PerspectiveDialogFactory

      public PerspectiveDialogFactory​(org.gorpipe.gor.model.FileReader fileResolver, org.gorpipe.gor.model.QueryEvaluator queryEvaluator)
  • Method Details

    • 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
    • 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:
      buildDialog in class AbstractDialogFactory<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:
      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