com.ibm.commerce.scheduler.beans
Class RegistryItemsDataBean

java.lang.Object
  |
  +--com.ibm.commerce.beans.InputDataBeanImpl
        |
        +--com.ibm.commerce.beans.SmartDataBeanImpl
              |
              +--com.ibm.commerce.scheduler.beans.RegistryItemsDataBean
All Implemented Interfaces:
DataBean, InputDataBean, SchedulerDataBean, java.io.Serializable, SmartDataBean

public class RegistryItemsDataBean
extends SmartDataBeanImpl
implements SchedulerDataBean

A data bean that represents the different registry components.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          The IBM Copyright Statement.
 
Fields inherited from class com.ibm.commerce.beans. SmartDataBeanImpl
commandContext
 
Fields inherited from class com.ibm.commerce.beans. InputDataBeanImpl
requestProperties
 
Fields inherited from interface com.ibm.commerce.beans. DataBean
emptyString
 
Constructor Summary
RegistryItemsDataBean()
          Creates the registry items data bean.
 
Method Summary
 java.lang.String getComponent(int index)
          Returns the name of the registry component.
 java.lang.String getStatus(int index)
          Returns the current state of the registry component.
 void populate()
          Retrieves all the registry components defined for the current commerce instance.
 int size()
          Returns the number of available registry components.
 
Methods inherited from class com.ibm.commerce.beans. SmartDataBeanImpl
fulfills, getCommandContext, getResources, setCommandContext
 
Methods inherited from class com.ibm.commerce.beans. InputDataBeanImpl
getRequestProperties, setRequestProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.beans. InputDataBean
getRequestProperties, setRequestProperties
 
Methods inherited from interface com.ibm.commerce.beans. SmartDataBean
getCommandContext, setCommandContext
 

Field Detail
public static final java.lang.String COPYRIGHT
The IBM Copyright Statement.
See Also:
Constant Field Values
Constructor Detail

RegistryItemsDataBean

public RegistryItemsDataBean()
Creates the registry items data bean.
Method Detail

getComponent

public java.lang.String getComponent(int index)
Returns the name of the registry component.
Parameters:
index - the index of the registry component.
Returns:
the name of the registry component.

getStatus

public java.lang.String getStatus(int index)
Returns the current state of the registry component.
Parameters:
index - the index of the registry component.
Returns:
the current state. A state of "R" means the componet is refreshing itself. A state of "C" means that the component is refreshed.

populate

public void populate()
              throws java.lang.Exception
Retrieves all the registry components defined for the current commerce instance.
Specified by:
populate in interface SmartDataBean
Overrides:
populate in class SmartDataBeanImpl
Throws:
java.lang.Exception - if there is any problem retrieving the registry components.

size

public int size()
Returns the number of available registry components.
Returns:
the number of registry components.