com.tivoli.twg.engine
Class TWGContentInfoObjectHandler

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGContentInfoObjectHandler

public abstract class TWGContentInfoObjectHandler
extends java.lang.Object

This is the base class for populating and maintaining the content info objects for a task association's view. This abstract class provides the interface subclasses must implement in order to provide content info when requested by the console. It is an abstract class so that it can loaded as a bean (through a default ctor) instead of being defined as an interface.

See Also:
TWGContentInfoBeans, TWGContentInfoEventHandler

Constructor Summary
TWGContentInfoObjectHandler()
          Construct the handler object.
 
Method Summary
 void activateContentInfo(boolean viewActive)
          Called whenever this bean's view is activated or inactivated.
 void getContentInfo(long oid)
          Called in response to the user expanding one of the primary content info objects for a specific oid.
 void initializeContent(long beanid)
          Called during the initialization of the TWGContentInfoBeans.
 void updateContentInfo()
          Called to ask the bean to update it's content information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TWGContentInfoObjectHandler

public TWGContentInfoObjectHandler()
Construct the handler object. Default ctor so that it can be loaded as a bean.

Method Detail

initializeContent

public void initializeContent(long beanid)
Called during the initialization of the TWGContentInfoBeans. Subclasses should implement this to perform any setup of initial information needed to create and maintain the content info objects that this task's associated view provides.

Parameters:
beanid - unique id of the bean this handler is for.

activateContentInfo

public void activateContentInfo(boolean viewActive)
Called whenever this bean's view is activated or inactivated. When the first console request's console information, this view is activated and this is called with a true value. When the last console showing this view no longer needs it, then this view is deactivated and this method is called with a false value. This means either no consoles are running, or if any are, the view this bean could provide is not selected by any user.

Parameters:
viewActive - If true, then this handler should provide content information for its task association view. If false, then content information is no longer needed for any console.

updateContentInfo

public void updateContentInfo()
Called to ask the bean to update it's content information. This method is called in response to an UpdateContentInfoCmd request, allowing tasks to update themselves.


getContentInfo

public void getContentInfo(long oid)
Called in response to the user expanding one of the primary content info objects for a specific oid. Subclasses should implement this to provide the content info object(s) that are associated with this object.

Parameters:
oid - object id of the object requesting content info