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
ParseException
public Guard parse(String expr, Map<String,Guard> localGuards) throws ParseException
ParseException
public Object createOperation(PostfixExpression.Token token, Object lparam, Object rparam)
createOperation
in interface PostfixExpression.Visitor
public Object createParameter(PostfixExpression.Token token)
createParameter
in interface PostfixExpression.Visitor
Copyright © 2017 Nuxeo. All rights reserved.