Пример #1
0
 protected void addLogSqlToSessionMessages() {
   if (this.isLogSqlEnabled()) {
     if (logSqlCheckAccess()) {
       ((webdsl.generated.domain.SessionManager) ThreadLocalServlet.get().getSessionManager())
           .setLogsqlMessageNoEventsOrValidation(
               utils.HibernateLog.printHibernateLog(this, "action"));
     } else {
       ((webdsl.generated.domain.SessionManager) ThreadLocalServlet.get().getSessionManager())
           .setLogsqlMessageNoEventsOrValidation("Access to SQL logs was denied.");
     }
   }
 }
Пример #2
0
 protected void initializeBasics(AbstractPageServlet ps, Object[] args) {
   initTemplateClass();
   this.envGlobalAndSession = ps.envGlobalAndSession;
   this.request = ps.getRequest();
   this.response = ps.getResponse();
   this.parammap = java.util.Collections.<String, String>emptyMap();
   this.parammapvalues = java.util.Collections.<String, java.util.List<String>>emptyMap();
   this.fileUploads = java.util.Collections.<String, java.util.List<utils.File>>emptyMap();
   Session hibSession = utils.HibernateUtil.getCurrentSession();
   ThreadLocalServlet.get().loadSessionManager(utils.HibernateUtil.getCurrentSession());
   initialize();
 }
Пример #3
0
 protected org.webdsl.WebDSLEntity getRequestLogEntry() {
   return ((utils.DispatchServletHelper) ThreadLocalServlet.get()).getRequestLogEntry();
 }