|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FileServiceSubSystem com.ibm.etools.iseries.subsystems.ifs.files.IFSFileServiceSubSystem
public class IFSFileServiceSubSystem
Define a FileServiceSubSystem which implements IToolboxSubsystem interface.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
IFSFileServiceSubSystem(IHost host,
IConnectorService connectorService,
IFileService hostFileService,
IHostFileToRemoteFileAdapter fileAdapter,
ISearchService searchService)
Constructor. |
Method Summary | |
---|---|
protected boolean |
checkStripSequenceNumber(String source,
String remotePath,
String remoteFileName)
Check if we need to strip sequence number or not on a given local file. |
protected boolean |
checkUserDecision(String source,
String remotePath,
String remoteFileName)
Return true if user chooses to strip the sequence number, false otherwise. |
void |
copy(IRemoteFile sourceFolderOrFile,
IRemoteFile targetFolder,
String newName,
IProgressMonitor monitor)
|
void |
copyBatch(IRemoteFile[] sourceFolderOrFiles,
IRemoteFile targetFolder,
IProgressMonitor monitor)
|
IRemoteFile |
createFile(IRemoteFile fileToCreate,
IProgressMonitor monitor)
|
void |
download(IRemoteFile file,
String localpath,
String encoding,
IProgressMonitor monitor)
|
IFSCacheHandler |
getCacheHandler()
Returns cache handler for this subsystem |
ISubSystem |
getCmdSubSystem()
Return the command subsystem ("iSeries Commands") for executing remote QSYS commands |
String |
getCurrentDirectory()
Get the current directory for this connection |
boolean |
getHeadlessUserDecisionForTest(String source,
String remotePath)
Return user choice |
ISubSystem |
getIFSCmdSubSystem()
|
ISubSystem |
getObjectSubSystem()
Return the objects subsystem ("iSeries Objects") for accessing remote QSYS libs, objs, mbrs, etc. |
Object |
getObjectWithAbsoluteName(String key,
IProgressMonitor monitor)
|
IRemoteFile |
getRemoteFileObject(String folderOrFileName,
IProgressMonitor monitor)
Constructs and returns an IRemoteFile object given a fully-qualified file or folder name. |
IRemoteFile[] |
getRemoteFileObjects(String[] folderOrFileNames,
IProgressMonitor monitor)
|
protected void |
initUploadMultiple(int uploadFileNumber)
Initialize state variables before uploading multiple files for sequence checking. |
protected Object[] |
internalResolveFilterString(String filterString,
IProgressMonitor monitor)
Actually resolve an absolute filter string. |
protected boolean |
isPromptNeededFromPreferenceSetting(String source)
Whether or not the user should be prompted before uploading this file using the internal sequence numbers |
void |
move(IRemoteFile sourceFolderOrFile,
IRemoteFile targetFolder,
String newName,
IProgressMonitor monitor)
|
void |
setHeadlessModeForTest(boolean headlessMode)
Set if we need to get user input from UI. |
void |
setHeadlessUserDecisionForTest(boolean headlessUserChoice)
Set user choice. |
void |
setShouldSequenceNumberStrip(boolean shouldStrip)
Set boolean flag for stripping sequence number or not. |
boolean |
shouldStripSequenceNumber()
Return true if sequence number should be stripped, false otherwise. |
boolean |
supportsEncoding()
|
void |
upload(String source,
IRemoteFile destination,
String encoding,
IProgressMonitor monitor)
|
void |
upload(String source,
String srcEncoding,
String remotePath,
String rmtEncoding,
IProgressMonitor monitor)
|
void |
uploadMultiple(String[] sources,
IRemoteFile[] destinations,
String[] encodings,
IProgressMonitor monitor)
|
void |
uploadMultiple(String[] sources,
String[] srcEncodings,
String[] remotePaths,
String[] rmtEncodings,
IProgressMonitor monitor)
|
protected boolean |
uploadWithSequenceNumberChecking(String source,
String remoteParentPath,
String remoteFileName,
boolean isBinary,
String srcEncoding,
String rmtEncoding,
IProgressMonitor monitor)
Upload file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String copyright
Constructor Detail |
---|
public IFSFileServiceSubSystem(IHost host, IConnectorService connectorService, IFileService hostFileService, IHostFileToRemoteFileAdapter fileAdapter, ISearchService searchService)
host
- connectorService
- hostFileService
- fileAdapter
- searchService
- Method Detail |
---|
public boolean supportsEncoding()
public IRemoteFile getRemoteFileObject(String folderOrFileName, IProgressMonitor monitor) throws SystemMessageException
folderOrFileName
- Fully qualified folder or file namemonitor
- the progress monitor
SystemMessageException
IRemoteFile
protected Object[] internalResolveFilterString(String filterString, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
org.eclipse.rse.core.subsystems.SubSystem#internalResolveFilterString(String,IProgressMonitor)
public boolean shouldStripSequenceNumber()
public void setShouldSequenceNumberStrip(boolean shouldStrip)
stripSequenceNumber:
- true to strip the sequence number, false otherwise.public void upload(String source, String srcEncoding, String remotePath, String rmtEncoding, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
protected boolean uploadWithSequenceNumberChecking(String source, String remoteParentPath, String remoteFileName, boolean isBinary, String srcEncoding, String rmtEncoding, IProgressMonitor monitor) throws SystemMessageException
source:
- the absolute path of the local copyremoteParentPath:
- remote parent pathremoteFileName:
- remote file nameisBinary:
- is binary or notsrcEncoding:
- source encodingrmtEncoding:
- remote encodingmonitor:
- IProgressMonitor object
SystemMessageException
public void uploadMultiple(String[] sources, IRemoteFile[] destinations, String[] encodings, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void uploadMultiple(String[] sources, String[] srcEncodings, String[] remotePaths, String[] rmtEncodings, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
protected void initUploadMultiple(int uploadFileNumber)
uploadFileNumber:
- the number of files to be uploadedprotected boolean checkStripSequenceNumber(String source, String remotePath, String remoteFileName)
source:
- the absolute path of the local copyremotePath:
- remote pathremoteFileName:
- remote file name
protected boolean checkUserDecision(String source, String remotePath, String remoteFileName)
source:
- the absolute path of the local copyremotePath:
- remote pathremoteFileName:
- remote file name
protected boolean isPromptNeededFromPreferenceSetting(String source)
fileName
- the file name
public void upload(String source, IRemoteFile destination, String encoding, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void setHeadlessModeForTest(boolean headlessMode)
public boolean getHeadlessUserDecisionForTest(String source, String remotePath)
public void setHeadlessUserDecisionForTest(boolean headlessUserChoice)
public void download(IRemoteFile file, String localpath, String encoding, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void copy(IRemoteFile sourceFolderOrFile, IRemoteFile targetFolder, String newName, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void copyBatch(IRemoteFile[] sourceFolderOrFiles, IRemoteFile targetFolder, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public void move(IRemoteFile sourceFolderOrFile, IRemoteFile targetFolder, String newName, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public ISubSystem getIFSCmdSubSystem()
public String getCurrentDirectory() throws SystemMessageException
SystemMessageException
public IFSCacheHandler getCacheHandler()
public ISubSystem getCmdSubSystem()
IISeriesSubSystem
getCmdSubSystem
in interface IISeriesSubSystem
public ISubSystem getObjectSubSystem()
IISeriesSubSystem
getObjectSubSystem
in interface IISeriesSubSystem
public Object getObjectWithAbsoluteName(String key, IProgressMonitor monitor) throws Exception
Exception
public IRemoteFile createFile(IRemoteFile fileToCreate, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
public IRemoteFile[] getRemoteFileObjects(String[] folderOrFileNames, IProgressMonitor monitor) throws SystemMessageException
SystemMessageException
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |