Package org.nuxeo.ecm.webengine.security
Class PermissionService
- java.lang.Object
-
- org.nuxeo.ecm.webengine.security.PermissionService
-
- All Implemented Interfaces:
PostfixExpression.Visitor
public class PermissionService extends Object implements PostfixExpression.Visitor
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected ConcurrentMap<String,Guard>
guards
-
Constructor Summary
Constructors Modifier Constructor Description protected
PermissionService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
guards
protected final ConcurrentMap<String,Guard> guards
-
-
Constructor Detail
-
PermissionService
protected PermissionService()
-
-
Method Detail
-
getInstance
public static PermissionService getInstance()
-
registerGuard
public void registerGuard(String name, Guard guard)
-
unregisterGuard
public Guard unregisterGuard(String name)
-
parse
public static Guard parse(String expr) throws ParseException
- Throws:
ParseException
-
parse
public Guard parse(String expr, Map<String,Guard> localGuards) throws ParseException
- Throws:
ParseException
-
createOperation
public Object createOperation(PostfixExpression.Token token, Object lparam, Object rparam)
- Specified by:
createOperation
in interfacePostfixExpression.Visitor
-
createParameter
public Object createParameter(PostfixExpression.Token token)
- Specified by:
createParameter
in interfacePostfixExpression.Visitor
-
-