1.0.0

org.eclipse.soda.dk.testmanager.action
Class ConfigurationAction

java.lang.Object
  extended by org.eclipse.soda.dk.testmanager.action.AbstractAction
      extended by org.eclipse.soda.dk.testmanager.action.ConfigurationAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
CreateOrUpdateRequest, CreateRequest, DeleteRequest, UpdateRequest

public abstract class ConfigurationAction
extends AbstractAction
implements Action

Since:
1.0
Version:
1.2.0

Constructor Summary
protected ConfigurationAction(java.lang.String id)
          Constructs an instance of this class.
 
Method Summary
 void addConfiguration(java.lang.String id, java.lang.String controllerId, java.lang.String pid, java.lang.String factoryPid, java.lang.String bundleLocation, java.lang.String filter, java.util.Dictionary properties)
          Add configuration with the specified id, controller id, pid, factory pid, bundle location, filter and properties parameters.
 void addCounts(TestStatisticsService testStatistics)
          Add counts with the specified test script parameter.
 void execute(TestScriptService testScript)
          Execute with the specified test script parameter.
protected abstract  void execute(TestScriptService testScript, ConfigurationTemplate template)
          Execute with the specified test script and template parameters.
protected  java.util.List getConfigurationTemplates()
          Gets the configuration templates (List) value.
 java.lang.String getDescription()
          Gets the description (String) value.
protected abstract  java.lang.String getName()
          Gets the name (String) value.
protected  TestSessionService getTestSession(TestScriptService testScript, java.lang.String controllerId)
          Get test session with the specified test script and controller id parameters and return the TestSessionService result.
 
Methods inherited from class org.eclipse.soda.dk.testmanager.action.AbstractAction
execute, getId, getParentAction, handleScriptActionError, setParentAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.soda.dk.testmanager.action.Action
getId, getParentAction, setParentAction
 

Constructor Detail

ConfigurationAction

protected ConfigurationAction(java.lang.String id)
Constructs an instance of this class.

Parameters:
id - The ID (String) parameter.
Method Detail

addConfiguration

public void addConfiguration(java.lang.String id,
                             java.lang.String controllerId,
                             java.lang.String pid,
                             java.lang.String factoryPid,
                             java.lang.String bundleLocation,
                             java.lang.String filter,
                             java.util.Dictionary properties)
Add configuration with the specified id, controller id, pid, factory pid, bundle location, filter and properties parameters.

Parameters:
id - The ID (String) parameter.
controllerId - The controller ID (String) parameter.
pid - The PID (String) parameter.
factoryPid - The factory PID (String) parameter.
bundleLocation - The bundle location (String) parameter.
filter - The filter (String) parameter.
properties - The properties (Dictionary) parameter.

addCounts

public void addCounts(TestStatisticsService testStatistics)
Add counts with the specified test script parameter.

Specified by:
addCounts in interface Action
Parameters:
testStatistics - The test statistics (TestStatisticsService) parameter.

execute

public void execute(TestScriptService testScript)
Execute with the specified test script parameter.

Specified by:
execute in interface Action
Parameters:
testScript - The test script (TestScriptService) parameter.
See Also:
execute(TestScriptService,ConfigurationTemplate)

execute

protected abstract void execute(TestScriptService testScript,
                                ConfigurationTemplate template)
                         throws InvalidSyntaxException,
                                java.io.IOException
Execute with the specified test script and template parameters.

Parameters:
testScript - The test script (TestScriptService) parameter.
template - The template (ConfigurationTemplate) parameter.
Throws:
InvalidSyntaxException - Invalid Syntax Exception.
java.io.IOException - IOException.
See Also:
execute(TestScriptService)

getConfigurationTemplates

protected java.util.List getConfigurationTemplates()
Gets the configuration templates (List) value.

Returns:
The configuration templates (List) value.

getDescription

public java.lang.String getDescription()
Gets the description (String) value.

Specified by:
getDescription in interface Action
Returns:
The description (String) value.

getName

protected abstract java.lang.String getName()
Gets the name (String) value.

Returns:
The name (String) value.

getTestSession

protected TestSessionService getTestSession(TestScriptService testScript,
                                            java.lang.String controllerId)
                                     throws java.io.IOException
Get test session with the specified test script and controller id parameters and return the TestSessionService result.

Parameters:
testScript - The test script (TestScriptService) parameter.
controllerId - The controller ID (String) parameter.
Returns:
Results of the get test session (TestSessionService) value.
Throws:
java.io.IOException - IOException.

1.0.0

Copyright (c) 2007, 2009 IBM