Class GiftRegistryAnnouncementTemplateDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean,

    public class GiftRegistryAnnouncementTemplateDataBean
    extends GiftRegistryAnnouncementTemplateAccessBean
    implements SmartDataBean, InputDataBean
    Extends the GiftRegistryAnnouncementTemplateAccessBean and provides a JSP friendly way of accessing gift registry announcement templates from the database. The gift registry announcement template is an e-mail template for gift registry announcement. GiftRegistryAnnouncementTemplateAccessBean gets announcement template information from GRANNTMPLT database table.
    See Also:
    Serialized Form
    • Field Detail


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

      • GiftRegistryAnnouncementTemplateDataBean

        public GiftRegistryAnnouncementTemplateDataBean()
        Generates an empty GiftRegistryAnnouncementTemplateDataBean
    • Method Detail

      • getCommandContext

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

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

        public void setRequestProperties(TypedProperty param)
        Set the requestProperties associated with the data bean. If requestProperties is null when the activate method is invoked on the DataBeanManager, the manager uses the properties in the request.
        Specified by:
        setRequestProperties in interface InputDataBean
        requestProperties - the set of properties passed to the JSP page that invokes this data bean,
        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 templateId using the setTemplateId method before running the populate() method.
        Specified by:
        populate in interface SmartDataBean
        java.lang.Exception - if there is a problem populating the data bean.
        See Also:
      • getEventTypeId

        public java.lang.Integer getEventTypeId()
        Returns the eventTypeId for which this template is applicable. All eventTypeId must be defined in grevnttype database table.
        getEventTypeId in class GiftRegistryAnnouncementTemplateAccessBean
        The eventTypeId for which this template is applicable
      • getThumbnailPath

        public java.lang.String getThumbnailPath()
        Gets a relative path to an image representing what this thumbnail looks like
        getThumbnailPath in class GiftRegistryAnnouncementTemplateAccessBean
        A relative path to an image representing what this thumbnail looks like