Class RestrictedRole
java.lang.Object
com.broadleafcommerce.auth.resource.domain.RestrictedRole
- All Implemented Interfaces:
Serializable
Represent a role a user has access to only within specific segment(s) of data. The segment(s) are
defined within
getRestriction().- Author:
- Sunny Yu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the account id that this restricted permission is associated with.Represents the restriction on this role.getRole()Represents the role that is being restricted.inthashCode()voidsetRestriction(Restriction restriction) Represents the restriction on this role.voidsetRole(UserRoleRef role) Represents the role that is being restricted.voidAllows the roleId to be deserialized into a UserRoleRef object.toString()
-
Constructor Details
-
RestrictedRole
public RestrictedRole()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
setRoleId
Allows the roleId to be deserialized into a UserRoleRef object. -
getAccountId
Gets the account id that this restricted permission is associated with. Can benullif it's globally applied.- Since:
- Authentication Service 2.3.0, Release Train 2.3.0
-
getRestriction
Represents the restriction on this role. -
getRole
Represents the role that is being restricted. -
setRestriction
Represents the restriction on this role. -
setRole
Represents the role that is being restricted. -
toString
-