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.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 Summary
Constructors Constructor Description RunInBackgroundCommand()
RunInBackgroundCommand(FileItem fileItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkSchedulePermissionAndDialog()
String
getDateFormat()
Get Date Formatprotected com.google.gwt.json.client.JSONObject
getJsonSimpleTrigger(int repeatCount, int interval, Date startDate, Date endDate)
String
getModuleBaseURL()
String
getOutputLocationPath()
String
getOutputName()
String
getOverwriteFile()
Get Overwrite FileString
getSolutionPath()
String
getSolutionTitle()
protected void
performOperation()
protected void
performOperation(boolean feedback)
void
setDateFormat(String dateFormat)
Set Date Formatvoid
setModuleBaseURL(String moduleBaseURL)
void
setOutputLocationPath(String outputLocationPath)
void
setOutputName(String outputName)
void
setOverwriteFile(String overwriteFile)
Set Overwrite Filevoid
setSolutionPath(String solutionPath)
void
setSolutionTitle(String solutionTitle)
protected void
showDialog(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:
performOperation
in 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:
performOperation
in classorg.pentaho.mantle.client.commands.AbstractCommand
-
-