|
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.ISeriesListMembers
public class ISeriesListMembers
A class for listing members on an ISeries. This is done by calling the system API QUSLMBR.
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
.
This prescribes a number of methods, but for member list requests,
only one of these methods is used.
The createObject
method of the supplied factory object will be called for each item
in the returned list. The resulting object from the createObject call 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 and context info only
IISeriesHostObjectBrief
-> returns minimal info
IISeriesHostObjectBasic
-> returns typical info
PLEASE NOTE THAT MEMBER LISTS ONLY SUPPORT BRIEF AND BASIC LEVELS, NOT THE EXHAUSTIVE LEVEL SUPPORTED BY OBJECTS. FURTHER, THE SIZE IS NOT AVAILABLE IN THE BASIC LEVEL.
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 | |
---|---|
ISeriesListMembers()
Constructor used when you do not have an AS400 object already. |
|
ISeriesListMembers(AS400 system)
Constructor when there is an existing AS400 object. |
Method Summary | |
---|---|
protected void |
buildList(int nbrRows,
int listStartingPosition,
int sizePerRow)
Originally BuildListMBR in AS400eList Build the list. |
protected int |
determineInfoLevel(IISeriesHostObjectNameOnly obj)
Examine an object returned by the supplied object factory to determine what information level is requested by the caller. |
int |
getInfoLevel()
Get the level of information to retrieve for each object. |
List |
getList(ISeriesAbstractFilterString fsObj)
Retrieve a list of members, returning a typical (basic) amount of information per member. |
List |
getListBrief(ISeriesAbstractFilterString fsObj)
Retrieve a list of members, returning a brief (minimal) amount of information per member. |
protected void |
getListFromAS400(String filterString)
Call QUSLMBR on AS/400 to get the list. |
ISeriesListMembersHeader |
getListHeader()
This method returns the member list header information. |
String[] |
getListNameArray(ISeriesAbstractFilterString fsObj)
Retrieve list of names-only as an array of strings. |
List |
getListNameOnly(ISeriesAbstractFilterString fsObj)
Retrieve a list of members, returning the name of each member. |
boolean |
getMemberOverride()
Query whether this list processor honors member override information |
List |
getObjectList(ISeriesAbstractFilterString fsObj,
IISeriesHostListObjectFactory listObjectFactory)
Retrieve a list of objects, returning objects created by a supplied object factory. |
List |
getObjectList(ISeriesAbstractFilterString fsObj,
IISeriesHostListObjectFactory listObjectFactory,
IISeriesHostListStatusCallback callback)
Retrieve a list of members, informing the caller when processing starts for each part of a multi-generic list. |
protected void |
populateObj()
Build a return object with information for one file system object. |
void |
setInfoLevel(int infoLevel)
Set the level of information to retrieve for each object. |
void |
setMemberOverride(boolean override)
Specify whether member overrides are honored or not during list processing. |
void |
setSystem(AS400 system)
Set the AS/400 object used for this list processor. |
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 ISeriesListMembers()
public ISeriesListMembers(AS400 system)
AS400
- system to use for the connection.Method Detail |
---|
public void setMemberOverride(boolean override)
true=>honor
- overrides, false=>do not honor overridespublic boolean getMemberOverride()
public List getList(ISeriesAbstractFilterString fsObj) throws Exception
ISeriesHostObjectBasic
objects for each item in the returned list.
getList
in interface IISeriesListProcessor
getList
in class ISeriesAbstractListProcessor
fsObj
- Filter string object identifying what list to get.
ISeriesHostObjectBasic
objects.
Exception
public List getListNameOnly(ISeriesAbstractFilterString fsObj) throws Exception
ISeriesHostMemberNameOnly
objects for each item in the returned list.
getListNameOnly
in interface IISeriesListProcessor
getListNameOnly
in class ISeriesAbstractListProcessor
fsObj
- Filter string object identifying what list to get.
ISeriesHostMemberNameOnly
objects.
Exception
public String[] getListNameArray(ISeriesAbstractFilterString fsObj) throws Exception
Exception
public List getListBrief(ISeriesAbstractFilterString fsObj) throws Exception
ISeriesHostObjectBrief
objects for each item in the returned list.
getListBrief
in interface IISeriesListProcessor
getListBrief
in class ISeriesAbstractListProcessor
fsObj
- Filter string object identifying what list to get.
ISeriesHostObjectBrief
objects.
Exception
public List getObjectList(ISeriesAbstractFilterString fsObj, IISeriesHostListObjectFactory listObjectFactory) throws Exception
Note this supports multi-generic lists, where the library and/or file are generic. In this case, the list of libraries will be retrieved first, then for each library the list of files. Finally, for every resulting file, the member list as requested is retrieved. The entire list of all members is concatenated together and returned as a single list.
getObjectList
in class ISeriesAbstractListProcessor
fsObj
- ISeriesMemberFilterString
filter string
object identify what list to get. To construct one of these, pass a string of the form
library/file(member) MBRTYPE(type type ...)
to its constructor.listObjectFactory
- An object implementing the
IISeriesHostListObjectFactory
interface. This interface prescribes four methods:
PLEASE NOTE THAT WHILE MEMBER LISTS FULLY SUPPORT NAME, BRIEF AND BASIC LEVELS, IT ONLY RETURNS THE DATE-CREATED PROPERTY OF THE EXHAUSTIVE LEVEL SUPPORTED BY OBJECTS. FURTHER, THE SIZE IS NOT AVAILABLE IN THE BASIC LEVEL.
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. A multi-generic member list is a request where either the library or the file name are themselves
generic, requiring multiple calls to host member list API.
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
public ISeriesListMembersHeader getListHeader()
protected void getListFromAS400(String filterString) throws Exception
Exception
protected void buildList(int nbrRows, int listStartingPosition, int sizePerRow) throws Exception
Exception
protected void populateObj()
lib
- obj to populateint
- index into the String where item starts.param
- intpublic void setSystem(AS400 system)
ISeriesAbstractHostAPIProcessor
setSystem
in class ISeriesAbstractHostAPIProcessor
public int getInfoLevel()
ISeriesAbstractHostAPIProcessor.INFOLEVEL_BASIC
,
ISeriesAbstractHostAPIProcessor.INFOLEVEL_BRIEF
,
ISeriesAbstractHostAPIProcessor.INFOLEVEL_EXHAUSTIVE
,
ISeriesAbstractHostAPIProcessor.INFOLEVEL_NAME
,
ISeriesAbstractHostAPIProcessor.INFOLEVEL_NAMEARRAY
public void setInfoLevel(int infoLevel)
ISeriesAbstractHostAPIProcessor.INFOLEVEL_BASIC
,
ISeriesAbstractHostAPIProcessor.INFOLEVEL_BRIEF
,
ISeriesAbstractHostAPIProcessor.INFOLEVEL_EXHAUSTIVE
,
ISeriesAbstractHostAPIProcessor.INFOLEVEL_NAME
,
ISeriesAbstractHostAPIProcessor.INFOLEVEL_NAMEARRAY
protected int determineInfoLevel(IISeriesHostObjectNameOnly obj)
ISeriesAbstractHostAPIProcessor
determineInfoLevel
in class ISeriesAbstractHostAPIProcessor
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |