public class PermissionService extends Object implements PostfixExpression.Visitor
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<String,Guard> |
guards |
| Modifier | Constructor and Description |
|---|---|
protected |
PermissionService() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createOperation(PostfixExpression.Token token,
Object lparam,
Object rparam) |
Object |
createParameter(PostfixExpression.Token token) |
Guard |
getGuard(String name) |
static PermissionService |
getInstance() |
static Guard |
parse(String expr) |
Guard |
parse(String expr,
Map<String,Guard> localGuards) |
void |
registerGuard(String name,
Guard guard) |
Guard |
unregisterGuard(String name) |
protected final ConcurrentMap<String,Guard> guards
protected PermissionService()
public static PermissionService getInstance()
public void registerGuard(String name, Guard guard)
public Guard unregisterGuard(String name)
public static Guard parse(String expr) throws ParseException
ParseExceptionpublic Guard parse(String expr, Map<String,Guard> localGuards) throws ParseException
ParseExceptionpublic Object createOperation(PostfixExpression.Token token, Object lparam, Object rparam)
createOperation in interface PostfixExpression.Visitorpublic Object createParameter(PostfixExpression.Token token)
createParameter in interface PostfixExpression.VisitorCopyright © 2019 Nuxeo. All rights reserved.