|
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.ISeriesListLibraries
public class ISeriesListLibraries
A class for listing libraries on an iSeries.
This is done by calling the system API QUSRJOBI.
Note this class is only for lists of *LIBL, *CURLIB, *USRLIB or *PRODLIBL.
All other library list requests are implicitly forwarded to ISeriesListObjects
on your behalf.
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
IISeriesHostListObject
.
This list processor only ever calls the createLibraryObject
method of that factory for each returned item.
This object returned by the supplied factory 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 information 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
|
static String |
CURLIB
|
static String |
LIBL
|
static String |
PRODLIBL
|
static String |
SYSLIBL
|
static String |
USRLIBL
|
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 | |
---|---|
ISeriesListLibraries()
Constructor used when you do not have an AS400 object already. |
|
ISeriesListLibraries(AS400 system)
Constructor when an AS400 object already exists. |
Method Summary | |
---|---|
protected List |
buildList(String javaTxt,
int pNumberItemsTODO,
int pListStartingPosition,
int sizePerItem)
Build the list |
void |
copyLibraryProperties(IISeriesHostObjectBrief toObj,
IISeriesHostObjectBrief fromObj)
Copy library properties from one object to another |
protected int |
determineInfoLevel(IISeriesHostObjectNameOnly obj)
Examine an object returned by the supplied object factory to determine what information level is requested by the caller. |
boolean |
getExcludeCurLib()
Retrieve exclude *CURLIB value. |
boolean |
getGetAllLibraryInformation()
Retrieve all library information value. |
int |
getInfoLevel()
Get the level of information to retrieve for each object. |
List |
getList(ISeriesAbstractFilterString fsObj)
Return list of library objects with basic information per library. |
List |
getListBrief(ISeriesAbstractFilterString fsObj)
Return list of library objects with brief information per library. |
List |
getListExhaustive(ISeriesAbstractFilterString fsObj)
Return list of library objects with full information per library. |
protected List |
getListFromAS400(String filterString)
Call QUSRJOBI on AS/400 to get the list. |
List |
getListNameOnly(ISeriesAbstractFilterString fsObj)
Return list of library objects with only name information per library. |
List |
getObjectList(ISeriesAbstractFilterString fsObj,
IISeriesHostListObjectFactory listObjectFactory)
Retrieve list of libraries from the AS/400 using the supplied factory to create each object. |
List |
getObjectList(ISeriesAbstractFilterString fsObj,
IISeriesHostListObjectFactory listObjectFactory,
IISeriesHostListStatusCallback callback)
Retrieve list of libraries from the AS/400 using the supplied factory to create each object. |
protected IISeriesHostObjectNameOnly |
populateObj(String javaTxt,
int start)
Build a return object with information for one file system object. |
void |
setExcludeCurLib(boolean exclude)
Set to true if you want to exclude *CURLIB in a *USRLIBL request. |
protected void |
setFromAS400ListObjects(boolean from)
|
void |
setGetAllLibraryInformation(boolean set)
Set to true if you want to get all library object info on a *LIBL, *USRLIBL or *CURLIB request. |
void |
setInfoLevel(int infoLevel)
Set the level of information to retrieve for each object. |
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
public static final String LIBL
public static final String CURLIB
public static final String USRLIBL
public static final String SYSLIBL
public static final String PRODLIBL
Constructor Detail |
---|
public ISeriesListLibraries()
public ISeriesListLibraries(AS400 system)
AS400
- system to use for the connection.Method Detail |
---|
public List getList(ISeriesAbstractFilterString fsObj) throws Exception
getList
where we use a default list object factory that returns
an ISeriesHostObjectBasic
object for each item in the returned list.
Note this will only return non-brief information for library list requests that
are not special (*LIBL, *CURLIB, *USRLIB, *PRODLIBL).
getList
in interface IISeriesListProcessor
getList
in class ISeriesAbstractListProcessor
fsObj
- Filter string object identifying what list to get.
Exception
public List getListNameOnly(ISeriesAbstractFilterString fsObj) throws Exception
getList
where we use a default list object factory that returns
an ISeriesHostObjectNameOnly
object for each item in the returned list.
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
getList
where we use a default list object factory that returns
an ISeriesHostObjectBrief
object for each item in the returned list.
getListBrief
in interface IISeriesListProcessor
getListBrief
in class ISeriesAbstractListProcessor
fsObj
- Filter string object identifying what list to get.
Exception
public List getListExhaustive(ISeriesAbstractFilterString fsObj) throws Exception
getList
where we use a default list object factory that returns
an ISeriesHostObjectExhaustive
object for each item in the returned list.
Note this will only return non-brief information for library list requests that are not special (*LIBL, *CURLIB, *USRLIB, *PRODLIBL).
Exception
public List getObjectList(ISeriesAbstractFilterString fsObj, IISeriesHostListObjectFactory listObjectFactory) throws Exception
Note this object and this method are only for special library list requests:
*LIBL, *CURLIB, *USRLIBL or *PRODLIBL. All other library list requests are forwarded
to ISeriesListObjects
on your behalf.
getObjectList
in class ISeriesAbstractListProcessor
Filter
- string object identify what list to get.An
- object implementing the IISeriesHostListObjectFactory
interface. This interface prescribes four methods:
createObject
.
This method is called to create an Object object
createLibraryObject
.
This method is called to create a Library object
createDBFileObject
.
This method is called to create a database File object.
createIFSFolderObject
.
This method is called to create an IFS folder object.
Each returned object is populated with data from the host about that host item. The list of all objects is returned as a List
The amount of data put into is determined by examining which of the four interfaces the object returned by createXXXObject() implements:
IISeriesHostObjectNameOnly
-> returns only the name
IISeriesHostObjectBrief
-> returns minimal info
IISeriesHostObjectBasic
-> returns typical info
IISeriesHostObjectExhaustive
-> returns all available info
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 library list requests can't be multi-generic, this method is redundant and here for
completeness.
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
protected List buildList(String javaTxt, int pNumberItemsTODO, int pListStartingPosition, int sizePerItem)
protected IISeriesHostObjectNameOnly populateObj(String javaTxt, int start)
lib
- obj to populateint
- index into the String where item starts.
public void copyLibraryProperties(IISeriesHostObjectBrief toObj, IISeriesHostObjectBrief fromObj)
protected void setFromAS400ListObjects(boolean from)
public boolean getGetAllLibraryInformation()
public void setGetAllLibraryInformation(boolean set)
public boolean getExcludeCurLib()
public void setExcludeCurLib(boolean exclude)
public 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 |