public static final class Permission.ByName extends Object implements Permission
Permission.ByName| Constructor and Description |
|---|
ByName(String action,
Permissions perm)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowed(String user)
Check if user is authorized to perform an action.
|
public ByName(String action, Permissions perm)
action - Actionperm - Permissionspublic boolean allowed(String user)
Permissionallowed in interface Permissionuser - User nameCopyright © 2012–2020 jcabi.com. All rights reserved.