public abstract class SecurityManager extends Object
| Constructor and Description |
|---|
SecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isAllowed(String[] requiredRoles)
Checks if execution is allowed for given roles
|
void |
onNotAllowed()
Called if an execution is not allowed.
|
public abstract boolean isAllowed(String[] requiredRoles)
requiredRoles - required roles for executionpublic void onNotAllowed()
throws NotAllowedException
NotAllowedException - if an execution is not allowed.Copyright © 2016 Agapsys Tecnologia Ltda-ME. All rights reserved.