com.ibm.as400.access

Class Product



  • public class Product
    extends Object
    Represents a licensed product on the system. The isInstalled() method should be called to verify that the product is installed on the system. If the product is not installed, other information returned by getters in this class might not be valid.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static String LOAD_STATE_CHECK_ERROR
      Constant indicating that the Check Product Option (CHKPRDOPT) command was used for this product load, but the postoperation exit program failed or indicated that an error was found.
      static String LOAD_STATE_DEFINED_NO_OBJECT
      Constant indicating that the product load is defined but the product load object for this load does not exist.
      static String LOAD_STATE_DEFINED_OBJECT_EXISTS
      Constant indicating that the product load object exists, but before it can be saved using the Save Licensed Program (SAVLICPGM) command, it must be packaged with either the Package Product Option (PKGPRDOPT) command or the Package Product Option (QSZPKGPO) API.
      static String LOAD_STATE_IBM_SUPPLIED_NOT_COMPATIBLE
      Constant indicating that this product is an IBM-supplied product and it is not compatible with the currently installed release level of the System i operating system.
      static String LOAD_STATE_INSTALLED
      Constant indicating that the product load was installed successfully.
      static String LOAD_STATE_INSTALLED_DELETE_IN_PROGRESS
      Constant indicating that a Delete Licensed Program (DLTLICPGM) command is in progress.
      static String LOAD_STATE_INSTALLED_RESTORE_FAILED
      Constant indicating that a Restore Licensed Program (RSTLICPGM) command failed.
      static String LOAD_STATE_INSTALLED_RESTORE_FAILED_EXIT_PROGRAM_FAILED
      Constant indicating that a Restore Licensed Program (RSTLICPGM) command did not complete successfully.
      static String LOAD_STATE_INSTALLED_RESTORE_IN_PROGRESS
      Constant indicating that a Restore Licensed Program (RSTLICPGM) command is in progress.
      static String LOAD_STATE_PACKAGED
      Constant indicating that the product load object for this load has been packaged with the Package Product Option (PKGPRDOPT) command or the Package Product Option (QSZPKGPO) API.
      static String LOAD_STATE_PACKAGED_DAMAGED
      Constant indicating that the product load object for this load has been packaged with the Package Product Option (PKGPRDOPT) command or the Package Product Option (QSZPKGPO) API, but an object was found to be damaged the last time that the Check Product Option (CHKPRDOPT) command or Save Licensed Program (SAVLICPGM) command was used for this load.
      static String LOAD_STATE_PACKAGED_DELETE_IN_PROGRESS
      Constant indicating that a Delete Licensed Program (DLTLICPGM) command is in progress.
      static String LOAD_STATE_PACKAGED_DELETED
      Constant indicating that the product load object for this load has been packaged with the Package Product Option (PKGPRDOPT) command or the Package Product Option (QSZPKGPO) API, but either an attempt was made to delete the product load using the Delete Licensed Program (DLTLICPGM) command and the attempt failed, or a packaged object was missing the last time the Check Product Option (CHKPRDOPT) command or Save Licensed Program (SAVLICPGM) command was used for this load.
      static String LOAD_STATE_PACKAGED_RENAMED
      Constant indicating that the product load object for this load has been packaged with the Package Product Option (PKGPRDOPT) command or the Package Product Option (QSZPKGPO) API, but either a development library or folder was renamed when the product does not allow dynamic naming, or the product definition or product load for a packaged load was renamed or moved to another library.
      static String LOAD_STATE_PACKAGED_RESTORE_FAILED
      Constant indicating that a Restore Licensed Program (RSTLICPGM) command failed.
      static String LOAD_STATE_PACKAGED_RESTORE_FAILED_EXIT_PROGRAM_FAILED
      Constant indicating that a Restore Licensed Program (RSTLICPGM) command did not complete successfully.
      static String LOAD_STATE_PACKAGED_RESTORE_IN_PROGRESS
      Constant indicating that a Restore Licensed Program (RSTLICPGM) command is in progress.
      static String LOAD_STATE_RESTORED
      Constant indicating that the product load object for this load was loaded on to the system by the Restore Licensed Program (RSTLICPGM) command.
      static String LOAD_STATE_RESTORED_DAMAGED
      Constant indicating that the product load object for this load was installed by the Restore Licensed Program (RSTLICPGM) command, but an object is damaged.
      static String LOAD_STATE_RESTORED_DELETED
      Constant indicating that the product load object for this load was installed by the Restore Licensed Program (RSTLICPGM) command, but either an object was found to be missing when the Check Product Option (CHKPRDOPT) command or the Save Licensed Program (SAVLICPGM) command was used, or an error occurred while the Delete Licensed Program (DLTLICPGM) command was being used.
      static String LOAD_STATE_RESTORED_EXIT_PROGRAM_FAILED
      Constant indicating that the product load object for this load was loaded on to the system by the Restore Licensed Program (RSTLICPGM) command but a postoperation exit program failed.
      static String LOAD_STATE_RESTORED_RENAMED
      Constant indicating that an installed library or folder was renamed, but the product does not allow dynamic naming.
      static String LOAD_TYPE_CODE
      Constant indicating a product load type of *CODE.
      static String LOAD_TYPE_LANGUAGE
      Constant indicating a product load type of *LNG.
      static String PRODUCT_FEATURE_CODE
      Constant indicating a feature ID of *CODE.
      static String PRODUCT_ID_OPERATING_SYSTEM
      Constant indicating a product ID of *OPSYS.
      static String PRODUCT_OPTION_BASE
      Constant indicating a product option of *BASE.
      static String PRODUCT_RELEASE_ANY
      Constant indicating that the release level of the product should be determined at runtime by the system.
      static String PRODUCT_RELEASE_CURRENT
      Constant indicating a release level of *CUR.
      static String PRODUCT_RELEASE_ONLY
      Constant indicating a release level of *ONLY.
      static String PRODUCT_RELEASE_PREVIOUS
      Constant indicating a release level of *PRV.
      static String REGISTRATION_TYPE_CUSTOMER
      Constant indicating that the registration type *CUSTOMER was specified when the product load or product definition was created.
      static String REGISTRATION_TYPE_PHONE
      Constant indicating that the registration type *PHONE was specified when the product load or product definition was created.
      static String REGISTRATION_TYPE_SYSTEM
      Constant indicating that the registration type is the same as the registration type for the operating system.
      static int REQUIREMENTS_BASE_TOO_OLD
      Constant indicating that the release of the *BASE is too old compared to the option.
      static int REQUIREMENTS_MET
      Constant indicating that the releases of the *BASE and option meet all requirements.
      static int REQUIREMENTS_OPTION_TOO_OLD
      Constant indicating that the release of the option is too old compared to the *BASE.
      static int REQUIREMENTS_UNKNOWN
      Constant indicating that there is not enough information available to determine if the release requirements have been met.
      static String SYMBOLIC_LOAD_STATE_CREATED
      Constant indicating that the product load object for this load exists.
      static String SYMBOLIC_LOAD_STATE_DAMAGED
      Constant indicating that either the product load object has been damaged (if this option is something other than the base option or the load type is a language load), or the product definition for this product ID and release level has been damaged or the product load object has been damaged (if this option is for the base option and code load type).
      static String SYMBOLIC_LOAD_STATE_DEFINED
      Constant indicating that the load is defined but the product load object for this load does not exist.
      static String SYMBOLIC_LOAD_STATE_INSTALLED
      Constant indicating that the product load object for this load was loaded on to the system by the Restore Licensed Program (RSTLICPGM) command.
      static String SYMBOLIC_LOAD_STATE_LOADED
      Constant indicating that either a Restore Licensed Program (RSTLICPGM) function is in progress, a Delete Licensed Program (DLTLICPGM) function is in progress, or the product was created previous to V2R2M0 and there was an error during the process of converting product information.
      static String SYMBOLIC_LOAD_STATE_PACKAGED
      Constant indicating that the product load object for this load has been packaged with the Package Product Option (PKGPRDOPT) command.