com.tivoli.twg.engine
Class TWGConPrivToken

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

public class TWGConPrivToken
extends TWGConObject

Console shadow object for TWGPrivToken


Field Summary
 
Fields inherited from class com.tivoli.twg.engine.TWGConObject
INVALID_OBJECT_ID
 
Constructor Summary
TWGConPrivToken(long obj_id)
          Constructor for TWGConPrivToken with given object ID
 
Method Summary
 void Delete()
          Destructor for TWGConPrivToken
static TWGConPrivToken findToken(java.lang.String id)
          Find privilege token by ID
 java.lang.String getID()
          Get token ID
 java.lang.String getName()
          Get token name
static StringValueSet getTokenIDs()
          Get set of all token ID strings
static TWGConPrivToken[] getTokens()
          Get list of all tokens
 boolean isDefaultEnabled()
          Test if attribute defaults to enabled
 java.lang.String toString()
          Generate string representation of object
 void UpdateUsingShadowRecord(byte[] buf, int rec_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, 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
 

Constructor Detail

TWGConPrivToken

public TWGConPrivToken(long obj_id)
                throws DuplicateObjectIDException
Constructor for TWGConPrivToken with given object ID

Parameters:
obj_id - - object ID of console object
Throws:
DuplicateObjectIDException - if ID is duplicate of existing object ID
Method Detail

Delete

public void Delete()
Destructor for TWGConPrivToken

Overrides:
Delete in class TWGConObject

UpdateUsingShadowRecord

public void UpdateUsingShadowRecord(byte[] buf,
                                    int rec_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:
buf - - byte array containing opaque representation of shadowed attributes
rec_off - - offset of shadow record in byte array
rec_len - - length of shadow record in byte array

toString

public java.lang.String toString()
Generate string representation of object

Overrides:
toString in class TWGConObject
Returns:
string representation

getName

public java.lang.String getName()
Get token name

Returns:
token descriptive name

getID

public java.lang.String getID()
Get token ID

Returns:
token ID string

isDefaultEnabled

public boolean isDefaultEnabled()
Test if attribute defaults to enabled

Returns:
true if attribute is enabled by default

getTokenIDs

public static StringValueSet getTokenIDs()
Get set of all token ID strings

Returns:
read-only set of token ID strings

getTokens

public static TWGConPrivToken[] getTokens()
Get list of all tokens

Returns:
array of token objects

findToken

public static TWGConPrivToken findToken(java.lang.String id)
Find privilege token by ID

Parameters:
id - - token ID to find
Returns:
token object found, or null if not found