public interface Permissions
Modifier and Type | Interface and Description |
---|---|
static class |
Permissions.Single
Permissions implementation allowing single action for single user.
|
static class |
Permissions.Wrap
Abstract decorator for Permissions.
|
Modifier and Type | Field and Description |
---|---|
static Authentication.User |
ANY_USER
Any user instance.
|
static Permissions |
FREE
Allow to perform all actions by all users.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowed(Authentication.User user,
String action)
Check if user is allowed to perform an action.
|
static final Authentication.User ANY_USER
static final Permissions FREE
boolean allowed(Authentication.User user, String action)
user
- Useraction
- Action to performCopyright © 2012–2020 jcabi.com. All rights reserved.