Class RunInBackgroundCommand

  • All Implemented Interfaces:
    com.google.gwt.core.client.Scheduler.ScheduledCommand, com.google.gwt.user.client.Command
    Direct Known Subclasses:
    AdhocRunInBackgroundCommand

    public class RunInBackgroundCommand
    extends org.pentaho.mantle.client.commands.AbstractCommand
    Run In Background Command Note that the run in background command functionality is similar to schedule functionality. While a lot of code is duplicated over the two commands, quite a bit of screen flow / controller logic is embedded in the view dialogs. Combining these would make more sense once the control flow is removed from the views and abstracted into controllers.
    • Constructor Detail

      • RunInBackgroundCommand

        public RunInBackgroundCommand()
      • RunInBackgroundCommand

        public RunInBackgroundCommand​(FileItem fileItem)
    • Method Detail

      • getSolutionTitle

        public String getSolutionTitle()
      • setSolutionTitle

        public void setSolutionTitle​(String solutionTitle)
      • getSolutionPath

        public String getSolutionPath()
      • setSolutionPath

        public void setSolutionPath​(String solutionPath)
      • getOutputLocationPath

        public String getOutputLocationPath()
      • setOutputLocationPath

        public void setOutputLocationPath​(String outputLocationPath)
      • getModuleBaseURL

        public String getModuleBaseURL()
      • setModuleBaseURL

        public void setModuleBaseURL​(String moduleBaseURL)
      • getOutputName

        public String getOutputName()
      • setOutputName

        public void setOutputName​(String outputName)
      • getDateFormat

        public String getDateFormat()
        Get Date Format
        Returns:
        a string representation of a date format
      • setDateFormat

        public void setDateFormat​(String dateFormat)
        Set Date Format
        Parameters:
        dateFormat - a string representation of a date format
      • getOverwriteFile

        public String getOverwriteFile()
        Get Overwrite File
        Returns:
        the string "true" if the file should be overwritten, otherwise "false"
      • setOverwriteFile

        public void setOverwriteFile​(String overwriteFile)
        Set Overwrite File
        Parameters:
        overwriteFile - the string "true" if the file should be overwritten, otherwise "false"
      • performOperation

        protected void performOperation()
        Specified by:
        performOperation in class org.pentaho.mantle.client.commands.AbstractCommand
      • getJsonSimpleTrigger

        protected com.google.gwt.json.client.JSONObject getJsonSimpleTrigger​(int repeatCount,
                                                                             int interval,
                                                                             Date startDate,
                                                                             Date endDate)
      • showDialog

        protected void showDialog​(boolean feedback)
      • checkSchedulePermissionAndDialog

        protected void checkSchedulePermissionAndDialog()
      • performOperation

        protected void performOperation​(boolean feedback)
        Specified by:
        performOperation in class org.pentaho.mantle.client.commands.AbstractCommand