Beispiel #1
0
 public WOComponent selectCreat(int serviceDest) {
   CktlLog.trace("serviceDest : " + serviceDest);
   setPageContenu(getSavedPageWithName(PageCreation.class.getName()));
   currentServiceDest = serviceDest;
   mode = MODE_CREAT;
   return pageContenu();
 }
Beispiel #2
0
 /** Cree une nouvelle instance de la session. */
 public Session() {
   super();
   currentServiceDest = 0;
   mode = MODE_CREAT;
   userWasWarned = false;
   CktlLog.log("<open session : " + sessionID() + ">");
   DTSessionManager.registerSession(this);
 }
Beispiel #3
0
 public void terminate() {
   // Recupere le log de la fermeture de session
   String userLogin = null;
   if (connectedUserInfo() != null) userLogin = connectedUserInfo().login();
   StringBuffer log = new StringBuffer();
   log.append("<close session : ").append(sessionID());
   if (userLogin != null) log.append(", user : "******">");
   CktlLog.log(log.toString());
   DTSessionManager.unregisterSession(this);
   //
   super.terminate();
 }
Beispiel #4
0
 /** Execute l'action de la deconnexion */
 public WOComponent doExit() {
   String url = dtApp().getApplicationURL(context());
   if (forceSSOLogout() && CktlWebAction.useCasService()) {
     // ENcode URL
     if (url.length() > 0) {
       StringBuffer u = new StringBuffer(CktlWebAction.casLogoutURL());
       try {
         u.append("?service=").append(URLEncoder.encode(url, "UTF-8"));
       } catch (UnsupportedEncodingException ex) {
         ex.printStackTrace();
       }
       url = u.toString();
     }
   }
   if (context().hasSession()) context().session().terminate();
   CktlLog.trace("logout.url : " + url);
   return pageForURL(url);
 }