com.tivoli.twg.engine
Class TWGConLicenses

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGConObject
      extended bycom.tivoli.twg.engine.TWGConLicenses

public class TWGConLicenses
extends TWGConObject

Console shadow object for license keys


Field Summary
static int UNLIMITED_LICENSE_MAX
          Constant for license pools which have no 'ceiling'
 
Fields inherited from class com.tivoli.twg.engine.TWGConObject
INVALID_OBJECT_ID
 
Constructor Summary
TWGConLicenses(long oid)
          Default constructor
 
Method Summary
 int getAvailableProductLicenses(int n)
          Get nth product available license count
 int getKeyLicenseCount(int n)
          Get nth key's client license count
 int getKeyProductID(int n)
          Get nth key's product ID
 java.lang.String getKeyProductName(int n)
          Get nth key's product name string
 java.lang.String getKeyString(int n)
          Get nth key string
static int getPrimaryProductFunctionalityLevel()
          Get functionality level of primary product license key
static int getPrimaryProductID()
          Get primary product ID
static int getPrimaryProductOEMID()
          Get OEM ID of primary product license key
static java.lang.String getProductFunctionalityAttribute(java.lang.String attrname)
          Get functionality attribute
static java.lang.String getProductFunctionalityAttribute(java.lang.String attrname, java.lang.String def)
          Get functionality attribute, with default
 int getProductID(int n)
          Get nth product ID
 int getProductLicenseLimit(int n)
          Get nth product license limit (maximum allowed licenses)
 java.lang.String getProductName(int n)
          Get nth product name string
 int getScalabilityLimit(int n)
          Get nth key's scalability limit
 int getTotalProductLicenses(int n)
          Get nth product total license count
 int getUsedProductLicenses(int n)
          Get nth product used license count
static boolean isAllSystemsDiscoveryDisabled()
          Check if "Discover All Systems" is disabled
static boolean isAssociationDisabled(java.lang.String assoc_idstring)
          Check if given association is disabled
static boolean isDisabledFuncsHidden()
          Should disabled functions be hidden from the user?
 boolean isEvaluationKey(int n)
          Test if nth key is evaluation key
static boolean isExtensionDisabled(java.lang.String ext_classname)
          Check if given extension is disabled
 boolean isKeyInUse(int n)
          Test if nth key is in use
 boolean isKeyValid(int n)
          Test if nth key is valid
 boolean isNotForResaleKey(int n)
          Test if nth key is not for resale key
static boolean isPrimaryProductEvalMode()
          Test to see if primary product is using evaluation key
static boolean isPrimaryProductNotForResaleMode()
          Test to see if primary product is using NFR key
 boolean isScalabilityUpgradeKey(int n)
          Test if nth key is scalability upgrade key
 boolean isServerKey(int n)
          Test if nth key is server key
static boolean isSubTaskDisabled(java.lang.String task_idstring, java.lang.String subtask_id)
          Check if given subtask is disabled
static boolean isTaskDisabled(java.lang.String task_idstring)
          Check if given task is disabled
 boolean isUpgradeKey(int n)
          Test if nth key is upgrade key
 boolean keyHasDuplicate(int n)
          Test if nth key has alternate (unused duplicate)
 int numKeys()
          Get number of keys
 int numProducts()
          Get number of product records
static boolean receivedPrimaryProductInfo()
          Check to see if we have received primary product license info
 java.lang.String toString()
          Convert to string
 void UpdateUsingShadowRecord(byte[] buf, int off, int rec_len)
          Update object using shadow record created by the the engine object which is matched with this class.
 
Methods inherited from class com.tivoli.twg.engine.TWGConObject
AllObjects, AllObjects, Delete, DeleteObjects, DeregisterListener, FindObject, getBaseClassName, LookUpShadowClass, ObjectID, ProcessUpdateRequest, RegisterListener, SetObjectID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNLIMITED_LICENSE_MAX

public static final int UNLIMITED_LICENSE_MAX
Constant for license pools which have no 'ceiling'

See Also:
Constant Field Values
Constructor Detail

TWGConLicenses

public TWGConLicenses(long oid)
               throws DuplicateObjectIDException
Default constructor

Parameters:
oid - - object ID
Throws:
DuplicateObjectIDException - if duplicate ID
Method Detail

UpdateUsingShadowRecord

public void UpdateUsingShadowRecord(byte[] buf,
                                    int off,
                                    int rec_len)
Update object using shadow record created by the the engine object which is matched with this class.

Specified by:
UpdateUsingShadowRecord in class TWGConObject
Parameters:
rec_len - - length of shadow record in byte array
buf - - byte array containing opaque representation of shadowed attributes
off - - offset of start of shadow record in byte array

toString

public java.lang.String toString()
Convert to string

Overrides:
toString in class TWGConObject
Returns:
string

numKeys

public int numKeys()
Get number of keys

Returns:
number of keys

getKeyString

public java.lang.String getKeyString(int n)
Get nth key string

Parameters:
n - - index
Returns:
key string, or null

getKeyLicenseCount

public int getKeyLicenseCount(int n)
Get nth key's client license count

Parameters:
n - - index
Returns:
client count, or -1 if bad

getScalabilityLimit

public int getScalabilityLimit(int n)
Get nth key's scalability limit

Parameters:
n - - index
Returns:
scalability limit, or -1 if bad

isKeyValid

public boolean isKeyValid(int n)
Test if nth key is valid

Parameters:
n - - index
Returns:
true if valid, false if not

isServerKey

public boolean isServerKey(int n)
Test if nth key is server key

Parameters:
n - - index
Returns:
true if is server key, false if not

isEvaluationKey

public boolean isEvaluationKey(int n)
Test if nth key is evaluation key

Parameters:
n - - index
Returns:
true if is evaluation key, false if not

isNotForResaleKey

public boolean isNotForResaleKey(int n)
Test if nth key is not for resale key

Parameters:
n - - index
Returns:
true if is not for resale key, false if not

isKeyInUse

public boolean isKeyInUse(int n)
Test if nth key is in use

Parameters:
n - - index
Returns:
true if is key is in use, false if not

isUpgradeKey

public boolean isUpgradeKey(int n)
Test if nth key is upgrade key

Parameters:
n - - index
Returns:
true if is upgrade key, false if not

isScalabilityUpgradeKey

public boolean isScalabilityUpgradeKey(int n)
Test if nth key is scalability upgrade key

Parameters:
n - - index
Returns:
true if is scalability upgrade key, false if not

getKeyProductID

public int getKeyProductID(int n)
Get nth key's product ID

Parameters:
n - - index
Returns:
product ID, or -1 if bad

keyHasDuplicate

public boolean keyHasDuplicate(int n)
Test if nth key has alternate (unused duplicate)

Parameters:
n - - index
Returns:
true if duplicate, false if not

getKeyProductName

public java.lang.String getKeyProductName(int n)
Get nth key's product name string

Parameters:
n - - index
Returns:
product ID, or -1 if bad

numProducts

public int numProducts()
Get number of product records

Returns:
number of products

getProductID

public int getProductID(int n)
Get nth product ID

Parameters:
n - - index
Returns:
product ID, or -1 if bad

getTotalProductLicenses

public int getTotalProductLicenses(int n)
Get nth product total license count

Parameters:
n - - index
Returns:
total license count, or -1 if bad

getUsedProductLicenses

public int getUsedProductLicenses(int n)
Get nth product used license count

Parameters:
n - - index
Returns:
used license count, or -1 if bad

getAvailableProductLicenses

public int getAvailableProductLicenses(int n)
Get nth product available license count

Parameters:
n - - index
Returns:
available license count, or -1 if bad

getProductName

public java.lang.String getProductName(int n)
Get nth product name string

Parameters:
n - - index
Returns:
name string, or null if bad

getProductLicenseLimit

public int getProductLicenseLimit(int n)
Get nth product license limit (maximum allowed licenses)

Parameters:
n - - index
Returns:
total license limit, or -1 if bad

getPrimaryProductID

public static int getPrimaryProductID()
Get primary product ID


isPrimaryProductEvalMode

public static boolean isPrimaryProductEvalMode()
Test to see if primary product is using evaluation key


isPrimaryProductNotForResaleMode

public static boolean isPrimaryProductNotForResaleMode()
Test to see if primary product is using NFR key


receivedPrimaryProductInfo

public static boolean receivedPrimaryProductInfo()
Check to see if we have received primary product license info


getPrimaryProductOEMID

public static int getPrimaryProductOEMID()
Get OEM ID of primary product license key


getPrimaryProductFunctionalityLevel

public static int getPrimaryProductFunctionalityLevel()
Get functionality level of primary product license key


getProductFunctionalityAttribute

public static java.lang.String getProductFunctionalityAttribute(java.lang.String attrname)
Get functionality attribute

Parameters:
attrname - - attribute name

getProductFunctionalityAttribute

public static java.lang.String getProductFunctionalityAttribute(java.lang.String attrname,
                                                                java.lang.String def)
Get functionality attribute, with default

Parameters:
attrname - - attribute name
def - - default value, if property not defined

isAssociationDisabled

public static boolean isAssociationDisabled(java.lang.String assoc_idstring)
Check if given association is disabled

Parameters:
assoc_idstring - - ID string of association to be checked

isTaskDisabled

public static boolean isTaskDisabled(java.lang.String task_idstring)
Check if given task is disabled

Parameters:
task_idstring - - ID string of task to be checked

isSubTaskDisabled

public static boolean isSubTaskDisabled(java.lang.String task_idstring,
                                        java.lang.String subtask_id)
Check if given subtask is disabled

Parameters:
task_idstring - - ID string of task to be checked
subtask_id - - Subtask ID

isExtensionDisabled

public static boolean isExtensionDisabled(java.lang.String ext_classname)
Check if given extension is disabled

Parameters:
ext_classname - - classname of extension to be checked

isDisabledFuncsHidden

public static boolean isDisabledFuncsHidden()
Should disabled functions be hidden from the user?


isAllSystemsDiscoveryDisabled

public static boolean isAllSystemsDiscoveryDisabled()
Check if "Discover All Systems" is disabled