BrightSide Workbench Full Report + Source Code
org.turro.elephant.ApplicationFramework Class Reference
Inheritance diagram for org.turro.elephant.ApplicationFramework:
Collaboration diagram for org.turro.elephant.ApplicationFramework:

Public Member Functions

void service (Page page)
 

Static Public Member Functions

static void setLocale (HttpServletRequest request)
 

Detailed Description

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

Definition at line 42 of file ApplicationFramework.java.

Member Function Documentation

◆ service()

void org.turro.elephant.ApplicationFramework.service ( Page  page)

Definition at line 45 of file ApplicationFramework.java.

45  {
46  try {
47  Application app = Application.getApplication();
48  setLocale(null);
49  if(IAgreements.checkAgreements(app.getHttpServletRequest(), app.getHttpServletResponse())) {
50  if(app.getHttpSession(false).getAttribute("xp_user") == null) {
51  Executions.sendRedirect("/user?redir=/app/frame");
52  } else if(Authentication.isWebapp()) {
53  //Themes.setTheme(Executions.getCurrent(), "breeze");
54  app.getHttpSession(false).setMaxInactiveInterval(3 * 60 * 60);
55  Framework frame = new Framework();
56  frame.setPage(page);
57  if(frame instanceof AfterCompose) {
58  ((AfterCompose) frame).afterCompose();
59  }
60  if(frame.getPortalWindows().containsKey("welcome")) {
61  frame.addContent(frame.getPortalWindows().get("welcome"));
62  }
63  Interceptors.executeApp(app, Executions.getCurrent().getParameterMap());
64  } else {
65  Executions.sendRedirect("/user");
66  }
67  }
68  } catch (IOException ex) {
69  Logger.getLogger(ApplicationFramework.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
70  }
71  }
static void setLocale(HttpServletRequest request)
Here is the call graph for this function:

◆ setLocale()

static void org.turro.elephant.ApplicationFramework.setLocale ( HttpServletRequest  request)
static

Definition at line 73 of file ApplicationFramework.java.

73  {
74  if(request == null && org.zkoss.web.fn.ServletFns.getCurrentContext() != null) {
75  request = (HttpServletRequest) ServletFns.getCurrentRequest();
76  }
77  if(request != null) {
78  HttpSession session = request.getSession(false);
79  if(session != null) {
80  session.setAttribute("el_label", I_.compatibilityMap());
81  session.setAttribute("i_", I_.api());
82  session.setAttribute("i", I_.map());
83  session.setAttribute("k", I_.byKeyMap());
84  } else {
85  request.setAttribute("el_label", I_.compatibilityMap());
86  request.setAttribute("i_", I_.api());
87  request.setAttribute("i", I_.map());
88  request.setAttribute("k", I_.byKeyMap());
89  }
90  }
91  }
Here is the call graph for this function:
Here is the caller graph for this function:

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