BrightSide Workbench Full Report + Source Code
org.turro.action.Interceptors Class Reference

Static Public Member Functions

static boolean executeWeb (IConstructor constructor)
 
static boolean executeApp (Application application, Map< String, String[]> parameterMap)
 
static Parameters parameters (String root)
 
static Parameters parameters (String root, String id)
 

Static Public Attributes

static final String GOTO = "goto"
 

Detailed Description

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

Definition at line 32 of file Interceptors.java.

Member Function Documentation

◆ executeApp()

static boolean org.turro.action.Interceptors.executeApp ( Application  application,
Map< String, String[]>  parameterMap 
)
static

Definition at line 53 of file Interceptors.java.

53  {
54  boolean done = false;
55  KeyValueMap kvm = Parameters.from(parameterMap).asMap();
56  String goTo = kvm.get(GOTO);
57  if(!Strings.isBlank(goTo)) {
58  for(IInterceptor iInterceptor : Instances.cached().byAnnotation(ElephantInterceptor.class, IInterceptor.class)) {
59  if(iInterceptor.executeApp(application, goTo, kvm)) {
60  done = true;
61  break;
62  }
63  }
64  }
65  return done;
66  }
static final String GOTO
Here is the call graph for this function:
Here is the caller graph for this function:

◆ executeWeb()

static boolean org.turro.action.Interceptors.executeWeb ( IConstructor  constructor)
static

Definition at line 38 of file Interceptors.java.

38  {
39  boolean done = false;
40  KeyValueMap kvm = Parameters.from(constructor.getRequest().getParameterMap()).asMap();
41  String goTo = kvm.get(GOTO);
42  if(!Strings.isBlank(goTo)) {
43  for(IInterceptor iInterceptor : Instances.cached().byAnnotation(ElephantInterceptor.class, IInterceptor.class)) {
44  if(iInterceptor.executeWeb(constructor, goTo, kvm)) {
45  done = true;
46  break;
47  }
48  }
49  }
50  return done;
51  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parameters() [1/2]

static Parameters org.turro.action.Interceptors.parameters ( String  root)
static

Definition at line 70 of file Interceptors.java.

70  {
71  return Parameters.instance()
72  .add(Interceptors.GOTO, root);
73  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parameters() [2/2]

static Parameters org.turro.action.Interceptors.parameters ( String  root,
String  id 
)
static

Definition at line 75 of file Interceptors.java.

75  {
76  return Parameters.instance()
77  .add(Interceptors.GOTO, root)
78  .add(root + "Id", id);
79  }
Here is the call graph for this function:

Member Data Documentation

◆ GOTO

final String org.turro.action.Interceptors.GOTO = "goto"
static

Definition at line 34 of file Interceptors.java.


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