g-Eclipse
Release 1.0.0

eu.geclipse.servicejob.ui.interfaces
Interface IServiceJobWizardNode

All Superinterfaces:
IInitializableWizard, IWizardSelectionNode
All Known Implementing Classes:
AbstractServiceJobWizardNode

public interface IServiceJobWizardNode
extends IWizardSelectionNode, IInitializableWizard

Plug-ins contributing to structural service job wizard should provide wizard's content through this interface.


Method Summary
 boolean canHandle(IVirtualOrganization vo)
          Method to determine if it makes sense to create service job for given virtual organisation.
 java.lang.String getPluginID()
          Method to access ID of plug-in that extends the eu.geclipse.servicejob.servicejobProvider extension point.
 java.util.List<IGridResource> getPreselectedResources()
          Method to access instances of IGridResources that were passed to wizard when launching it e.g. from context menu.
 java.util.List<java.lang.String> getResourcesNames()
          Method to access names of IGridResources that will be objects of this service jobs.
 IGridProject getSelectedProject()
          Gets selected project for this service job.
 java.io.InputStream getServiceJobInputData()
          Method to access file input stream for newly created structural service job.
 java.lang.String getServiceJobName()
          Method to access structural service job's name which is created by this wizard.
 
Methods inherited from interface eu.geclipse.ui.wizards.wizardselection.IWizardSelectionNode
getIcon, getName, getTempWizard
 
Methods inherited from interface eu.geclipse.ui.wizards.wizardselection.IInitializableWizard
init
 

Method Detail

getServiceJobInputData

java.io.InputStream getServiceJobInputData()
Method to access file input stream for newly created structural service job.

Returns:
Input stream which corresponds to XML content of service job.

getServiceJobName

java.lang.String getServiceJobName()
Method to access structural service job's name which is created by this wizard.

Returns:
Name of the structural service job.

getSelectedProject

IGridProject getSelectedProject()
Gets selected project for this service job.

Returns:
IVirtualOrganization selected in VO selection page.

getPluginID

java.lang.String getPluginID()
Method to access ID of plug-in that extends the eu.geclipse.servicejob.servicejobProvider extension point.

Returns:
Plug-in id in form of String.

getResourcesNames

java.util.List<java.lang.String> getResourcesNames()
Method to access names of IGridResources that will be objects of this service jobs. Those names are serialized in .gtdl file. Please note that after g-Eclipse's restart those names are the only "handlers" to which contributor has access (names, not IGridResource objects) - so this list should be constructed this way that names carry all the information needed to perform service job by contributor's plug-in. This method is called by main service job framework's plug-in when .gtdl file is being created.

Returns:
list of names representing resources that are object of this service job

getPreselectedResources

java.util.List<IGridResource> getPreselectedResources()
Method to access instances of IGridResources that were passed to wizard when launching it e.g. from context menu. This method may return an empty list or even null.

Returns:
List of IGridResource obtained from selection from which wizard was launched. If wizard wasn't launched from selection, or this selection doesn't contain any IGridResource objects this list will be empty.

canHandle

boolean canHandle(IVirtualOrganization vo)
Method to determine if it makes sense to create service job for given virtual organisation.

Parameters:
vo - virtual organisation
Returns:
true if service job can be created for resources in given VO, false otherwise.

g-Eclipse
Release 1.0.0