Remote Systems
v6.4.1

com.ibm.etools.systems.dftsubsystem.impl
Class DefaultFileSubSystemImpl

java.lang.Object
  extended byEObjectImpl
      extended bycom.ibm.etools.systems.subsystems.impl.SubSystemImpl
          extended bycom.ibm.etools.systems.subsystems.impl.RemoteFileSubSystemImpl
              extended bycom.ibm.etools.systems.dftsubsystem.impl.DefaultFileSubSystemImpl
All Implemented Interfaces:
DefaultFileSubSystem, IAdaptable, ICommunicationsListener, IRemoteObjectResolver, ISystemResourceChangeEvents, RemoteFileSubSystem, SubSystem, SystemFilterPoolReferenceManagerProvider

public class DefaultFileSubSystemImpl
extends RemoteFileSubSystemImpl
implements DefaultFileSubSystem

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemImpl
SubSystemImpl.ConnectRunnable, SubSystemImpl.DisplayErrorMessageRunnable
 
Field Summary
static String copyright
           
 
Fields inherited from class com.ibm.etools.systems.subsystems.impl.RemoteFileSubSystemImpl
_cachedRemoteFiles, _searchHistory, currFilterString, DEFAULT_CONTEXT, DEFAULT_CONTEXT_NOFILTERSTRING, FILTERSTRING_LISTROOTS, folderNameMatcher, HOME_FOLDER_EDEFAULT, homeFolder, matcher, osCmdShell, osName, osVarsSet, osWindows, osWindows95, osWindowsNT
 
Fields inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemImpl
_connectionError, _disconnecting, _system, ADDITIONAL_ATTRIBUTES_EDEFAULT, additionalAttributes, additionalAttributesESet, cancelable, DELIM_VENDOR_ATTR_VALUE, DELIM_VENDOR_ATTRS, DELIM_VENDOR_NAME, doConnection, FACTORY_ID_EDEFAULT, factoryId, filterPoolReferenceManager, hidden, HIDDEN_EDEFAULT, IBM_ATTRIBUTES_EDEFAULT, ibmAttributes, ibmAttributesESet, ibmAttrs, monitor, name, NAME_EDEFAULT, operation, OPERATION_CANCEL_SHELL, OPERATION_CONNECT, OPERATION_DISCONNECT, OPERATION_GET_PROPERTIES, OPERATION_GET_PROPERTY, OPERATION_REMOVE_SHELL, OPERATION_RESOLVE_ABSOLUTE, OPERATION_RESOLVE_ABSOLUTES, OPERATION_RESOLVE_RELATIVE, OPERATION_RUN_COMMAND, OPERATION_RUN_SHELL, OPERATION_SEND_COMMAND_TO_SHELL, OPERATION_SET_PROPERTIES, OPERATION_SET_PROPERTY, parentConnection, parentSubSystemFactory, pmDialog, port, PORT_EDEFAULT, previousUserIdKey, remoteServerLauncher, runContext, runException, runInput, runInput2, runInputs, runInputs2, runInterpret, runInThread, runObject, runOutput, runOutputs, runOutputString, runOutputStrings, saveFileName, shell, sortResults, SUBSYSTEM_FILE_NAME, supportsConnecting, USE_SSL_EDEFAULT, USER_ID_EDEFAULT, userId, useSSL, VENDOR_ATTRIBUTES_EDEFAULT, vendorAttributes, vendorAttributesESet, vendorAttrs
 
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectResolver
Copyright
 
Fields inherited from interface com.ibm.etools.systems.model.ISystemResourceChangeEvents
EVENT_ADD, EVENT_ADD_FILTER_REFERENCE, EVENT_ADD_FILTERSTRING_REFERENCE, EVENT_ADD_MANY, EVENT_ADD_RELATIVE, EVENT_CHANGE_CHILDREN, EVENT_CHANGE_FILTER_REFERENCE, EVENT_CHANGE_FILTERSTRING_REFERENCE, EVENT_COLLAPSE_ALL, EVENT_COLLAPSE_SELECTED, EVENT_COMMAND_FINISHED, EVENT_COMMAND_HISTORY_UPDATE, EVENT_COMMAND_MESSAGE, EVENT_COMMAND_RUN, EVENT_COMMAND_SHELL_FINISHED, EVENT_COMMAND_SHELL_REMOVED, EVENT_COMPILE_COMMAND_RUN, EVENT_DELETE, EVENT_DELETE_FILTER_REFERENCE, EVENT_DELETE_FILTERSTRING_REFERENCE, EVENT_DELETE_MANY, EVENT_EXPAND_SELECTED, EVENT_ICON_CHANGE, EVENT_MOVE_FILTER_REFERENCES, EVENT_MOVE_FILTERSTRING_REFERENCES, EVENT_MOVE_MANY, EVENT_MUST_COLLAPSE, EVENT_PROPERTY_CHANGE, EVENT_PROPERTYSHEET_UPDATE, EVENT_REFRESH, EVENT_REFRESH_REMOTE, EVENT_REFRESH_SELECTED, EVENT_REFRESH_SELECTED_FILTER, EVENT_REFRESH_SELECTED_PARENT, EVENT_RENAME, EVENT_RENAME_FILTER_REFERENCE, EVENT_REPLACE_CHILDREN, EVENT_REVEAL_AND_SELECT, EVENT_SEARCH_FINISHED, EVENT_SELECT, EVENT_SELECT_EXPAND, EVENT_SELECT_REMOTE, PROPERTYSHEET_UPDATE_EVENT
 
Constructor Summary
protected DefaultFileSubSystemImpl()
           
 
Method Summary
 void cancelSearch(IRemoteSearchResultConfiguration searchConfig)
          Does nothing.
 void copy(InputStream stream, long totalBytes, IRemoteFile destination, String encoding, IProgressMonitor monitor)
          Put local data to a remote location.
 boolean copy(IRemoteFile f1, IRemoteFile f2, String name, IProgressMonitor monitor)
          Copy a file or folder to a new target parent folder.
 void copy(IRemoteFile file, String name, String encoding, IProgressMonitor monitor)
          Get the remote file and save it locally.
 void copy(String filename, IRemoteFile f, String name, IProgressMonitor monitor)
          Put the local copy of the remote file back to the remote location.
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
 String getRemoteEncoding()
          Get the default encoding of the target system
 IRemoteSearchResultConfigurationFactory getRemoteSearchResultConfigurationFactory()
          Does nothing.
 void search(IRemoteSearchResultConfiguration searchConfig)
          Does nothing.
 
Methods inherited from class com.ibm.etools.systems.subsystems.impl.RemoteFileSubSystemImpl
accept, addResolvedFilterStringObjects, cacheRemoteFile, cacheRemoteFile, checkForCancel, communicationsStateChange, copy, copy, copy, copy, copy, copy, copyLocalToRemote, copyLocalToRemote, copyUTF8, copyUTF8, copyUTF8, copyUTF8, createFile, createFolder, createFolders, delete, doesFilterStringListContentsOf, doesFilterStringMatch, getCachedRemoteFile, getContext, getContext, getCurrentFilterString, getDefaultContext, getDefaultContextNoFilterString, getFilterStringListRoots, getFirstParentFilterString, getHomeFolder, getLanguageUtilityFactory, getLineSeparator, getLocalAddress, getObjectWithAbsoluteName, getParentFolder, getParentFolderName, getParentRemoteFileSubSystemFactory, getPathSeparator, getPathSeparatorChar, getPropertyPage, getRemoteFileObject, getRemoteFileObject, getRemoteSearchResultObject, getSeparator, getSeparatorChar, getTargetForFilter, getUnusedPort, internalResolveFilterString, internalResolveFilterString, internalResolveFilterStrings, internalResolveOneFilterString, isCaseSensitive, isPassiveCommunicationsListener, listFiles, listFiles, listFiles, listFolders, listFolders, listFolders, listFoldersAndFiles, listFoldersAndFiles, listFoldersAndFiles, listRoots, listRoots, move, removeCachedRemoteFile, removeCachedRemoteFile, rename, runLocalCommand, runLocalCommand, setHomeFolder, setLastModified, setListValues, setListValues, setReadOnly, sortResolvedFilterStringObjects, toString
 
Methods inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemImpl
basicSetFilterPoolReferenceManager, basicSetRemoteServerLauncher, cancelShell, checkIsConnected, clearLocalUserId, connect, connect, connect, deletingConnection, disconnect, disconnect, displayAsyncMsg, doesFilterListContentsOf, doesFilterMatch, doesFilterTypeMatch, filterEventFilterCreated, filterEventFilterPoolReferenceCreated, filterEventFilterPoolReferenceDeleted, filterEventFilterPoolReferenceRenamed, filterEventFilterPoolReferenceReset, filterEventFilterPoolReferencesRePositioned, filterEventFilterPoolReferencesReset, filterEventFilterStringCreated, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, forceUserIdToUpperCase, getActiveWorkbenchShell, getActiveWorkbenchWindow, getAdapter, getAdditionalAttributes, getCacheManager, getChildren, getCommandSubSystem, getConnectionOwnedFilterPoolName, getConnectionPrivateFilterPool, getExecutedCommands, getFactoryId, getFilterPoolReferenceManager, getFilterReferenceWithAbsoluteName, getHostName, getIBMAttribute, getIbmAttributes, getLocalUserId, getLocalUserId, getName, getParentSubSystemFactory, getPort, getPortAsInt, getPreferencesKey, getPreferencesKey, getPreferencesManager, getPrimarySubSystem, getProperties, getProperty, getQueryingMessage, getQueryingMessage, getRemoteServerLauncher, getResolvingMessage, getRunnableContext, getRunningMessage, getSaveFileName, getSettingMessage, getSettingMessage, getShell, getSystem, getSystemConnection, getSystemConnectionName, getSystemFilterPoolReferenceManager, getSystemManager, getSystemProfile, getSystemProfileName, getSystemType, getUDActionSubsystem, getUniqueOwningSystemFilterPool, getUserId, getUserIdGen, getVendorAttribute, getVendorAttributes, hasChildren, internalCancelShell, internalConnect, internalDisconnect, internalGetProperties, internalGetProperty, internalRemoveShell, internalRunCommand, internalRunCommand, internalRunShell, internalSendCommandToShell, internalSetProperties, internalSetProperty, isConnected, isConnectionError, isHidden, isOffline, isSetAdditionalAttributes, isSetIbmAttributes, isSetVendorAttributes, isUseSSL, removeShell, renamingConnection, renamingProfile, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterStrings, resolveFilterStrings, run, runCommand, runCommand, runShell, selectCommandSubSystem, sendCommandToShell, setAdditionalAttributes, setConnectionError, setFactoryId, setFilterPoolReferenceManager, setHidden, setIBMAttribute, setIbmAttributes, setName, setParentConnection, setParentSubSystemFactory, setPort, setProperties, setProperty, setRemoteServerLauncher, setSaveFileName, setUserId, setUserIdGen, setUseSSL, setVendorAttribute, setVendorAttributes, showConnectCancelledMessage, showConnectErrorMessage, showDisconnectCancelledMessage, showDisconnectErrorMessage, showOperationCancelledMessage, showOperationErrorMessage, showOperationMessage, supportsCaching, unsetAdditionalAttributes, unsetIbmAttributes, unsetVendorAttributes
 
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.RemoteFileSubSystem
copy, copy, copy, copy, copy, copy, copyLocalToRemote, copyLocalToRemote, copyUTF8, copyUTF8, copyUTF8, copyUTF8, createFile, createFolder, createFolders, delete, getHomeFolder, getLanguageUtilityFactory, getLineSeparator, getLocalAddress, getParentFolder, getParentFolderName, getParentRemoteFileSubSystemFactory, getPathSeparator, getPathSeparatorChar, getRemoteFileObject, getRemoteFileObject, getRemoteSearchResultObject, getSeparator, getSeparatorChar, getUnusedPort, isCaseSensitive, listFiles, listFiles, listFolders, listFolders, listFoldersAndFiles, listFoldersAndFiles, listRoots, move, rename, setHomeFolder, setLastModified, setReadOnly
 
Methods inherited from interface com.ibm.etools.systems.subsystems.SubSystem
checkIsConnected, clearLocalUserId, connect, connect, connect, deletingConnection, disconnect, disconnect, doesFilterListContentsOf, doesFilterMatch, doesFilterStringListContentsOf, doesFilterStringMatch, forceUserIdToUpperCase, getAdditionalAttributes, getCacheManager, getChildren, getCommandSubSystem, getFactoryId, getFilterPoolReferenceManager, getIbmAttributes, getLocalUserId, getName, getParentSubSystemFactory, getPort, getPortAsInt, getPrimarySubSystem, getProperties, getProperty, getPropertyPage, getRemoteServerLauncher, getSaveFileName, getSystem, getSystemConnection, getSystemConnectionName, getSystemFilterPoolReferenceManager, getSystemManager, getSystemProfile, getSystemProfileName, getTargetForFilter, getUDActionSubsystem, getUserId, getVendorAttribute, getVendorAttributes, hasChildren, isConnected, isConnectionError, isHidden, isOffline, isSetAdditionalAttributes, isSetIbmAttributes, isSetVendorAttributes, isUseSSL, renamingConnection, renamingProfile, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterString, resolveFilterStrings, resolveFilterStrings, setAdditionalAttributes, setConnectionError, setFactoryId, setFilterPoolReferenceManager, setHidden, setIbmAttributes, setName, setParentConnection, setParentSubSystemFactory, setPort, setProperties, setProperty, setRemoteServerLauncher, setSaveFileName, setUserId, setUseSSL, setVendorAttribute, setVendorAttributes, supportsCaching, unsetAdditionalAttributes, unsetIbmAttributes, unsetVendorAttributes
 
Methods inherited from interface com.ibm.etools.systems.filters.SystemFilterPoolReferenceManagerProvider
filterEventFilterCreated, filterEventFilterPoolReferenceCreated, filterEventFilterPoolReferenceDeleted, filterEventFilterPoolReferenceRenamed, filterEventFilterPoolReferenceReset, filterEventFilterPoolReferencesRePositioned, filterEventFilterPoolReferencesReset, filterEventFilterStringCreated, getUniqueOwningSystemFilterPool
 
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectResolver
getObjectWithAbsoluteName
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Constructor Detail

DefaultFileSubSystemImpl

protected DefaultFileSubSystemImpl()
Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class RemoteFileSubSystemImpl

eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     Class baseClass,
                                     NotificationChain msgs)

Overrides:
eInverseAdd in class RemoteFileSubSystemImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        Class baseClass,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class RemoteFileSubSystemImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Overrides:
eGet in class RemoteFileSubSystemImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Overrides:
eSet in class RemoteFileSubSystemImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Overrides:
eUnset in class RemoteFileSubSystemImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Overrides:
eIsSet in class RemoteFileSubSystemImpl

copy

public boolean copy(IRemoteFile f1,
                    IRemoteFile f2,
                    String name,
                    IProgressMonitor monitor)
Description copied from interface: RemoteFileSubSystem
Copy a file or folder to a new target parent folder.

Specified by:
copy in interface RemoteFileSubSystem
Parameters:
f1 - The file or folder to copy
f2 - The folder to copy to. No guarantee it is on the same system, so be sure to check getSystemConnection()!
name - The new name for the copied file or folder
Returns:
false true iff the copy succeeded

copy

public void copy(IRemoteFile file,
                 String name,
                 String encoding,
                 IProgressMonitor monitor)
Description copied from interface: RemoteFileSubSystem
Get the remote file and save it locally. The file is saved in the encoding specified. Two exceptions: if the remote file is binary, encoding does not apply. If the remote file is a XML file, then it will be copied to local in the encoding specified in the XML declaration, or as determined from the XML specification.

Specified by:
copy in interface RemoteFileSubSystem
Parameters:
file - remote file that represents the file to be obtained
name - the absolute path of the local file
encoding - the encoding of the local file
monitor - the progress monitor

copy

public void copy(String filename,
                 IRemoteFile f,
                 String name,
                 IProgressMonitor monitor)
Description copied from interface: RemoteFileSubSystem
Put the local copy of the remote file back to the remote location. The file is assumed to be in the encoding specified. Two exceptions: if the local file is binary, encoding does not apply. If the local file is a XML file, then it will be copied to remote in the encoding specified in the XML declaration, or as determined from the XML specification.

Specified by:
copy in interface RemoteFileSubSystem
Parameters:
filename - the absolute path of the local copy
f - remote file that represents the file on the server
name - the encoding of the local copy
monitor - the progress monitor

copy

public void copy(InputStream stream,
                 long totalBytes,
                 IRemoteFile destination,
                 String encoding,
                 IProgressMonitor monitor)
          throws RemoteFileSecurityException,
                 RemoteFileIOException
Description copied from interface: RemoteFileSubSystem
Put local data to a remote location. The local data is assumed to be in the encoding specified.

Specified by:
copy in interface RemoteFileSubSystem
Parameters:
stream - the input stream containing the local data.
totalBytes - the total number of bytes in the stream, or -1 if unknown. If -1 is specified, then the progress monitor must be null.
destination - remote file that represents the file on the server.
encoding - the encoding of the local data, or null to specify binary.
monitor - the progress monitor.
Throws:
RemoteFileSecurityException
RemoteFileIOException
See Also:
RemoteFileSubSystem.copy(java.io.InputStream, long, com.ibm.etools.systems.subsystems.IRemoteFile, java.lang.String, org.eclipse.core.runtime.IProgressMonitor)

search

public void search(IRemoteSearchResultConfiguration searchConfig)
Does nothing.

Specified by:
search in interface RemoteFileSubSystem
Parameters:
searchConfig - a search configuration.
See Also:
RemoteFileSubSystem.search(com.ibm.etools.systems.subsystems.IRemoteSearchResultConfiguration)

getRemoteEncoding

public String getRemoteEncoding()
Description copied from interface: RemoteFileSubSystem
Get the default encoding of the target system

Specified by:
getRemoteEncoding in interface RemoteFileSubSystem
Returns:
the encoding

cancelSearch

public void cancelSearch(IRemoteSearchResultConfiguration searchConfig)
Does nothing.

Specified by:
cancelSearch in interface RemoteFileSubSystem
Parameters:
searchConfig - a search configuration.
See Also:
RemoteFileSubSystem.cancelSearch(com.ibm.etools.systems.subsystems.IRemoteSearchResultConfiguration)

getRemoteSearchResultConfigurationFactory

public IRemoteSearchResultConfigurationFactory getRemoteSearchResultConfigurationFactory()
Does nothing.

Specified by:
getRemoteSearchResultConfigurationFactory in interface RemoteFileSubSystem
Returns:
the remote search result configuration factory.
See Also:
RemoteFileSubSystem.getRemoteSearchResultConfigurationFactory()

Remote Systems
v6.4.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.