|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.files.util.UniversalFileTransferUtility
Utility class for doing file transfers on universal systems
Constructor Summary | |
---|---|
UniversalFileTransferUtility()
|
Method Summary | |
---|---|
protected static String |
checkForCollision(Shell shell,
IRemoteFile targetFolder,
String oldName)
|
protected static void |
cleanup(IRemoteFile arc1,
File arc2)
|
static IResource |
compressedCopyRemoteResourceToWorkspace(IRemoteFile directory,
IProgressMonitor monitor,
Shell shell)
|
static void |
compressedCopyWorkspaceResourceToRemote(IContainer directory,
IRemoteFile newTargetFolder,
IProgressMonitor monitor,
Shell shell)
|
static IFile |
copyRemoteFileToWorkspace(IRemoteFile srcFileOrFolder,
IProgressMonitor monitor,
Shell shell)
replicates a remote file to the temp files project in the workspace |
static Object |
copyRemoteResourceToWorkspace(IRemoteFile srcFileOrFolder,
IProgressMonitor monitor,
Shell shell)
Replicates a remote file or folder to the workspace |
static Object |
copyWorkspaceResourceToRemote(IResource srcFileOrFolder,
IRemoteFile targetFolder,
IProgressMonitor monitor,
Shell shell)
Perform a copy via drag and drop. |
static Object |
copyWorkspaceResourceToRemote(IResource srcFileOrFolder,
IRemoteFile targetFolder,
IProgressMonitor monitor,
Shell shell,
boolean checkForCollisions)
Perform a copy via drag and drop. |
static String |
getActualHostFor(SubSystem subsystem,
String remotePath)
|
protected static String |
getArchiveExtensionFromProperties()
|
static IResource |
getTempFileFor(IRemoteFile srcFileOrFolder)
Returns the corresponding temp file location for a remote file or folder |
protected static String |
getWorkspaceRemotePath(SubSystem subsystem,
String remotePath)
|
protected static boolean |
isRemoteFileMounted(SubSystem subsystem,
String remotePath)
|
static void |
transferProperties(IResource source,
IRemoteFile target,
IProgressMonitor monitor)
|
static void |
transferRemoteResource(IRemoteFile srcFileOrFolder,
IRemoteFile tgtFolder,
IProgressMonitor monitor,
Shell shell)
Transfer a remote file or folder from one remote location to another. |
protected static String |
useLocalSeparator(String virtualPath)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UniversalFileTransferUtility()
Method Detail |
public static void transferRemoteResource(IRemoteFile srcFileOrFolder, IRemoteFile tgtFolder, IProgressMonitor monitor, Shell shell)
srcFileOrFolder
- the file or folder to copytgtFolder
- the folder to copy tomonitor
- the progress monitorshell
- public static IFile copyRemoteFileToWorkspace(IRemoteFile srcFileOrFolder, IProgressMonitor monitor, Shell shell)
srcFileOrFolder
- the file to copymonitor
- the progress monitorshell
-
public static Object copyRemoteResourceToWorkspace(IRemoteFile srcFileOrFolder, IProgressMonitor monitor, Shell shell)
srcFileOrFolder
- the object which is being copiedmonitor
- a progress monitorshell
-
public static Object copyWorkspaceResourceToRemote(IResource srcFileOrFolder, IRemoteFile targetFolder, IProgressMonitor monitor, Shell shell)
monitor
- the progress monitorshell
-
public static Object copyWorkspaceResourceToRemote(IResource srcFileOrFolder, IRemoteFile targetFolder, IProgressMonitor monitor, Shell shell, boolean checkForCollisions)
monitor
- the progress monitorshell
-
public static void compressedCopyWorkspaceResourceToRemote(IContainer directory, IRemoteFile newTargetFolder, IProgressMonitor monitor, Shell shell) throws Exception
Exception
public static void transferProperties(IResource source, IRemoteFile target, IProgressMonitor monitor) throws CoreException, RemoteFileSecurityException, RemoteFileIOException, SystemMessageException
CoreException
RemoteFileSecurityException
RemoteFileIOException
SystemMessageException
protected static String getArchiveExtensionFromProperties()
public static IResource compressedCopyRemoteResourceToWorkspace(IRemoteFile directory, IProgressMonitor monitor, Shell shell) throws Exception
Exception
protected static void cleanup(IRemoteFile arc1, File arc2) throws RemoteFileIOException, RemoteFileSecurityException, RemoteFolderNotEmptyException
RemoteFileIOException
RemoteFileSecurityException
RemoteFolderNotEmptyException
protected static String useLocalSeparator(String virtualPath)
public static IResource getTempFileFor(IRemoteFile srcFileOrFolder)
srcFileOrFolder
- the remote file or folder
public static String getActualHostFor(SubSystem subsystem, String remotePath)
protected static boolean isRemoteFileMounted(SubSystem subsystem, String remotePath)
protected static String getWorkspaceRemotePath(SubSystem subsystem, String remotePath)
protected static String checkForCollision(Shell shell, IRemoteFile targetFolder, String oldName)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |