public class JobProfile extends Item
The JobProfile is responsible for creating JobLaunchers programmatically based on information contained within the JobProfileForm. Submitting a complete Form and calling process() will create a JobLauncher in memory and persist it the project space (ICEFiles/default/jobProfiles/Item.getName().xml) as an XML file that will be loaded when ICE is restarted (or the serialized items are otherwise forced to reload).
The JobProfile is meant to be used in tandem with the SerializedItemBuilder and it creates XML files that it expects to be loaded by instances of that class. The JobProfile sets the builder name of the new JobLauncher to the Item name so that the SerializedItemBuilder used to load it can be found even after the Item is persisted to the database.
component
Constructor and Description |
---|
JobProfile()
The constructor.
|
JobProfile(org.eclipse.core.resources.IProject projectSpace)
The constructor with a project space in which files should be
manipulated.
|
Modifier and Type | Method and Description |
---|---|
FormStatus |
process(java.lang.String actionName)
This operation creates a new JobLauncher and writes it to disk if the
action name is equal to "Create new Job Launcher" and it forwards the
call to the Item base class if it is equal to something else.
|
addListener, cancelProcess, cancelProcess, clone, copy, disable, equals, getAvailableActions, getDescription, getForm, getId, getItemBuilderName, getItemType, getName, getOutputFile, getResource, getResource, getStatus, hashCode, hasProject, isEnabled, loadFromPSF, loadInput, reloadProjectData, setActionFactory, setDescription, setId, setIOService, setItemBuilderName, setName, setProject, setupFormWithServices, submitForm, update, update, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
public JobProfile()
The constructor.
public JobProfile(org.eclipse.core.resources.IProject projectSpace)
The constructor with a project space in which files should be manipulated.
projectSpace
- The Eclipse project where files should be stored and from which they should be retrieved.
public FormStatus process(java.lang.String actionName)
This operation creates a new JobLauncher and writes it to disk if the action name is equal to "Create new Job Launcher" and it forwards the call to the Item base class if it is equal to something else.