Class RestrictedRole

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

public class RestrictedRole extends Object implements Serializable
Represent a role a user has access to only within specific segment(s) of data. The segment(s) are are defined within AccessRestriction.
Since:
Customer Services 2.1.0, Release Train 2.3.0
Author:
karanjariwala
See Also:
  • Constructor Details

    • RestrictedRole

      public RestrictedRole()
  • Method Details

    • getRestriction

      public AccessRestriction getRestriction()
      Represents the restriction on a restricted entity.
    • getRoleId

      public String getRoleId()
      The id of the role that is restricted to the defined segment(s).
    • setRestriction

      public void setRestriction(AccessRestriction restriction)
      Represents the restriction on a restricted entity.
    • setRoleId

      public void setRoleId(String roleId)
      The id of the role that is restricted to the defined segment(s).
    • 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