Package com.axelor.meta
Class ActionHandler
- java.lang.Object
-
- com.axelor.meta.ActionHandler
-
public class ActionHandler extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
call(String className, String method)
void
checkPermission(JpaSecurity.AccessType type, Class<? extends Model> model, Long... ids)
void
checkPermission(JpaSecurity.AccessType accessType, String model)
Object
evaluate(String expression)
Evaluate the givenexpression
.ActionResponse
execute()
Class<?>
findModelClass(String model)
PostAction
firePostEvent(String name, Object result)
void
firePreEvent(String name)
Context
getContext()
ActionRequest
getRequest()
Object
rpc(String className, String methodCall)
Object
search(Class<?> entityClass, String filter, Map params)
Object
selectAll(String query)
Object
selectAll(String query, Object... params)
Object
selectOne(String query)
Object
selectOne(String query, Object... params)
String
template(Templates engine, Reader template)
-
-
-
Method Detail
-
checkPermission
public void checkPermission(JpaSecurity.AccessType accessType, String model)
-
checkPermission
public void checkPermission(JpaSecurity.AccessType type, Class<? extends Model> model, Long... ids)
-
firePreEvent
public void firePreEvent(String name)
-
firePostEvent
public PostAction firePostEvent(String name, Object result)
-
getContext
public Context getContext()
-
getRequest
public ActionRequest getRequest()
-
evaluate
public Object evaluate(String expression)
Evaluate the givenexpression
.- Parameters:
expression
- the expression to evaluate prefixed with action type followed by a:
- Returns:
- expression result
-
template
public String template(Templates engine, Reader template) throws IOException
- Throws:
IOException
-
execute
public ActionResponse execute()
-
-