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