Role- the role.
Permission- the permission.
public class Security<Role,Permission> extends java.lang.Object
Construct a Security with a SecurityConfig object.
Check whether the role has the specified permission.
public void checkPermission(Role role, Permission permission) throws NoPermissionException
Check whether the role has the specified permission. A role is denied from a permission only if any one of the conditions listed in below is true:
If a role is NOT denied from a permission, he/she has the permission only if any one of the conditions shown in below is true:
role- the role
permission- the permission
NoPermissionException- if the role has no the permission.