Class AccountUserManuallyCreatedEvent

java.lang.Object
com.broadleafcommerce.customer.messaging.domain.AccountUserManuallyCreatedEvent
All Implemented Interfaces:
Serializable

public class AccountUserManuallyCreatedEvent extends Object implements Serializable
Represents an event that an account user has been manually created by another account user, as opposed to being created by the system itself through the account invite flow.

This event is used specifically for the Account User Creation flow where a net-new Customer is created and added to the account at the same time, without going through the account invite flow.

Since:
Customer Services 2.1.0, Release Train 2.3.0
Author:
Sunny Yu
See Also:
  • Constructor Details

    • AccountUserManuallyCreatedEvent

      public AccountUserManuallyCreatedEvent()
  • Method Details

    • getCreatedCustomer

      public Customer getCreatedCustomer()
      The customer that was created to represent this account user.
    • isActive

      public boolean isActive()
      Whether or not this user should be active.
    • getAccountId

      public String getAccountId()
      The id of the account this account user was created for.
    • getAccountRoleIds

      public List<String> getAccountRoleIds()
      The list of account role ids that this user should be assigned to.
    • getRestrictions

      public List<AccessRestriction> getRestrictions()
      The data restrictions that control the data this user is permitted to access.
    • getRestrictedRoles

      public List<RestrictedRole> getRestrictedRoles()
      The roles that this user is directly assigned that are restricted to only apply when accessing certain segments of data.
    • getRestrictedPermissions

      public List<RestrictedPermission> getRestrictedPermissions()
      The permissions that this user is directly assigned that are restricted to only apply when accessing certain segments of data.
    • getAttributes

      public Map<String,Object> getAttributes()
      Additional custom information that was provided as part of the user registration process.

      Client implementations may choose to populate and utilize this field for custom behavior.

    • setCreatedCustomer

      public void setCreatedCustomer(Customer createdCustomer)
      The customer that was created to represent this account user.
    • setActive

      public void setActive(boolean active)
      Whether or not this user should be active.
    • setAccountId

      public void setAccountId(String accountId)
      The id of the account this account user was created for.
    • setAccountRoleIds

      public void setAccountRoleIds(List<String> accountRoleIds)
      The list of account role ids that this user should be assigned to.
    • setRestrictions

      public void setRestrictions(List<AccessRestriction> restrictions)
      The data restrictions that control the data this user is permitted to access.
    • setRestrictedRoles

      public void setRestrictedRoles(List<RestrictedRole> restrictedRoles)
      The roles that this user is directly assigned that are restricted to only apply when accessing certain segments of data.
    • setRestrictedPermissions

      public void setRestrictedPermissions(List<RestrictedPermission> restrictedPermissions)
      The permissions that this user is directly assigned that are restricted to only apply when accessing certain segments of data.
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Additional custom information that was provided as part of the user registration process.

      Client implementations may choose to populate and utilize this field for custom behavior.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object