Class RunInBackgroundCommand
- java.lang.Object
-
- org.pentaho.mantle.client.commands.AbstractCommand
-
- org.pentaho.mantle.client.commands.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.AbstractCommandRun 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 Summary
Constructors Constructor Description RunInBackgroundCommand()RunInBackgroundCommand(FileItem fileItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckSchedulePermissionAndDialog()StringgetDateFormat()Get Date Formatprotected com.google.gwt.json.client.JSONObjectgetJsonSimpleTrigger(int repeatCount, int interval, Date startDate, Date endDate)StringgetModuleBaseURL()StringgetOutputLocationPath()StringgetOutputName()StringgetOverwriteFile()Get Overwrite FileStringgetSolutionPath()StringgetSolutionTitle()protected voidperformOperation()protected voidperformOperation(boolean feedback)voidsetDateFormat(String dateFormat)Set Date FormatvoidsetModuleBaseURL(String moduleBaseURL)voidsetOutputLocationPath(String outputLocationPath)voidsetOutputName(String outputName)voidsetOverwriteFile(String overwriteFile)Set Overwrite FilevoidsetSolutionPath(String solutionPath)voidsetSolutionTitle(String solutionTitle)protected voidshowDialog(boolean feedback)
-
-
-
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:
performOperationin classorg.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:
performOperationin classorg.pentaho.mantle.client.commands.AbstractCommand
-
-