Class RestrictedPermission
java.lang.Object
com.broadleafcommerce.auth.resource.domain.RestrictedPermission
- All Implemented Interfaces:
Serializable
Represent a permission a user has access to only within specific segment(s) of data. The
segment(s) are defined within
getRestriction().- Author:
- Nick Crum (ncrum)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the account id that this restricted permission is associated with.Represents the permission that is being restricted.Represents the restriction on this permission.inthashCode()voidsetPermission(UserPermissionRef permission) Represents the permission that is being restricted.voidsetPermissionId(String permissionId) Allows the roleId to be deserialized into a UserPermissionRef object.voidsetRestriction(Restriction restriction) Represents the restriction on this permission.toString()
-
Constructor Details
-
RestrictedPermission
public RestrictedPermission()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
setPermissionId
Allows the roleId to be deserialized into a UserPermissionRef 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 permission. -
getPermission
Represents the permission that is being restricted. -
setRestriction
Represents the restriction on this permission. -
setPermission
Represents the permission that is being restricted. -
toString
-