BrightSide Workbench Full Report + Source Code
org.turro.students.command.StudentsInterceptor Class Reference
Inheritance diagram for org.turro.students.command.StudentsInterceptor:
Collaboration diagram for org.turro.students.command.StudentsInterceptor:

Protected Member Functions

boolean doExecuteWeb (IConstructor constructor, String goTo, KeyValueMap kvm) throws IOException
 
boolean doExecuteApp (Application application, String goTo, KeyValueMap kvm)
 

Additional Inherited Members

- Public Member Functions inherited from org.turro.action.AbstractInterceptor
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 37 of file StudentsInterceptor.java.

Member Function Documentation

◆ doExecuteApp()

boolean org.turro.students.command.StudentsInterceptor.doExecuteApp ( Application  application,
String  goTo,
KeyValueMap  kvm 
)
protected

Reimplemented from org.turro.action.AbstractInterceptor.

Definition at line 56 of file StudentsInterceptor.java.

56  {
57  if("challenge".equals(goTo)) {
58  if(Application.getApplication().isInRole("challenge:edit")) {
59  StudentsMenu.showChallenge(kvm.get(Long.class, "challengeId"));
60  }
61  return true;
62  }
63  return false;
64  }
Here is the call graph for this function:

◆ doExecuteWeb()

boolean org.turro.students.command.StudentsInterceptor.doExecuteWeb ( IConstructor  constructor,
String  goTo,
KeyValueMap  kvm 
) throws IOException
protected

Reimplemented from org.turro.action.AbstractInterceptor.

Definition at line 40 of file StudentsInterceptor.java.

40  {
41  if("challenge".equals(goTo)) {
42  String path = ElephantContext.getEntityWebContext("/challenge");
43  if(Strings.isBlank(path)) {
44  path = "/user/challenges";
45  }
46  constructor.redirect(Parameters.path(path)
47  .add("item", kvm.get("challengeId"))
48  .plain());
49  constructor.redirect(path + "?item=" + kvm.get(Long.class, "challengeId"));
50  return true;
51  }
52  return false;
53  }
Here is the call graph for this function:

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