|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEObjectImpl
com.ibm.etools.systems.subsystems.impl.SubSystemImpl
com.ibm.etools.systems.subsystems.impl.RemoteFileSubSystemImpl
com.ibm.etools.systems.localfilesubsys.impl.LocalFileSubSystemImpl
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, HOME_FOLDER_EDEFAULT, homeFolder, osCmdShell, osName, osVarsSet, osWindows, osWindows95, osWindowsNT |
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectResolver |
---|
Copyright |
Constructor Summary | |
---|---|
LocalFileSubSystemImpl()
Constructor. |
Method Summary | |
---|---|
boolean |
accept(File file)
Method required by FilenameFilter interface, used by java.io.File.list() |
void |
cancelSearch(IRemoteSearchResultConfiguration searchConfig)
Given a search configuration, cancel the search. |
void |
copy(InputStream stream,
long totalBytes,
IRemoteFile destination,
String encoding,
IProgressMonitor monitor)
Put local data to a remote location. |
boolean |
copy(IRemoteFile sourceFolderOrFile,
IRemoteFile targetFolder,
String newName,
IProgressMonitor monitor)
Copy a file or folder to a new target parent folder. |
void |
copy(IRemoteFile source,
String destination,
String encoding,
IProgressMonitor monitor)
Get the remote file and save it locally. |
void |
copy(String source,
IRemoteFile destination,
String encoding,
IProgressMonitor monitor)
Put the local copy of the remote file back to the remote location. |
boolean |
copyFromArchiveWithEncoding(IRemoteFile sourceFolderOrFile,
IRemoteFile targetFolder,
String newName,
String sourceEncoding,
boolean isText,
IProgressMonitor monitor)
Copy a file or folder to a new target parent folder, but if copying from an archive, extract the file in the encoding specified |
void |
copyLocalToRemote(InputStream stream,
long totalBytes,
String srcEncoding,
String remotePath,
String rmtEncoding,
IProgressMonitor monitor)
Put the local data to the remote file on the local system. |
void |
copyLocalToRemote(String source,
String srcEncoding,
String remotePath,
String rmtEncoding,
IProgressMonitor monitor)
Put the local copy of the remote file back to the remote location. |
boolean |
copyToArchiveWithEncoding(IRemoteFile sourceFolderOrFile,
IRemoteFile targetFolder,
String newName,
String targetEncoding,
IProgressMonitor monitor)
Copy a file or folder to a new target parent folder, but if copying to an archive, package the file in the encoding specified |
IRemoteFile |
createFile(IRemoteFile fileToCreate)
Create a new file, given its IRemoteFile object (these do not have to represent existing files). |
IRemoteFile |
createFolder(IRemoteFile folderToCreate)
Create a new folder, given its IRemoteFile object (these do not have to represent existing folders) The parent folder must exist for this to succeed. |
IRemoteFile |
createFolders(IRemoteFile folderToCreate)
Given an IRemoteFile for a folder, this will create that folder and any missing parent folders in its path. |
boolean |
delete(IRemoteFile folderOrFile)
Delete the given remote file or folder. |
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)
|
ILanguageUtilityFactory |
getLanguageUtilityFactory()
Returns an instance of LocalLanguageUtilityFactory . |
IRemoteFile |
getParentFolder(IRemoteFile folderOrFile)
Given a folder or file, return its parent folder object. |
PropertyPage |
getPropertyPage(Composite parent)
Override so we are sure no pages are contributed to the subsystems tab of the property page for the parent connection. |
String |
getRemoteEncoding()
Returns the encoding of the local file system. |
IRemoteFile |
getRemoteFileObject(IRemoteFile parent,
String folderOrFileName)
Given a un-qualified file or folder name, and its parent folder object, return an IRemoteFile object for the file. |
IRemoteFile |
getRemoteFileObject(String folderOrFileName)
Given a fully qualified file or folder name, return an IRemoteFile object for it. |
IRemoteSearchResultConfigurationFactory |
getRemoteSearchResultConfigurationFactory()
Gets the search result configuration factory associated with the subsystem. |
AbstractSystemManager |
getSystemManager()
Return a singleton instance of an AbstractSystemManager subclass that manages a pool of ISystem objects, one per system connection. |
int |
getUnusedPort()
Returns an unused port number, or -1 if none. |
boolean |
isCaseSensitive()
Return true if file names are case-sensitive. |
IRemoteFile[] |
listFiles(IRemoteFile parent,
String fileNameFilter,
IRemoteFileContext context)
Return a list of remote files in the given folder, which match the given name pattern. |
IRemoteFile[] |
listFolders(IRemoteFile parent,
String folderNameFilter,
IRemoteFileContext context)
Return a subsetted list of remote folders in the given parent folder on the remote system. |
IRemoteFile[] |
listFoldersAndFiles(IRemoteFile parent,
String fileNameFilter,
IRemoteFileContext context)
Return a list of remote folders and files in the given folder. |
IRemoteFile[] |
listRoots(IRemoteFileContext context)
Return a list of roots/drives on the remote system. |
boolean |
move(IRemoteFile sourceFolderOrFile,
IRemoteFile targetFolder,
String newName)
Move a file or folder to a new target parent folder. |
boolean |
rename(IRemoteFile folderOrFile,
String newName)
Rename the given remote file or folder. |
void |
search(IRemoteSearchResultConfiguration searchConfig)
Given a search configuration, searches for its results. |
boolean |
setLastModified(IRemoteFile folderOrFile,
long newDate)
Set the last modified date for the given file or folder. |
boolean |
setReadOnly(IRemoteFile folderOrFile)
Set this file to be readonly. |
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, copyUTF8, copyUTF8, copyUTF8, copyUTF8, getHomeFolder, getLineSeparator, getLocalAddress, getParentFolderName, getParentRemoteFileSubSystemFactory, getPathSeparator, getPathSeparatorChar, getRemoteSearchResultObject, getSeparator, getSeparatorChar, listFiles, listFiles, listFolders, listFolders, listFoldersAndFiles, listFoldersAndFiles, listRoots, setHomeFolder |
Methods inherited from interface com.ibm.etools.systems.subsystems.IRemoteObjectResolver |
---|
getObjectWithAbsoluteName |
Field Detail |
public static final String copyright
Constructor Detail |
public LocalFileSubSystemImpl()
Method Detail |
protected EClass eStaticClass()
eStaticClass
in class RemoteFileSubSystemImpl
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
eInverseAdd
in class RemoteFileSubSystemImpl
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
eInverseRemove
in class RemoteFileSubSystemImpl
public Object eGet(EStructuralFeature eFeature, boolean resolve)
eGet
in class RemoteFileSubSystemImpl
public void eSet(EStructuralFeature eFeature, Object newValue)
eSet
in class RemoteFileSubSystemImpl
public void eUnset(EStructuralFeature eFeature)
eUnset
in class RemoteFileSubSystemImpl
public boolean eIsSet(EStructuralFeature eFeature)
eIsSet
in class RemoteFileSubSystemImpl
public PropertyPage getPropertyPage(Composite parent)
getPropertyPage
in interface SubSystem
getPropertyPage
in class RemoteFileSubSystemImpl
public AbstractSystemManager getSystemManager()
getSystemManager
in interface SubSystem
getSystemManager
in class SubSystemImpl
public boolean isCaseSensitive()
isCaseSensitive
in interface RemoteFileSubSystem
isCaseSensitive
in class RemoteFileSubSystemImpl
public IRemoteFile[] listRoots(IRemoteFileContext context)
listRoots
in class RemoteFileSubSystemImpl
public void search(IRemoteSearchResultConfiguration searchConfig)
RemoteFileSubSystem
search
in interface RemoteFileSubSystem
searchConfig
- a search configuration.RemoteFileSubSystem.search(com.ibm.etools.systems.subsystems.IRemoteSearchResultConfiguration)
public void cancelSearch(IRemoteSearchResultConfiguration searchConfig)
RemoteFileSubSystem
cancelSearch
in interface RemoteFileSubSystem
searchConfig
- a search configuration.RemoteFileSubSystem.cancelSearch(com.ibm.etools.systems.subsystems.IRemoteSearchResultConfiguration)
public String getRemoteEncoding()
getRemoteEncoding
in interface RemoteFileSubSystem
public IRemoteSearchResultConfigurationFactory getRemoteSearchResultConfigurationFactory()
RemoteFileSubSystem
getRemoteSearchResultConfigurationFactory
in interface RemoteFileSubSystem
RemoteFileSubSystem.getRemoteSearchResultConfigurationFactory()
public IRemoteFile[] listFolders(IRemoteFile parent, String folderNameFilter, IRemoteFileContext context)
listFolders
in class RemoteFileSubSystemImpl
parent
- The parent folder to list folders infolderNameFilter
- The name pattern for subsetting the listcontext
- The holder of state informationpublic IRemoteFile[] listFiles(IRemoteFile parent, String fileNameFilter, IRemoteFileContext context)
listFiles
in class RemoteFileSubSystemImpl
parent
- The parent folder to list files infileNameFilter
- The name pattern to subset the list by, or null to return all files.context
- The holder of state informationpublic IRemoteFile[] listFoldersAndFiles(IRemoteFile parent, String fileNameFilter, IRemoteFileContext context)
listFoldersAndFiles
in class RemoteFileSubSystemImpl
parent
- The parent folder to list folders and files infileNameFilter
- The name pattern to subset the file list by, or null to return all files.context
- The holder of state informationpublic IRemoteFile getParentFolder(IRemoteFile folderOrFile)
getParentFolder
in interface RemoteFileSubSystem
getParentFolder
in class RemoteFileSubSystemImpl
folderOrFile
- folder or file to return parent of.public IRemoteFile getRemoteFileObject(String folderOrFileName)
getRemoteFileObject
in interface RemoteFileSubSystem
getRemoteFileObject
in class RemoteFileSubSystemImpl
folderOrFileName
- Fully qualified folder or file namepublic IRemoteFile getRemoteFileObject(IRemoteFile parent, String folderOrFileName)
getRemoteFileObject
in interface RemoteFileSubSystem
getRemoteFileObject
in class RemoteFileSubSystemImpl
parent
- Folder containing the folder or filefolderOrFileName
- Un-qualified folder or file namepublic IRemoteFile createFile(IRemoteFile fileToCreate) throws RemoteFileSecurityException, RemoteFileIOException
createFile
in interface RemoteFileSubSystem
createFile
in class RemoteFileSubSystemImpl
fileToCreate
- The object representing the file to be created.
RemoteFileSecurityException
RemoteFileIOException
createFolders(IRemoteFile)
public IRemoteFile createFolder(IRemoteFile folderToCreate) throws RemoteFileSecurityException, RemoteFileIOException
createFolder
in interface RemoteFileSubSystem
createFolder
in class RemoteFileSubSystemImpl
folderToCreate
- The object representing the folder to be created.
RemoteFileSecurityException
RemoteFileIOException
createFolders(IRemoteFile)
public IRemoteFile createFolders(IRemoteFile folderToCreate) throws RemoteFileSecurityException, RemoteFileIOException
createFolders
in interface RemoteFileSubSystem
createFolders
in class RemoteFileSubSystemImpl
folderToCreate
- The object representing the folder to be created, along with its parents.
RemoteFileSecurityException
RemoteFileIOException
getParentFolder(IRemoteFile)
public boolean delete(IRemoteFile folderOrFile) throws RemoteFolderNotEmptyException, RemoteFileSecurityException, RemoteFileIOException
delete
in interface RemoteFileSubSystem
delete
in class RemoteFileSubSystemImpl
folderOrFile
- represents the object to be deleted.
RemoteFolderNotEmptyException
RemoteFileSecurityException
RemoteFileIOException
public boolean rename(IRemoteFile folderOrFile, String newName) throws RemoteFileIOException, RemoteFileSecurityException
rename
in interface RemoteFileSubSystem
rename
in class RemoteFileSubSystemImpl
folderOrFile
- represents the object to be renamed.newName
- new name to give it.
RemoteFileIOException
RemoteFileSecurityException
public boolean setLastModified(IRemoteFile folderOrFile, long newDate) throws RemoteFileSecurityException, RemoteFileIOException
setLastModified
in interface RemoteFileSubSystem
setLastModified
in class RemoteFileSubSystemImpl
folderOrFile
- represents the object to be renamed.newDate
- new date, in milliseconds from epoch, to assign.
RemoteFileSecurityException
RemoteFileIOException
public boolean setReadOnly(IRemoteFile folderOrFile) throws RemoteFileSecurityException, RemoteFileIOException
setReadOnly
in interface RemoteFileSubSystem
setReadOnly
in class RemoteFileSubSystemImpl
folderOrFile
- represents the object to be renamed.
RemoteFileSecurityException
RemoteFileIOException
public boolean copy(IRemoteFile sourceFolderOrFile, IRemoteFile targetFolder, String newName, IProgressMonitor monitor) throws RemoteFileSecurityException, RemoteFileIOException
copy
in interface RemoteFileSubSystem
sourceFolderOrFile
- The file or folder to copytargetFolder
- The folder to copy to. No guarantee it is on the same system, so be sure to check getSystemConnection()!newName
- The new name for the copied file or folder
RemoteFileSecurityException
RemoteFileIOException
public boolean copyToArchiveWithEncoding(IRemoteFile sourceFolderOrFile, IRemoteFile targetFolder, String newName, String targetEncoding, IProgressMonitor monitor) throws RemoteFileSecurityException, RemoteFileIOException
sourceFolderOrFile
- The file or folder to copytargetFolder
- The folder to copy to. No guarantee it is on the same system, so be sure to check getSystemConnection()!newName
- The new name for the copied file or folder
RemoteFileSecurityException
RemoteFileIOException
public boolean copyFromArchiveWithEncoding(IRemoteFile sourceFolderOrFile, IRemoteFile targetFolder, String newName, String sourceEncoding, boolean isText, IProgressMonitor monitor) throws RemoteFileSecurityException, RemoteFileIOException
sourceFolderOrFile
- The file or folder to copytargetFolder
- The folder to copy to. No guarantee it is on the same system, so be sure to check getSystemConnection()!newName
- The new name for the copied file or folder
RemoteFileSecurityException
RemoteFileIOException
public boolean move(IRemoteFile sourceFolderOrFile, IRemoteFile targetFolder, String newName) throws RemoteFileSecurityException, RemoteFileIOException
move
in interface RemoteFileSubSystem
move
in class RemoteFileSubSystemImpl
sourceFolderOrFile
- The file or folder to movetargetFolder
- The folder to move to. No guarantee it is on the same system, so be sure to check getSystemConnection()!newName
- The new name for the moved file or folder
RemoteFileSecurityException
RemoteFileIOException
public void copy(IRemoteFile source, String destination, String encoding, IProgressMonitor monitor) throws RemoteFileSecurityException, RemoteFileIOException
copy
in interface RemoteFileSubSystem
source
- remote file that represents the file to be obtaineddestination
- the absolute path of the local fileencoding
- the encoding of the local filemonitor
- the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void copyLocalToRemote(String source, String srcEncoding, String remotePath, String rmtEncoding, IProgressMonitor monitor) throws RemoteFileSecurityException, RemoteFileIOException
copyLocalToRemote
in interface RemoteFileSubSystem
copyLocalToRemote
in class RemoteFileSubSystemImpl
source
- the absolute path of the local copysrcEncoding
- the encoding of the local copyremotePath
- remote path that represents the file on the serverrmtEncoding
- the encoding of the remote file.
RemoteFileSecurityException
RemoteFileIOException
public void copyLocalToRemote(InputStream stream, long totalBytes, String srcEncoding, String remotePath, String rmtEncoding, IProgressMonitor monitor) throws RemoteFileSecurityException, RemoteFileIOException
stream
- the input stream with local data.totalBytes
- the total number of bytes to read, or -1 if unknown. If -1 is specified, then the progress monitor must be null
.srcEncoding
- the encoding of the local data.remotePath
- remote path that represents the file on the serverrmtEncoding
- the encoding of the remote file.monitor
- the progress monitor, or RemoteFileSecurityException
RemoteFileIOException
public void copy(String source, IRemoteFile destination, String encoding, IProgressMonitor monitor) throws RemoteFileSecurityException, RemoteFileIOException
copy
in interface RemoteFileSubSystem
source
- the absolute path of the local copydestination
- remote file that represents the file on the serverencoding
- the encoding of the local copymonitor
- the progress monitor
RemoteFileSecurityException
RemoteFileIOException
public void copy(InputStream stream, long totalBytes, IRemoteFile destination, String encoding, IProgressMonitor monitor) throws RemoteFileSecurityException, RemoteFileIOException
RemoteFileSubSystem
copy
in interface RemoteFileSubSystem
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.
RemoteFileSecurityException
RemoteFileIOException
RemoteFileSubSystem.copy(java.io.InputStream, long, com.ibm.etools.systems.subsystems.IRemoteFile, java.lang.String, org.eclipse.core.runtime.IProgressMonitor)
public boolean accept(File file)
accept
in interface FileFilter
public ILanguageUtilityFactory getLanguageUtilityFactory()
LocalLanguageUtilityFactory
.
getLanguageUtilityFactory
in interface RemoteFileSubSystem
getLanguageUtilityFactory
in class RemoteFileSubSystemImpl
RemoteFileSubSystem.getLanguageUtilityFactory()
public int getUnusedPort()
getUnusedPort
in interface RemoteFileSubSystem
getUnusedPort
in class RemoteFileSubSystemImpl
RemoteFileSubSystem.getUnusedPort()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |