Package com.ganteater.ae
Class AEWorkspace
java.lang.Object
com.ganteater.ae.AEWorkspace
- All Implemented Interfaces:
AEManager
- Direct Known Subclasses:
AEPluginWorkspace
,DesktopWorkspace
,WebWorkspace
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCloseHook
(Runnable shutdownHook) void
addRunner
(RecipeRunner testRunner) protected String
choicePriorityRecipeFolder
(String text, String[] possibleValues) choiceValue
(String name, String description, Object[] possibleValues, ILogger log, boolean notifyMe, Processor processor) void
close()
boolean
confirmation
(String name, String message, Processor unit, boolean notifyMe) protected RecipeRunner
createTestRunner
(String name) protected Properties
fillLogProperties
(Node configNode) protected File
void
protected Node
protected File
getCurrentConfig
(Node configs, String aNameConfiguration) getCustomConfPropFileName
(String configurationName) getDefaultUserConfiguration
(String aName, String theDefaultConfiguration) static AEWorkspace
getOperationsMethod
(String name) protected File
Object[]
void
getRemoveTestPath
(String name) getTestPath
(String name) String[]
static Properties
protected String[]
protected void
initLogger
(Node configNode) void
initUserPreferencesEncryption
(String password) inputChoice
(String name, String description, String[] values, String defaultValue, Processor taskProcessor, boolean notifyMe) void
inputDataTable
(Processor unit, Node aTableNode, boolean notifyMe) inputInteger
(String name, String[] values, String defaultValue) String[]
inputMultiChoice
(String name, String[] values, String defaultValue, Processor taskProcessor) inputValue
(String aName, String description, String aValue, ILogger log, String type, boolean notifyMe, Processor processor) boolean
isConsoleDefaultInput
(String varName, String description) void
loadConfiguration
(boolean refreshTaskMap) loadConfiguration
(String confName, boolean refreshTaskPath) protected void
loadConfProperties
(Properties properties) void
progressText
(String name) void
progressValue
(int i, int length, boolean success) void
void
removeRunner
(RecipeRunner testRunner) void
void
void
protected String
selectConfiguration
(String[] configNames) selectConfiguration
(String confName, Node configNodes, boolean refreshTaskPath) void
setBaseDir
(File baseDir) void
setConfigurationName
(String fConfigurationName) void
setConsoleDefaultInput
(boolean defaultMode) void
setDefaultUserConfiguration
(String propertyName, String value) void
setOperationsClasses
(Set<Class> operationsClasses) void
setStartDir
(File startDir) void
setTestPath
(String name, String path) void
startTaskNotify
(RecipeRunner task) void
tasksChoice
(MultiTaskRunDialog dialog, String[] list, boolean exceptionIgnoreFlag, Object setup, Processor taskProcessor, boolean visible)
-
Field Details
-
CONFIGURATION_TITLE
- See Also:
-
ENVIRONMENT_FILE_TITLE
- See Also:
-
MESSAGE_PASSWORD_REQUIRED
- See Also:
-
CONFIG_SUFIX_PROP_NAME
- See Also:
-
defaultMode
-
-
Constructor Details
-
AEWorkspace
public AEWorkspace() -
AEWorkspace
-
-
Method Details
-
loadConfiguration
-
getConfiguration
- Throws:
IOException
-
getConfigurationFile
-
findAlternativeConfiguration
-
getHomeWorkingDir
- Specified by:
getHomeWorkingDir
in interfaceAEManager
-
choicePriorityRecipeFolder
-
runSetupNodes
- Throws:
Exception
-
getPreferencesFile
-
getCustomConfPropFileName
-
getHomeConfigurationsDir
-
refreshTaskPath
- Throws:
IOException
-
progressValue
- Specified by:
progressValue
in interfaceAEManager
-
progressText
- Specified by:
progressText
in interfaceAEManager
-
getFile
-
inputValue
public String inputValue(String aName, String description, String aValue, ILogger log, String type, boolean notifyMe, Processor processor) - Specified by:
inputValue
in interfaceAEManager
-
inputValue
-
confirmation
public boolean confirmation(String name, String message, Processor unit, boolean notifyMe) throws Exception - Specified by:
confirmation
in interfaceAEManager
- Throws:
Exception
-
inputDataTable
- Specified by:
inputDataTable
in interfaceAEManager
- Throws:
IOException
-
loadConfProperties
-
selectConfiguration
public String selectConfiguration(String confName, Node configNodes, boolean refreshTaskPath) throws IOException - Throws:
IOException
-
setDefaultUserConfiguration
-
getDefaultUserConfiguration
-
getCurrentConfig
-
getStartDir
- Specified by:
getStartDir
in interfaceAEManager
-
inputChoice
public String inputChoice(String name, String description, String[] values, String defaultValue, Processor taskProcessor, boolean notifyMe) - Specified by:
inputChoice
in interfaceAEManager
-
inputMultiChoice
-
getValue
-
inputInteger
-
inputFile
-
selectConfiguration
-
getTestPath
- Specified by:
getTestPath
in interfaceAEManager
-
runTask
-
createTestRunner
-
getRemoveTestPath
- Specified by:
getRemoveTestPath
in interfaceAEManager
-
setTestPath
- Specified by:
setTestPath
in interfaceAEManager
-
getWorkingDir
- Specified by:
getWorkingDir
in interfaceAEManager
-
tasksChoice
public MultiTaskRunDialog tasksChoice(MultiTaskRunDialog dialog, String[] list, boolean exceptionIgnoreFlag, Object setup, Processor taskProcessor, boolean visible) - Specified by:
tasksChoice
in interfaceAEManager
-
getSystemVariables
- Specified by:
getSystemVariables
in interfaceAEManager
-
setConsoleDefaultInput
- Specified by:
setConsoleDefaultInput
in interfaceAEManager
-
isConsoleDefaultInput
- Specified by:
isConsoleDefaultInput
in interfaceAEManager
-
getConfigNode
- Specified by:
getConfigNode
in interfaceAEManager
-
getAllConfigNode
-
getTasksMap
-
getTestsDescList
-
getPublicTestsList
-
startTaskNotify
- Specified by:
startTaskNotify
in interfaceAEManager
-
choiceValue
public String choiceValue(String name, String description, Object[] possibleValues, ILogger log, boolean notifyMe, Processor processor) - Specified by:
choiceValue
in interfaceAEManager
-
getInstance
-
resetConfiguration
-
resetConfigurationName
-
getConfigurationName
-
loadConfiguration
-
addRunner
-
removeRunner
- Specified by:
removeRunner
in interfaceAEManager
-
stopAllRunners
-
setBaseDir
-
getBaseDir
-
getOperationsClasses
-
setOperationsClasses
-
getOperationsMethod
-
getOperationsMethods
-
getRunners
-
finished
-
getUserPreferences
-
getTestsList
- Specified by:
getTestsList
in interfaceAEManager
-
message
public MessageHandler message(Processor taskProcessor, String description, String message, boolean notifyMe) -
setConfigurationName
-
initUserPreferencesEncryption
-
close
-
addCloseHook
-
getRecipesScaner
-
setStartDir
-
initLogger
-
fillLogProperties
-