RSE
Release 1.0

org.eclipse.rse.subsystems.files.ssh
Class SftpFileSubSystemConfiguration

java.lang.Object
  extended byorg.eclipse.rse.core.subsystems.SubSystemConfiguration
      extended byorg.eclipse.rse.subsystems.files.core.subsystems.RemoteFileSubSystemConfiguration
          extended byorg.eclipse.rse.subsystems.files.core.servicesubsystem.FileServiceSubSystemConfiguration
              extended byorg.eclipse.rse.subsystems.files.ssh.SftpFileSubSystemConfiguration
All Implemented Interfaces:
IAdaptable, IFileServiceSubSystemConfiguration, IRemoteFileSubSystemConfiguration, org.eclipse.rse.core.persistance.IRSEPersistableContainer, IServiceSubSystemConfiguration, ISubSystemConfiguration, ISystemFilterPoolManagerProvider

public class SftpFileSubSystemConfiguration
extends FileServiceSubSystemConfiguration


Field Summary
protected  IHostFileToRemoteFileAdapter _hostFileAdapter
           
 
Fields inherited from class org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileSubSystemConfiguration
translatedType, unixStyle
 
Fields inherited from class org.eclipse.rse.core.subsystems.SubSystemConfiguration
_isDirty, currentlyProcessingConnection, currentlyProcessingSubSystemConfiguration, currentlySelected, currentlySelectedConnection, filterNamingPolicy, filterPoolManagerList, filterPoolManagers, filterPoolManagersPerProfile, imageTable, subSystemList
 
Fields inherited from interface org.eclipse.rse.core.subsystems.ISubSystemConfiguration
FORCE_INTO_MEMORY, LAZILY
 
Constructor Summary
SftpFileSubSystemConfiguration()
           
 
Method Summary
 IFileService createFileService(IHost host)
           
 IHostSearchResultConfiguration createSearchConfiguration(IHost host, IHostSearchResultSet resultSet, Object searchTarget, SystemSearchString searchString)
           
 ISearchService createSearchService(IHost host)
           
 ISubSystem createSubSystemInternal(IHost host)
          Instantiate and return an instance of OUR subystem.
 IConnectorService getConnectorService(IHost host)
          Find or create a connector service for this host
 IHostFileToRemoteFileAdapter getHostFileAdapter()
           
 org.eclipse.rse.internal.subsystems.files.core.ILanguageUtilityFactory getLanguageUtilityFactory(IRemoteFileSubSystem ss)
           
 Class getServiceImplType()
           
 boolean isFactoryFor(Class subSystemType)
          Determines whether this factory is responsible for the creation of subsytems of the specified type Subsystem factories should override this to indicate which subsystems they support.
 void setConnectorService(IHost host, IConnectorService connectorService)
           
 boolean supportsArchiveManagement()
          Return true if subsystems for this configuration support archive management.
 boolean supportsEnvironmentVariablesPropertyPage()
          Return true if subsystems of this factory support the environment variables property.
 boolean supportsFileTypes()
          Return true if you support user-defined/managed named file types Returns false in default implementation.
 boolean supportsFilters()
          Required method for subsystem factory child classes.
 boolean supportsSearch()
          Return true if subsystems for this configuration support search functionality.
 
Methods inherited from class org.eclipse.rse.subsystems.files.core.servicesubsystem.FileServiceSubSystemConfiguration
getFileService, getSearchService, getService, getServiceType, supportsServerLaunchProperties
 
Methods inherited from class org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileSubSystemConfiguration
createDefaultFilterPool, getEditorProfileID, getFileFilterStringValidator, getFileNameValidator, getFolderNameValidator, getLineSeparator, getPathSeparator, getPathSeparatorChar, getPathValidator, getSeparator, getSeparatorChar, getTranslatedFilterTypeProperty, initializeSubSystem, isCaseSensitive, isPortEditable, isUnixStyle, providesCustomDropInFilters, setIsUnixStyle, supportsCommands, supportsCompileActions, supportsDropInFilters, supportsNestedFilters, supportsProperties, supportsSubSystemConnect, supportsTargets, supportsUserDefinedActions
 
Methods inherited from class org.eclipse.rse.core.subsystems.SubSystemConfiguration
addFilterPoolManager, addSubSystem, changingSystemProfileActiveStatus, cloneEvent, cloneSubSystem, commit, configureNewFilterAction, copyFilterPoolManager, copySubSystemData, createEvent, createEvent, createEvent, createServerLauncher, createSubSystem, createSubSystemAfterTheFact, 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, getActiveFilterPoolManagers, getAdapter, getCategory, getConnectingMessage, getDefaultFilterPool, getDefaultFilterPoolName, getDefaultSystemFilterPool, getDefaultSystemFilterPool, getDescription, getDisconnectingMessage, getFilterPool, getFilterPoolManager, getFilterPoolManager, getFilterPoolManager, getFilterPoolManager, getFilterPoolManager, getFilterPoolManagerList, getFilterPoolManagerName, getFilterPoolManagers, getFilterPools, getGraphicsImage, getGraphicsLiveImage, getId, getImage, getLiveImage, getName, getNewFilterWizardPoolWrapperInformation, getReferencableSystemFilterPoolManagers, getServerLauncherForm, getSubSystemConfigurationProxy, getSubSystemList, getSubSystemPropertyPageCoreFrom, getSubSystemPropertyPages, getSubSystems, getSubSystems, getSubSystems, getSubSystems, getSystemFilterPoolForBrokenReference, getSystemFilterPoolManager, getSystemFilterPoolManagers, getSystemProfile, getSystemProfile, getSystemProfile, getSystemProfile, getSystemProfileName, getSystemTypes, getUserIdValidator, getVendor, handleException, internalGetSubSystemName, internalGetSubSystems, invalidateFilterCache, invalidateSubSystemCache, isDirty, isSubSystemsDeletable, isUserPrivateProfile, needsUpdate, preTestRenameSubSystemProfile, removeSubSystem, renameFilterPoolManager, renameSubSystem, renameSubSystemProfile, renameSubSystemsByConnection, reset, restoreAllFilterPoolManagersForAllProfiles, saveFilterPools, saveFilterPools, saveSubSystem, saveSubSystems, saveSubSystems, setConnection, setCurrentSelection, setDirty, setShowFilterPools, setSubSystemConfigurationProxy, setSubSystemPort, setSubSystemUserId, setWasRestored, showChangeFilterStringsPropertyPage, showFilterPools, showGenericShowInTableOnFilter, showRefreshOnFilter, subSystemsHaveBeenRestored, supportsDuplicateFilterStrings, supportsFilterCaching, supportsFilterChildren, supportsFilterStringExport, supportsMultipleFilterStrings, supportsMultiStringFilters, supportsQuickFilters, supportsServerLaunchType, supportsUserDefinedActions, testForActiveReferences, toString, updateSubSystem, wasRestored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystemConfiguration
getEditorProfileID, getFileFilterStringValidator, getFileNameValidator, getFolderNameValidator, getLineSeparator, getPathSeparator, getPathSeparatorChar, getPathValidator, getSeparator, getSeparatorChar, isCaseSensitive, isUnixStyle
 
Methods inherited from interface org.eclipse.rse.core.subsystems.ISubSystemConfiguration
changingSystemProfileActiveStatus, cloneSubSystem, commit, copyFilterPoolManager, createServerLauncher, createSubSystem, createSubSystemAfterTheFact, deleteSubSystem, deleteSubSystemsByConnection, deletingSystemProfile, disconnectAllSubSystems, getCategory, getDefaultFilterPool, getDefaultSystemFilterPool, getDescription, getFilterPoolManager, getFilterPoolManagerList, getId, getName, getSubSystemConfigurationProxy, getSubSystemList, getSubSystems, getSubSystems, getSystemProfile, getSystemProfile, getSystemTypes, getTranslatedFilterTypeProperty, getVendor, isPortEditable, isSubSystemsDeletable, preTestRenameSubSystemProfile, providesCustomDropInFilters, renameFilterPoolManager, renameSubSystem, renameSubSystemProfile, renameSubSystemsByConnection, reset, saveSubSystem, setConnection, setCurrentSelection, setShowFilterPools, setSubSystemConfigurationProxy, setSubSystemPort, setSubSystemUserId, showChangeFilterStringsPropertyPage, showFilterPools, showGenericShowInTableOnFilter, showRefreshOnFilter, supportsCommands, supportsCompileActions, supportsDropInFilters, supportsFilterCaching, supportsFilterChildren, supportsFilterStringExport, supportsMultipleFilterStrings, supportsMultiStringFilters, supportsNestedFilters, supportsProperties, supportsQuickFilters, supportsServerLaunchType, supportsSubSystemConnect, supportsTargets, supportsUserDefinedActions, testForActiveReferences, updateSubSystem
 
Methods inherited from interface org.eclipse.rse.core.filters.ISystemFilterPoolManagerProvider
filterEventFilterCreated, filterEventFilterDeleted, filterEventFilterPoolCreated, filterEventFilterPoolDeleted, filterEventFilterPoolRenamed, filterEventFilterPoolsRePositioned, filterEventFilterRenamed, filterEventFiltersRePositioned, filterEventFilterStringCreated, filterEventFilterStringDeleted, filterEventFilterStringsRePositioned, filterEventFilterStringUpdated, filterEventFilterUpdated, getReferencableSystemFilterPoolManagers, getSystemFilterPoolForBrokenReference, getSystemFilterPoolManager, getSystemFilterPoolManagers
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.rse.core.persistance.IRSEPersistableContainer
isDirty, setDirty, setWasRestored, wasRestored
 

Field Detail

_hostFileAdapter

protected IHostFileToRemoteFileAdapter _hostFileAdapter
Constructor Detail

SftpFileSubSystemConfiguration

public SftpFileSubSystemConfiguration()
Method Detail

isFactoryFor

public boolean isFactoryFor(Class subSystemType)
Description copied from interface: ISubSystemConfiguration
Determines whether this factory is responsible for the creation of subsytems of the specified type Subsystem factories should override this to indicate which subsystems they support.

Specified by:
isFactoryFor in interface ISubSystemConfiguration
Overrides:
isFactoryFor in class RemoteFileSubSystemConfiguration
Parameters:
subSystemType - type of subsystem
Returns:
whether this factory is for the specified subsystemtype

createSubSystemInternal

public ISubSystem createSubSystemInternal(IHost host)
Description copied from class: RemoteFileSubSystemConfiguration
Instantiate and return an instance of OUR subystem. Do not populate it yet though! Eg:

     	SubSystem subsys = ((AcmesubsysFactoryImpl)factory).createAcmeSubSystem();
     	return subsys;
 
noteThis method should be abstract but MOF doesn't allow abstract impl classes at this point

Specified by:
createSubSystemInternal in interface ISubSystemConfiguration
Overrides:
createSubSystemInternal in class RemoteFileSubSystemConfiguration
See Also:
SubSystemConfiguration.createSubSystemInternal(IHost)

getConnectorService

public IConnectorService getConnectorService(IHost host)
Description copied from interface: ISubSystemConfiguration
Find or create a connector service for this host


setConnectorService

public void setConnectorService(IHost host,
                                IConnectorService connectorService)

createFileService

public IFileService createFileService(IHost host)

createSearchService

public ISearchService createSearchService(IHost host)

getHostFileAdapter

public IHostFileToRemoteFileAdapter getHostFileAdapter()

getServiceImplType

public Class getServiceImplType()

createSearchConfiguration

public IHostSearchResultConfiguration createSearchConfiguration(IHost host,
                                                                IHostSearchResultSet resultSet,
                                                                Object searchTarget,
                                                                SystemSearchString searchString)

getLanguageUtilityFactory

public org.eclipse.rse.internal.subsystems.files.core.ILanguageUtilityFactory getLanguageUtilityFactory(IRemoteFileSubSystem ss)

supportsArchiveManagement

public boolean supportsArchiveManagement()
Description copied from interface: IRemoteFileSubSystemConfiguration
Return true if subsystems for this configuration support archive management.

Returns:
true if archive management is supported

supportsFileTypes

public boolean supportsFileTypes()
Description copied from interface: ISubSystemConfiguration
Return true if you support user-defined/managed named file types

Returns false in default implementation.

Specified by:
supportsFileTypes in interface ISubSystemConfiguration
Overrides:
supportsFileTypes in class RemoteFileSubSystemConfiguration

supportsSearch

public boolean supportsSearch()
Description copied from interface: IRemoteFileSubSystemConfiguration
Return true if subsystems for this configuration support search functionality.

Specified by:
supportsSearch in interface IRemoteFileSubSystemConfiguration
Overrides:
supportsSearch in class RemoteFileSubSystemConfiguration

supportsEnvironmentVariablesPropertyPage

public boolean supportsEnvironmentVariablesPropertyPage()
Description copied from interface: IRemoteFileSubSystemConfiguration
Return true if subsystems of this factory support the environment variables property. Return true to show it, return false to hide it.

Specified by:
supportsEnvironmentVariablesPropertyPage in interface IRemoteFileSubSystemConfiguration
Overrides:
supportsEnvironmentVariablesPropertyPage in class RemoteFileSubSystemConfiguration

supportsFilters

public boolean supportsFilters()
Description copied from interface: ISubSystemConfiguration
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.

Returns true in default implementation.

Specified by:
supportsFilters in interface ISubSystemConfiguration
Overrides:
supportsFilters in class RemoteFileSubSystemConfiguration
See Also:
SubSystemConfiguration.supportsFilters()

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.