com.ibm.commerce.giftregistry.beans

Class GiftRegistryAnnouncementHistoryDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, Delegator, Protectable, java.io.Serializable


    public class GiftRegistryAnnouncementHistoryDataBean
    extends com.ibm.commerce.giftregistry.beans.GiftRegistryAnnouncementHistoryDataBeanBase
    implements SmartDataBean, InputDataBean
    Used to retrieve announcement history for a gift registry from grannhist and gremllist database tables given an announcementId. Announcement history consists of announcement's receivers, sender, date and announcement message.
    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

      • GiftRegistryAnnouncementHistoryDataBean

        public GiftRegistryAnnouncementHistoryDataBean()
        Default constructor
    • Method Detail

      • setRequestProperties

        public void setRequestProperties(TypedProperty param)
        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()
        Loads data into the data bean when the DataBeanManager.activate() runs. You must set the announcementId using the setAnnouncementId method before running the populate() method
        Specified by:
        populate in interface SmartDataBean
        Throws:
        java.lang.Exception - if there is a problem populating the data bean.
      • getAnnouncementId

        public java.lang.Long getAnnouncementId()
        Gets the announcement ID.
        Returns:
        The announcement ID.
      • setAnnouncementId

        public void setAnnouncementId(java.lang.Long newAnnouncementId)
        Sets the announcement ID to populate this bean. This is a required parameter to populate this bean.
        Parameters:
        newAnnouncementId - - The Announcement ID
      • getAnnouncementEmailDataBeans

        public GiftRegistryAnnouncementEmailDataBean[] getAnnouncementEmailDataBeans()
        Gets a list of announcement e-mail data beans that represent recipient e-mail information for a particular announcement
        Returns:
        An array of GiftRegistryAnnouncementEmailDataBean.