com.ibm.commerce.user.beans

Class DemographicsDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, Delegator, com.ibm.commerce.user.beans.DemographicsInputDataBean, com.ibm.commerce.user.beans.DemographicsSmartDataBean, java.io.Serializable


    public class DemographicsDataBean
    extends com.ibm.commerce.user.beansrc.DemographicsDataBeanBase
    implements com.ibm.commerce.user.beans.DemographicsInputDataBean, com.ibm.commerce.user.beans.DemographicsSmartDataBean
    This data bean displays demographics information for users.
    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

      • DemographicsDataBean

        public DemographicsDataBean()
    • Method Detail

      • setRequestProperties

        public void setRequestProperties(TypedProperty aRequestProperty)
        Sets the request property within this bean.
        Specified by:
        setRequestProperties in interface InputDataBean
        Parameters:
        aRequestProperty - com.ibm.commerce.datatype.TypedProperty
      • getDataBeanKeyUserId

        public java.lang.String getDataBeanKeyUserId()
        Gets the key (user id) of this data bean.
        Specified by:
        getDataBeanKeyUserId in interface com.ibm.commerce.user.beans.DemographicsSmartDataBean
        Returns:
        The key of this data bean.
      • getCommandContext

        public CommandContext getCommandContext()
        Gets the command context set within this bean.
        Specified by:
        getCommandContext in interface SmartDataBean
        Returns:
        com.ibm.commerce.command.CommandContext
      • setCommandContext

        public void setCommandContext(CommandContext aCommandContext)
        Sets the command context within this bean.
        Specified by:
        setCommandContext in interface SmartDataBean
        Parameters:
        aCommandContext - The command context.
      • setDataBeanKeyUserId

        public void setDataBeanKeyUserId(java.lang.String aUserId)
        Sets the key(user id) of this data bean.
        Specified by:
        setDataBeanKeyUserId in interface com.ibm.commerce.user.beans.DemographicsInputDataBean
        Parameters:
        aUserId - The key of this data bean.
      • populate

        public void populate()
        Fetches and populates information needed by the bean.
        Specified by:
        populate in interface SmartDataBean
        Throws:
        java.lang.Exception - Any exception thrown during populating.
      • isAgeAvailable

        public boolean isAgeAvailable()
        Determines whether the age is defined.
        Returns:
        true if the age is defined, false otherwise
      • isGenderAvailable

        public boolean isGenderAvailable()
        Determines whether the gender is defined.
        Returns:
        true if the gender is defined, false otherwise