iSeries Remote Systems
v6.0.1

com.ibm.etools.systems.as400jobsubsys.impl
Class JobSubSystemFactoryImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended bycom.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl
                  extended bycom.ibm.etools.systems.subsystems.impl.RemoteJobSubSystemFactoryImpl
                      extended bycom.ibm.etools.systems.as400jobsubsys.impl.JobSubSystemFactoryImpl
All Implemented Interfaces:
org.eclipse.emf.ecore.EObject, IISeriesJobSubsystemsConstants, IISeriesSubSystemFactory, org.eclipse.emf.ecore.InternalEObject, com.ibm.etools.systems.subsystems.ISubSystemConstants, com.ibm.etools.systems.filters.ui.actions.ISystemNewFilterActionConfigurator, JobSubSystemFactory, org.eclipse.emf.common.notify.Notifier, com.ibm.etools.systems.subsystems.RemoteJobSubSystemFactory, com.ibm.etools.systems.subsystems.SubSystemFactory, com.ibm.etools.systems.filters.SystemFilterPoolManagerProvider
Direct Known Subclasses:
ISeriesJobSubSystemFactory

public class JobSubSystemFactoryImpl
extends com.ibm.etools.systems.subsystems.impl.RemoteJobSubSystemFactoryImpl
implements IISeriesSubSystemFactory, JobSubSystemFactory, IISeriesJobSubsystemsConstants


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
static String copyright
           
 
Fields inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl
compileManager, currentlyProcessingConnection, currentlyProcessingSubSystemFactory, currentlySelected, currentlySelectedConnection, filterNamingPolicy, filterPoolManagerList, filterPoolManagers, filterPoolManagersPerProfile, imageTable, mofInitSS, mofInitSubclassSS, ssfactory, sspkg, subSystemList, udas
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from interface com.ibm.etools.iseries.core.IISeriesSubSystemFactory
Copyright
 
Fields inherited from interface com.ibm.etools.systems.as400jobsubsys.JobSubSystemFactory
factoryId
 
Fields inherited from interface com.ibm.etools.systems.subsystems.SubSystemFactory
FORCE_INTO_MEMORY, LAZILY
 
Fields inherited from interface com.ibm.etools.iseries.core.IISeriesJobSubsystemsConstants
Copyright, NCBL_JOB, OTHER_SUBSYS, QBATCH_JOB, QCMN_JOB, QCTL_JOB, QINTER_JOB, QSERVER_JOB, QSPL_JOB, QSYSWRK_JOB, QUSRWRK_JOB
 
Fields inherited from interface com.ibm.etools.systems.subsystems.ISubSystemConstants
Copyright, DEFAULT_PORT, SAVEFILE_FILTERS, SAVEFILE_SUBSYSTEMS
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
JobSubSystemFactoryImpl()
          Constructor.
 
Method Summary
 void addCommonRemoteActions(com.ibm.etools.systems.core.ui.SystemMenuManager menu, IStructuredSelection selection, Shell shell, String menuGroup, com.ibm.etools.systems.subsystems.SubSystem subsystem)
          Override method from superclass to ensure UDAsAction is not added on JobCategory.
protected  com.ibm.etools.systems.core.ui.uda.SystemUDActionSubsystem createActionSubSystem()
          Overridable method to instantiate the SystemUDActionSubsystem.
protected  com.ibm.etools.systems.filters.SystemFilterPool createDefaultFilterPool(com.ibm.etools.systems.filters.SystemFilterPoolManager mgr)
          OVERRIDABLE METHOD FOR CHILD CLASSES TO ENABLE THEM TO CREATE A DEFAULT POOL WHENEVER A NEW FILTER POOL MANAGER IS CREATED (EG, WHEN PROFILE CREATED).
protected  com.ibm.etools.systems.subsystems.SubSystem createSubSystemInternal(com.ibm.etools.systems.model.SystemConnection conn)
          Create a subsystem instance.
 Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature, boolean resolve)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature, Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
protected  Vector getAdditionalFilterActions(com.ibm.etools.systems.filters.SystemFilter selectedFilter, Shell shell)
           
protected  Vector getAdditionalSubSystemActions(com.ibm.etools.systems.subsystems.SubSystem selectedSubSystem, Shell shell)
          Overridable entry for us child classes to contribute subsystem actions beyond the default actions supplied by our parent class (such as New).
protected  IAction getChangeFilterAction(com.ibm.etools.systems.filters.SystemFilter selectedFilter, Shell shell)
          Overridable method to return the action for changing an existing filter.
protected  IAction getNewFilterPoolFilterAction(com.ibm.etools.systems.filters.SystemFilterPool selectedPool, Shell shell)
          Overridable parent method to return the action for creating a new filter.
 ImageDescriptor getSystemFilterImage(com.ibm.etools.systems.filters.SystemFilter filter)
          Supply the image to be used for our filters
 String getTranslatedFilterTypeProperty(IJobCategory selectedFilter)
          Return the translated string to show in the property sheet for the type property.
protected  void initSubSystemMOF()
          Initialize the MOF package.
 boolean isPortEditable()
          Return true (default) or false to indicate if subsystems of this factory support user-editable port numbers.
 boolean supportsFilters()
          Required method for subsystem factory child classes.
 boolean supportsNestedFilters()
          Support filters within filters?
 boolean supportsUserDefinedActions()
          Return true if you support user-defined actions for the remote system objects returned from expansion of subsystems created by this subsystem factory
 
Methods inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl
addFilterPoolManager, addSubSystem, addUserDefinedActions, changingSystemProfileActiveStatus, cloneSubSystem, configureNewFilterAction, copyFilterPoolManager, copySubSystemData, createCompileManager, createEvent, createEvent, createEvent, createFilterByPrompting, createServerLauncher, createSubSystem, customizeChangeFilterPropertyPage, customizeFilterStringPropertyPage, deleteFilterPoolManager, deleteSubSystem, deleteSubSystemsByConnection, deletingSystemProfile, disconnectAllSubSystems, doPostRestoreProcessing, filterEventFilterCreated, filterEventFilterDeleted, filterEventFilterPoolCreated, filterEventFilterPoolDeleted, filterEventFilterPoolRenamed, filterEventFilterPoolsRePositioned, filterEventFilterRenamed, filterEventFiltersRePositioned, filterEventFilterStringCreated, filterEventFilterStringDeleted, filterEventFilterStringsRePositioned, filterEventFilterStringUpdated, filterEventFilterUpdated, fireEvent, fireEvent, fireEvent, fireSubSystemEvent, fireSubSystemEvent, fireSubSystemEvent, fireSubSystemFilterEvent, fireSubSystemFilterEvent, fireSubSystemFilterEvent, fireSubSystemFilterEvent, fireSubSystemFilterEvent, fireSubSystemFilterEvent, getActionSubSystem, getActiveFilterPoolManagers, getAdditionalFilterPoolActions, getAdditionalFilterPoolReferenceActions, getAdditionalFilterReferenceActions, getCategory, getCompileManager, getConnectingMessage, getDefaultFilterPoolName, getDefaultSystemFilterPool, getDefaultSystemFilterPool, getDisconnectingMessage, getFilterActions, getFilterPool, getFilterPoolActions, getFilterPoolManager, getFilterPoolManager, getFilterPoolManager, getFilterPoolManager, getFilterPoolManager, getFilterPoolManagerList, getFilterPoolManagerName, getFilterPoolManagers, getFilterPoolReferenceActions, getFilterPools, getFilterReferenceActions, getGraphicsImage, getGraphicsLiveImage, getId, getImage, getLiveImage, getMOFHelpers, getName, getNewConnectionWizardPages, getNewFilterPoolFilterActions, getNewFilterWizardPoolWrapperInformation, getNewNestedFilterAction, getPasswordValidator, getPortValidator, getReferencableSystemFilterPoolManagers, getRemoveFilterPoolReferenceAction, getServerLauncherForm, getSSMOFfactory, getSubSystemActions, getSubSystemFactoryProxy, getSubSystemList, getSubSystemNewFilterPoolActions, getSubSystemPropertyPageCoreFrom, getSubSystemPropertyPages, getSubSystems, getSubSystems, getSubSystems, getSubSystems, getSubSystemsFolder, getSystemFilterPoolForBrokenReference, getSystemFilterPoolImage, getSystemFilterPoolManager, getSystemFilterPoolManagerImage, getSystemFilterPoolManagers, getSystemFilterStringImage, getSystemFilterStringImage, getSystemProfile, getSystemProfile, getSystemProfile, getSystemProfile, getSystemProfileName, getSystemTypes, getTranslatedFilterTypeProperty, getTypeFiltersFolder, getUserIdValidator, getVendor, handleException, initializeSubSystem, initMOF, internalGetSubSystemName, internalGetSubSystems, invalidateFilterCache, invalidateSubSystemCache, isCaseSensitive, isFactoryFor, isSubSystemsDeletable, isUserPrivateProfile, needsUpdate, preTestRenameSubSystemProfile, providesCustomDropInFilters, removeSubSystem, renameFilterPoolManager, renameSubSystem, renameSubSystemProfile, renameSubSystemProfile, renameSubSystemsByConnection, reset, restore, restoreAllFilterPoolManagersForAllProfiles, restoreSubSystem, restoreSubSystems, save, saveFilterPools, saveFilterPools, saveSubSystem, saveSubSystems, saveSubSystems, setConnection, setCurrentSelection, setShowFilterPools, setSubSystemFactoryProxy, setSubSystemPort, setSubSystemUserId, showChangeFilterStringsPropertyPage, showFilterPools, showGenericShowInTableOnFilter, showRefreshOnFilter, subSystemsHaveBeenRestored, supportsCommands, supportsCompileActions, supportsDropInFilters, supportsDuplicateFilterStrings, supportsFileTypes, supportsFilterCaching, supportsFilterStringExport, supportsMultipleFilterStrings, supportsMultiStringFilters, supportsProperties, supportsQuickFilters, supportsServerLaunchProperties, supportsServerLaunchType, supportsSubSystemConnect, supportsTargets, supportsUserDefinedActions, supportsUserId, testForActiveReferences, toString, updateSubSystem
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eInverseAdd, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore, eURIFragmentSegment
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.systems.subsystems.SubSystemFactory
changingSystemProfileActiveStatus, cloneSubSystem, copyFilterPoolManager, createFilterByPrompting, createSubSystem, customizeChangeFilterPropertyPage, customizeFilterStringPropertyPage, deleteSubSystem, deleteSubSystemsByConnection, deletingSystemProfile, disconnectAllSubSystems, getActionSubSystem, getCategory, getCompileManager, getDefaultSystemFilterPool, getFilterActions, getFilterPoolActions, getFilterPoolManager, getFilterPoolManagerList, getFilterPoolReferenceActions, getFilterReferenceActions, getGraphicsImage, getGraphicsLiveImage, getId, getImage, getLiveImage, getName, getNewConnectionWizardPages, getPasswordValidator, getPortValidator, getServerLauncherForm, getSubSystemActions, getSubSystemFactoryProxy, getSubSystemList, getSubSystemPropertyPageCoreFrom, getSubSystems, getSubSystems, getSystemProfile, getSystemTypes, getTranslatedFilterTypeProperty, getUserIdValidator, getVendor, isCaseSensitive, isSubSystemsDeletable, preTestRenameSubSystemProfile, providesCustomDropInFilters, renameSubSystem, renameSubSystemProfile, renameSubSystemProfile, renameSubSystemsByConnection, reset, save, saveSubSystem, setConnection, setCurrentSelection, setShowFilterPools, setSubSystemFactoryProxy, setSubSystemPort, setSubSystemUserId, showChangeFilterStringsPropertyPage, showFilterPools, showGenericShowInTableOnFilter, showRefreshOnFilter, supportsCommands, supportsCompileActions, supportsDropInFilters, supportsFileTypes, supportsFilterCaching, supportsFilterStringExport, supportsMultipleFilterStrings, supportsMultiStringFilters, supportsProperties, supportsQuickFilters, supportsServerLaunchProperties, supportsServerLaunchType, supportsSubSystemConnect, supportsTargets, supportsUserDefinedActions, supportsUserId, testForActiveReferences, updateSubSystem
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface com.ibm.etools.systems.filters.SystemFilterPoolManagerProvider
filterEventFilterCreated, filterEventFilterDeleted, filterEventFilterPoolCreated, filterEventFilterPoolDeleted, filterEventFilterPoolRenamed, filterEventFilterPoolsRePositioned, filterEventFilterRenamed, filterEventFiltersRePositioned, filterEventFilterStringCreated, filterEventFilterStringDeleted, filterEventFilterStringsRePositioned, filterEventFilterStringUpdated, filterEventFilterUpdated, getReferencableSystemFilterPoolManagers, getSystemFilterPoolForBrokenReference, getSystemFilterPoolImage, getSystemFilterPoolManager, getSystemFilterPoolManagerImage, getSystemFilterPoolManagers, getSystemFilterStringImage, getSystemFilterStringImage
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

JobSubSystemFactoryImpl

public JobSubSystemFactoryImpl()
Constructor. Called by MOF

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()


eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      Class baseClass,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Specified by:
eInverseRemove in interface org.eclipse.emf.ecore.InternalEObject

eGet

public Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                   boolean resolve)

Specified by:
eGet in interface org.eclipse.emf.ecore.EObject

eSet

public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                 Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.EObject

eUnset

public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eUnset in interface org.eclipse.emf.ecore.EObject

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.EObject

isPortEditable

public boolean isPortEditable()
Return true (default) or false to indicate if subsystems of this factory support user-editable port numbers.

Specified by:
isPortEditable in interface com.ibm.etools.systems.subsystems.SubSystemFactory

supportsFilters

public boolean supportsFilters()
Required method for subsystem factory child classes. Return true if you support filters, false otherwise. If you support filters, then some housekeeping will be done for you automatically. Specifically, they will be saved and restored for you automatically. In our case, yes we do support filters!

Specified by:
supportsFilters in interface com.ibm.etools.systems.subsystems.SubSystemFactory

supportsNestedFilters

public boolean supportsNestedFilters()
Support filters within filters?

Specified by:
supportsNestedFilters in interface com.ibm.etools.systems.subsystems.SubSystemFactory

supportsUserDefinedActions

public boolean supportsUserDefinedActions()
Return true if you support user-defined actions for the remote system objects returned from expansion of subsystems created by this subsystem factory

RETURNS false BY DEFAULT

Specified by:
supportsUserDefinedActions in interface com.ibm.etools.systems.subsystems.SubSystemFactory

addCommonRemoteActions

public void addCommonRemoteActions(com.ibm.etools.systems.core.ui.SystemMenuManager menu,
                                   IStructuredSelection selection,
                                   Shell shell,
                                   String menuGroup,
                                   com.ibm.etools.systems.subsystems.SubSystem subsystem)
Override method from superclass to ensure UDAsAction is not added on JobCategory.

Specified by:
addCommonRemoteActions in interface com.ibm.etools.systems.subsystems.SubSystemFactory
Parameters:
menu - The menu to contribute actions to
selection - The window's current selection.
shell - of viewer calling this. Most dialogs require a shell.
menuGroup - recommended menu group to add actions to. If added to another group, you must be sure to create that group first.
subsystem - the subsystem of the selection

createSubSystemInternal

protected com.ibm.etools.systems.subsystems.SubSystem createSubSystemInternal(com.ibm.etools.systems.model.SystemConnection conn)
Create a subsystem instance. Called by parent class's createSubSystem method.


createActionSubSystem

protected com.ibm.etools.systems.core.ui.uda.SystemUDActionSubsystem createActionSubSystem()
Overridable method to instantiate the SystemUDActionSubsystem. You must override this if you return true to supportsUserDefinedActions


createDefaultFilterPool

protected com.ibm.etools.systems.filters.SystemFilterPool createDefaultFilterPool(com.ibm.etools.systems.filters.SystemFilterPoolManager mgr)
OVERRIDABLE METHOD FOR CHILD CLASSES TO ENABLE THEM TO CREATE A DEFAULT POOL WHENEVER A NEW FILTER POOL MANAGER IS CREATED (EG, WHEN PROFILE CREATED).


getAdditionalSubSystemActions

protected Vector getAdditionalSubSystemActions(com.ibm.etools.systems.subsystems.SubSystem selectedSubSystem,
                                               Shell shell)
Overridable entry for us child classes to contribute subsystem actions beyond the default actions supplied by our parent class (such as New).

Returns:
Vector of IAction objects.

getAdditionalFilterActions

protected Vector getAdditionalFilterActions(com.ibm.etools.systems.filters.SystemFilter selectedFilter,
                                            Shell shell)

getNewFilterPoolFilterAction

protected IAction getNewFilterPoolFilterAction(com.ibm.etools.systems.filters.SystemFilterPool selectedPool,
                                               Shell shell)
Overridable parent method to return the action for creating a new filter. Returns new SystemNewFileFilterAction.


getChangeFilterAction

protected IAction getChangeFilterAction(com.ibm.etools.systems.filters.SystemFilter selectedFilter,
                                        Shell shell)
Overridable method to return the action for changing an existing filter. Returns new ISeriesUpdateJobFilterAction.


getSystemFilterImage

public ImageDescriptor getSystemFilterImage(com.ibm.etools.systems.filters.SystemFilter filter)
Supply the image to be used for our filters

Specified by:
getSystemFilterImage in interface com.ibm.etools.systems.filters.SystemFilterPoolManagerProvider

getTranslatedFilterTypeProperty

public String getTranslatedFilterTypeProperty(IJobCategory selectedFilter)
Return the translated string to show in the property sheet for the type property.


initSubSystemMOF

protected void initSubSystemMOF()
Initialize the MOF package. Need only be done once.


iSeries Remote Systems
v6.0.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.