g-Eclipse
Release 1.0.0

eu.geclipse.core.config
Class Configurator

java.lang.Object
  extended by eu.geclipse.core.config.Configurator
All Implemented Interfaces:
IConfigurator

public class Configurator
extends java.lang.Object
implements IConfigurator

Concrete core implementation of the IConfigurator interface. Implements the possibilities to configure trusted certificates, VOs and grid projects. Corresponds to the information defined by extensions to the eu.geclipse.core.configurator extension point.


Constructor Summary
Configurator()
          Standard constructor.
 
Method Summary
 void addCertificateLoader(ICertificateLoader loader, java.net.URI[] repositories)
          Add a specific certificate loader to this configurator.
 void addProjectConfiguration(java.lang.String projectName, java.lang.String voName, java.util.Hashtable<java.lang.String,java.lang.String> projectFolders)
          Add a specific project configuration to this configurator.
 void addVoCreator(IConfigurableElementCreator creator, java.lang.String voName, Configuration configuration)
          Add a specific VO creator to this configurator.
 IStatus configure(IProgressMonitor monitor)
          Start the configuration process.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configurator

public Configurator()
Standard constructor. Constructs an empty configurator. The configuration can be changed by using the various add-methods.

Method Detail

addCertificateLoader

public void addCertificateLoader(ICertificateLoader loader,
                                 java.net.URI[] repositories)
Add a specific certificate loader to this configurator.

Parameters:
loader - The loader to be added.
repositories - The repository URIs for the specified certificate loader.

addProjectConfiguration

public void addProjectConfiguration(java.lang.String projectName,
                                    java.lang.String voName,
                                    java.util.Hashtable<java.lang.String,java.lang.String> projectFolders)
Add a specific project configuration to this configurator.

Parameters:
projectName - The project's name.
voName - The name of the project's VO.
projectFolders - The project folders.

addVoCreator

public void addVoCreator(IConfigurableElementCreator creator,
                         java.lang.String voName,
                         Configuration configuration)
Add a specific VO creator to this configurator.

Parameters:
creator - The VO creator.
voName - The name of the VO.
configuration - The VO configuration.

configure

public IStatus configure(IProgressMonitor monitor)
                  throws ProblemException
Description copied from interface: IConfigurator
Start the configuration process.

Specified by:
configure in interface IConfigurator
Parameters:
monitor - A progress monitor used to monitor the progress of the configuration process.
Returns:
An IStatus object containing status information about the configuration process.
Throws:
ProblemException - If the configuration failed for some reason.

g-Eclipse
Release 1.0.0