BrightSide Workbench Full Report + Source Code
org.turro.erp.path.ErpInterceptor Class Reference
Inheritance diagram for org.turro.erp.path.ErpInterceptor:
Collaboration diagram for org.turro.erp.path.ErpInterceptor:

Public Member Functions

boolean execute (IConstructor constructor)
 
- Public Member Functions inherited from org.turro.action.IInterceptor
boolean executeWeb (IConstructor constructor, String goTo, KeyValueMap kvm)
 
boolean executeApp (Application application, String goTo, KeyValueMap kvm)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file ErpInterceptor.java.

Member Function Documentation

◆ execute()

boolean org.turro.erp.path.ErpInterceptor.execute ( IConstructor  constructor)

Definition at line 35 of file ErpInterceptor.java.

35  {
36  String value = Executions.getCurrent().getParameter("goto");
37  if("workOrder".equals(value)) {
38  if(Application.getApplication().isInRole("erp-workorder:edit")) {
39  ErpMenu.showWorkOrder(Long.valueOf((String) Executions.getCurrent().getParameter("workOrderId")));
40  }
41  return true;
42  } else if("task".equals(value)) {
43  if(Application.getApplication().isInRole("erp-task:edit")) {
44  ErpMenu.showTask(Long.valueOf((String) Executions.getCurrent().getParameter("taskId")));
45  }
46  return true;
47  }
48  return false;
49  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: