com.ibm.commerce.giftregistry.beans

Class GiftRegistryAnnouncementTemplateListDataBean

  • java.lang.Object
    • com.ibm.commerce.giftregistry.beans.GiftRegistryAnnouncementTemplateListDataBean
  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, java.io.Serializable


    public class GiftRegistryAnnouncementTemplateListDataBean
    extends java.lang.Object
    implements SmartDataBean, InputDataBean
    The GiftRegistryAnnouncementTemplateListDataBean provides a JSP friendly way of accessing announcement templates from the database. This bean is activated by setting an eventTypeId and returns all templates associated with the particular event type. This bean constructs an array for GiftRegistryAnnouncementTemplateDataBean.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GiftRegistryAnnouncementTemplateListDataBean

        public GiftRegistryAnnouncementTemplateListDataBean()
        Default constructor
    • Method Detail

      • getCommandContext

        public CommandContext getCommandContext()
        Gets the command context set within this bean.
        Specified by:
        getCommandContext in interface SmartDataBean
        Returns:
        The command context as CommandContext object.
      • setCommandContext

        public void setCommandContext(CommandContext commandContext)
        Sets the command context.
        Specified by:
        setCommandContext in interface SmartDataBean
        Parameters:
        commandContext - The command context..
      • setRequestProperties

        public void setRequestProperties(TypedProperty param)
                                  throws java.lang.Exception
        Sets the request properties within this bean.
        Specified by:
        setRequestProperties in interface InputDataBean
        Parameters:
        requestProperties - the set of properties passed to the JSP page that invokes this data bean,
        Throws:
        java.lang.Exception - if there is a problem when setting the request properties. This particular method should not throw any exception because it just stores the request properties.
      • populate

        public void populate()
                      throws java.lang.Exception
        Populates the data bean with data elements.
        Specified by:
        populate in interface SmartDataBean
        Throws:
        java.lang.Exception - if there is a problem populating the data bean with data.
      • getGiftRegistryAnnouncementTemplateDataBeans

        public java.util.Enumeration getGiftRegistryAnnouncementTemplateDataBeans()
        Returns all GiftRegistryAnnouncementTemplateDataBean values that correspond to the eventTypeId set in this bean
        Returns:
        Enumeration of GiftRegistryAnnouncementTemplateDataBeans
      • getEventTypeId

        public java.lang.Integer getEventTypeId()
        Gets the event type ID this template is associated with. All eventTypeId must be defined in grevnttype database table.
        Returns:
        The event type ID this template is associated with
      • setEventTypeId

        public void setEventTypeId(java.lang.Integer long1)
        Sets the event type ID for which this template is associated
        Parameters:
        eventTypeId - - the event type ID for which template is associated with