com.ibm.commerce.tools.segmentation

Class SegmentCustomerListDataBean.Customer

  • java.lang.Object
    • com.ibm.commerce.tools.segmentation.SegmentCustomerListDataBean.Customer
  • Enclosing class:
    SegmentCustomerListDataBean


    public static final class SegmentCustomerListDataBean.Customer
    extends java.lang.Object
    This class contains properties that describe a customer.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Customer()
      Constructor for Customer.
      Customer(java.lang.String shopper)
      This constructor takes an instance of ShopperData.
      Customer(UserAccessBean user)
      This constructor takes an instance of UserAccessBean.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getCity()
      Gets the city of the customer.
      java.lang.String getEmail()
      Gets the e-mail address of the customer.
      java.lang.String getFirstName()
      Gets the first name of the customer.
      java.lang.String getId()
      Gets the user ID of the customer.
      java.lang.String getLastName()
      Gets the last name of the customer.
      java.lang.String getLogonId()
      Gets the logon ID of the customer.
      java.lang.String getPhone()
      Gets the phone number of the customer.
      java.lang.String getZipCode()
      Gets the ZIP code of the customer.
      boolean hasRoleInOrg(java.lang.Integer roleId, java.lang.Long orgEntityId, boolean includeParentOrg)
      Check if this customer has a role in an organization
      void setCity(java.lang.String city)
      Sets the city of the customer.
      void setEmail(java.lang.String email)
      Sets the e-mail address of the customer.
      void setFirstName(java.lang.String firstName)
      Sets the first name of the customer.
      void setId(java.lang.String id)
      Sets the user ID of the customer.
      void setLastName(java.lang.String lastName)
      Sets the last name of the customer.
      void setLogonId(java.lang.String logonId)
      Sets the logon ID of the customer.
      void setPhone(java.lang.String phone)
      Sets the phone number of the customer.
      void setZipCode(java.lang.String zipCode)
      Sets the ZIP code of the customer.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Customer

        public Customer(UserAccessBean user)
        This constructor takes an instance of UserAccessBean.
      • Customer

        public Customer(java.lang.String shopper)
        This constructor takes an instance of ShopperData.
      • Customer

        public Customer()
        Constructor for Customer.
    • Method Detail

      • getId

        public java.lang.String getId()
        Gets the user ID of the customer.
        Returns:
        The user ID of the customer.
      • getLogonId

        public java.lang.String getLogonId()
        Gets the logon ID of the customer.
        Returns:
        The logon ID of the customer.
      • getFirstName

        public java.lang.String getFirstName()
        Gets the first name of the customer.
        Returns:
        The first name of the customer.
      • getLastName

        public java.lang.String getLastName()
        Gets the last name of the customer.
        Returns:
        The last name of the customer.
      • getPhone

        public java.lang.String getPhone()
        Gets the phone number of the customer.
        Returns:
        The phone number of the customer.
      • getEmail

        public java.lang.String getEmail()
        Gets the e-mail address of the customer.
        Returns:
        The e-mail address of the customer.
      • getCity

        public java.lang.String getCity()
        Gets the city of the customer.
        Returns:
        The city of the customer.
      • getZipCode

        public java.lang.String getZipCode()
        Gets the ZIP code of the customer.
        Returns:
        The ZIP code of the customer.
      • setId

        public void setId(java.lang.String id)
        Sets the user ID of the customer.
        Parameters:
        id - The user ID of the customer.
      • setLogonId

        public void setLogonId(java.lang.String logonId)
        Sets the logon ID of the customer.
        Parameters:
        logonId - The logon ID of the customer.
      • setFirstName

        public void setFirstName(java.lang.String firstName)
        Sets the first name of the customer.
        Parameters:
        firstName - The first name of the customer.
      • setLastName

        public void setLastName(java.lang.String lastName)
        Sets the last name of the customer.
        Parameters:
        lastName - The last name of the customer.
      • setPhone

        public void setPhone(java.lang.String phone)
        Sets the phone number of the customer.
        Parameters:
        phone - The phone number of the customer.
      • setEmail

        public void setEmail(java.lang.String email)
        Sets the e-mail address of the customer.
        Parameters:
        email - The e-mail address of the customer.
      • setCity

        public void setCity(java.lang.String city)
        Sets the city of the customer.
        Parameters:
        city - The city of the customer.
      • setZipCode

        public void setZipCode(java.lang.String zipCode)
        Sets the ZIP code of the customer.
        Parameters:
        zipCode - The ZIP code of the customer.
      • hasRoleInOrg

        public boolean hasRoleInOrg(java.lang.Integer roleId,
                                    java.lang.Long orgEntityId,
                                    boolean includeParentOrg)
                             throws java.lang.Exception
        Check if this customer has a role in an organization
        Parameters:
        roleId - The role ID
        orgEntityId - The organization ID
        includeParentOrg - Indicates whether parent organization should be included or not
        Returns:
        true or false indicates whether the customer has a role in this organization or its parent organizations.
        Throws:
        java.lang.Exception