|
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 com.ibm.etools.iseries.comm.ISeriesAbstractHostAPIProcessor com.ibm.etools.iseries.comm.ISeriesAbstractListProcessor com.ibm.etools.iseries.comm.ISeriesListIFS
public class ISeriesListIFS
A class for listing IFS objects on an iSeries. This is done by calling the appropriate system API.
The output of the list request is a List of objects that implement
the interface IISeriesHostObjectXXX. In order to enable this class
to create instances of classes that implement this interface, the
caller is asked to supply an object that implements the interface
IISeriesHostListObjectFactory. The createObject or createIFSFolderObject
methods of this will be called for each item in the returned list,
depending on whether we are processing an ifs file or ifs folder.
The empty object returned by the supplied factory method will be
examined to see which of the following three interfaces it implements
and the amount of information returned will be determined by that:
IISeriesHostObjectNameOnly
-> returns name only
IISeriesHostObjectBrief
-> returns minimal info
IISeriesHostObjectBasic
-> returns typical info
IISeriesHostObjectExhaustive
-> returns all available info (**)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.etools.iseries.comm.ISeriesAbstractListProcessor |
---|
ISeriesAbstractListProcessor.HostAPIGenericListHeader |
Nested classes/interfaces inherited from class com.ibm.etools.iseries.comm.ISeriesAbstractHostAPIProcessor |
---|
ISeriesAbstractHostAPIProcessor.HostAPIErrorCodeStructure |
Field Summary | |
---|---|
static String |
Copyright
|
Fields inherited from class com.ibm.etools.iseries.comm.ISeriesAbstractListProcessor |
---|
DEFAULT_LISTMEMBER_FACTORY_NAMEONLY, DEFAULT_LISTOBJECT_FACTORY_BASIC, DEFAULT_LISTOBJECT_FACTORY_BRIEF, DEFAULT_LISTOBJECT_FACTORY_EXHAUSTIVE, DEFAULT_LISTOBJECT_FACTORY_NAMEARRAY, DEFAULT_LISTOBJECT_FACTORY_NAMEONLY, GENERIC_HEADER_SIZE, returnListObjectFactory |
Constructor Summary | |
---|---|
ISeriesListIFS()
Constructor used when you do not have an AS400 object already. |
|
ISeriesListIFS(AS400 system)
Constructor when an AS400 object already exists. |
Method Summary | |
---|---|
boolean |
accept(IFSFile file)
Method required by the IFSFileFilter interface from the Toolbox. |
static String |
getExtension(String fileName)
Helper method to get file name extension from file name |
List |
getList(ISeriesAbstractFilterString fsObj)
When basic info is wanted and the default basic factory is ok. |
List |
getListBrief(ISeriesAbstractFilterString fsObj)
When only brief info is wanted and the default brief factory is ok. |
protected List |
getListFromAS400(String filterString)
Prepare and call host. |
List |
getListNameOnly(ISeriesAbstractFilterString fsObj)
When only the name is wanted and the default name factory is ok. |
List |
getObjectList(ISeriesAbstractFilterString fsObj,
IISeriesHostListObjectFactory listObjectFactory)
Do the actual list retrieval. |
List |
getObjectList(ISeriesAbstractFilterString fsObj,
IISeriesHostListObjectFactory listObjectFactory,
IISeriesHostListStatusCallback callback)
Retrieve list of IFS files and/or folders from the AS/400. |
static void |
setFileInfo(IISeriesHostObjectNameOnly obj,
IFSFile fileObj)
Helper method to set file information from IFSFile object. |
Methods inherited from class com.ibm.etools.iseries.comm.ISeriesAbstractListProcessor |
---|
createListObject, getDefaultListObjectFactory, getFilterString, getFilterStringObject, getList, getList, getListObjectFactory, setFilterStringObj, setListObjectFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.etools.iseries.comm.interfaces.IISeriesAPIProcessor |
---|
getWarnings |
Field Detail |
---|
public static final String Copyright
Constructor Detail |
---|
public ISeriesListIFS()
public ISeriesListIFS(AS400 system)
system
- AS400 system to use for the connection. AS400 is a toolbox class.Method Detail |
---|
public List getListNameOnly(ISeriesAbstractFilterString fsObj) throws Exception
getListNameOnly
in interface IISeriesListProcessor
getListNameOnly
in class ISeriesAbstractListProcessor
fsObj
- Filter string object identifying what list to get.
Exception
public List getListBrief(ISeriesAbstractFilterString fsObj) throws Exception
getListBrief
in interface IISeriesListProcessor
getListBrief
in class ISeriesAbstractListProcessor
fsObj
- Filter string object identifying what list to get.
Exception
public List getList(ISeriesAbstractFilterString fsObj) throws Exception
getList
in interface IISeriesListProcessor
getList
in class ISeriesAbstractListProcessor
fsObj
- Filter string object identifying what list to get.
Exception
public List getObjectList(ISeriesAbstractFilterString fsObj, IISeriesHostListObjectFactory listObjectFactory) throws Exception
getObjectList
in class ISeriesAbstractListProcessor
fsObj
- Filter string object identifying what list to get.listObjectFactory
- An object implementing the IISeriesHostListObjectFactory
interface.
This interface prescribes four methods, of which we use two here:
createObject()
implements:
IISeriesHostObjectNameOnly
-> name only
IISeriesHostObjectBrief
-> brief information
IISeriesHostObjectBasic
-> typical information
IISeriesHostObjectExhaustive
-> ALL information the host gives us
Exception
public List getObjectList(ISeriesAbstractFilterString fsObj, IISeriesHostListObjectFactory listObjectFactory, IISeriesHostListStatusCallback callback) throws Exception
getObjectList(ISeriesAbstractFilterString, IISeriesHostListObjectFactory)
method,
but includes a callback object that is called when processing starts for each part of a multi-generic
list request. Since IFS list requests can't be multi-generic, this method is redundant and here for
completeness.
This version of getList is usually used by GUI code that wishes to update a status dialog.
getObjectList
in class ISeriesAbstractListProcessor
fsObj
- Filter string object identifying what list to get.listObjectFactory
- Factory for creating each of the returned objects.callback
- Object to callback as each list phase is started.
Exception
protected List getListFromAS400(String filterString) throws Exception
Exception
public boolean accept(IFSFile file)
public static String getExtension(String fileName)
public static void setFileInfo(IISeriesHostObjectNameOnly obj, IFSFile fileObj)
Object
- whose information is to be populated from info in the IFSFile object.IFSFile
- object to extract the information from.
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |