com.tivoli.twg.engine
Class TWGConAssociation

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

public class TWGConAssociation
extends TWGConObject

Console object used to shadow the state of a TWGAssociation object in the Director Server.


Field Summary
 
Fields inherited from class com.tivoli.twg.engine.TWGConObject
INVALID_OBJECT_ID
 
Constructor Summary
TWGConAssociation(long obj_id)
          Constructor for TWGConAssociation with given object ID
 
Method Summary
 java.lang.String getIDString()
          Get association ID string
 int getMenuWeight()
          Get menu order priority : suggested sorting weight for building association selection menu : menu should be order by ascending weight, sorted by name when weights are equal (0+ are available for add-on associations)
 java.lang.String getName()
          Get name of association
 boolean isDisabled()
          Test to see if association is disabled
 boolean isHidden()
          Test to see if association should be hidden
 java.lang.String toString()
          Generate string representation of object
 void UpdateUsingShadowRecord(byte[] rec, 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, 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
 

Constructor Detail

TWGConAssociation

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

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

UpdateUsingShadowRecord

public void UpdateUsingShadowRecord(byte[] rec,
                                    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:
rec - - 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 name of association

Returns:
association name

getMenuWeight

public int getMenuWeight()
Get menu order priority : suggested sorting weight for building association selection menu : menu should be order by ascending weight, sorted by name when weights are equal (0+ are available for add-on associations)


getIDString

public java.lang.String getIDString()
Get association ID string

Returns:
instance unique ID string, or null if none

isDisabled

public final boolean isDisabled()
Test to see if association is disabled


isHidden

public final boolean isHidden()
Test to see if association should be hidden