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 protectedPermissionService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcreateOperation(PostfixExpression.Token token, Object lparam, Object rparam)ObjectcreateParameter(PostfixExpression.Token token)GuardgetGuard(String name)static PermissionServicegetInstance()static Guardparse(String expr)Guardparse(String expr, Map<String,Guard> localGuards)voidregisterGuard(String name, Guard guard)GuardunregisterGuard(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:
createOperationin interfacePostfixExpression.Visitor
-
createParameter
public Object createParameter(PostfixExpression.Token token)
- Specified by:
createParameterin interfacePostfixExpression.Visitor
-
-