1.0.0

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

java.lang.Object
  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 java.lang.Object
implements Action

Version:
1.0.0

Constructor Summary
ConfigurationAction()
          Constructs an instance of this class.
 
Method Summary
 void addConfiguration(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 pid, factory pid, bundle location, filter and properties parameters.
 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  void handleScriptActionError(TestScriptService testScript, java.lang.String detail)
          Handle script action error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationAction

public ConfigurationAction()
Constructs an instance of this class.

Method Detail

addConfiguration

public void addConfiguration(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 pid, factory pid, bundle location, filter and properties parameters.

Parameters:
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.

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
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.

handleScriptActionError

protected void handleScriptActionError(TestScriptService testScript,
                                       java.lang.String detail)
Handle script action error

Parameters:
testScript - The test script (TestScriptService) parameter.
detail - The detail (String) parameter.

1.0.0

Copyright (c) 2007 IBM