com.ibm.commerce.user.beans

Class RoleDataBean

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


    public class RoleDataBean
    extends com.ibm.commerce.user.beansrc.RoleDataBeanBase
    implements com.ibm.commerce.user.beans.RoleInputDataBean, com.ibm.commerce.user.beans.RoleSmartDataBean
    This bean is used to display the WebSphere Commerce defined roles.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String CLASSNAME
        The class name.
    • Constructor Detail

      • RoleDataBean

        public RoleDataBean()
    • 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
      • getDataBeanKeyRoleId

        public java.lang.String getDataBeanKeyRoleId()
        Gets the key(role id) of this data bean.
        Specified by:
        getDataBeanKeyRoleId in interface com.ibm.commerce.user.beans.RoleSmartDataBean
        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 - com.ibm.commerce.command.CommandContext
      • setDataBeanKeyRoleId

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

        public void populate()
        Retrieves data from the database.
        Specified by:
        populate in interface SmartDataBean
        Throws:
        java.lang.Exception
      • getDisplayName

        public java.lang.String getDisplayName()
        Retrieves the display name of the role
        Returns:
        the display name of the role
      • getDescription

        public java.lang.String getDescription()
        Retrieves the display name of the role
        Overrides:
        getDescription in class RoleAccessBean
        Returns:
        the display name of the role
      • getAllRoles

        public static final java.lang.Integer[] getAllRoles()
        Gets the list of role IDs for all the roles defined in the ROLE table.
        Returns:
        The role IDs defined in the ROLE table.