|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ibm.as400.access.ProductList
Represents a list of OS/400 licensed products.
Product| Field Summary | |
static java.lang.String |
PRODUCT_FILTER_ALL
Constant representing a list of all products. |
static java.lang.String |
PRODUCT_FILTER_INSTALLED
Constant representing a list of all installed products. |
static java.lang.String |
PRODUCT_FILTER_INSTALLED_OR_SUPPORTED
Constant representing a list of all installed products and all supported products. |
static java.lang.String |
PRODUCT_FILTER_LIST
Constant representing a list filtered by user-specified criteria. |
static java.lang.String |
PRODUCT_FILTER_SUPPORTED
Constant representing a list of all supported products. |
static java.lang.String |
PRODUCT_OPTION_ALL
Constant representing a list of all product options. |
static java.lang.String |
PRODUCT_OPTION_BASE
Constant representing the base product option. |
| Constructor Summary | |
ProductList()
Constructs a ProductList. |
|
ProductList(AS400 system)
Constructs a ProductList for the specified system. |
|
| Method Summary | |
void |
addProductToRetrieve(java.lang.String productID,
java.lang.String productOption,
java.lang.String releaseLevel)
Adds a product to the list of products to retrieve when the product filter is set to PRODUCT_FILTER_LIST. |
void |
clearProductsToRetrieve()
Clears the list of products to retrieve and sets the product filter to PRODUCT_FILTER_ALL. |
Product[] |
getProducts()
Retrieves the list of products from the system. |
void |
setProductFilter(java.lang.String filter)
Sets the product filter used to filter the list. |
void |
setProductOption(java.lang.String option)
Sets the product option used to filter the list. |
void |
setSystem(AS400 system)
Sets the system. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PRODUCT_FILTER_ALL
public static final java.lang.String PRODUCT_FILTER_INSTALLED
public static final java.lang.String PRODUCT_FILTER_INSTALLED_OR_SUPPORTED
public static final java.lang.String PRODUCT_FILTER_LIST
public static final java.lang.String PRODUCT_FILTER_SUPPORTED
public static final java.lang.String PRODUCT_OPTION_ALL
public static final java.lang.String PRODUCT_OPTION_BASE
| Constructor Detail |
public ProductList()
getProducts().
public ProductList(AS400 system)
system - The system from which to retrieve the list of products.| Method Detail |
public void addProductToRetrieve(java.lang.String productID,
java.lang.String productOption,
java.lang.String releaseLevel)
productID - The product ID, for example: "5722SS1" or "5769JC1". The length must be 7 characters.productOption - The product option. Valid values are:
PRODUCT_OPTION_BASE
PRODUCT_OPTION_ALL
releaseLevel - The product release level, for example "V5R1M0" or "V4R5M0". The length must be 6 characters.clearProductsToRetrieve()public void clearProductsToRetrieve()
PRODUCT_FILTER_ALL.
addProductToRetrieve(java.lang.String, java.lang.String, java.lang.String)
public Product[] getProducts()
throws AS400Exception,
AS400SecurityException,
ErrorCompletingRequestException,
java.lang.InterruptedException,
java.io.IOException,
ObjectDoesNotExistException
setProductFilter() and
setProductOption() to change the types of
products that are returned.
Use addProductToRetrieve() to add a
specific product to retrieve and specify PRODUCT_FILTER_LIST
for the product filter.
AS400Exception
AS400SecurityException
ErrorCompletingRequestException
java.lang.InterruptedException
java.io.IOException
ObjectDoesNotExistExceptionpublic void setProductFilter(java.lang.String filter)
PRODUCT_FILTER_INSTALLED
PRODUCT_FILTER_SUPPORTED
PRODUCT_FILTER_INSTALLED_OR_SUPPORTED
PRODUCT_FILTER_ALL
PRODUCT_FILTER_LIST
filter - The product filter.public void setProductOption(java.lang.String option)
public void setSystem(AS400 system)
system - The system.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||