Example #1
0
 // fonction pour aller au differents services
 public WOComponent goIndividu() {
   closeAll();
   session()
       .setObjectForKey(
           new Integer(EDTLogin.IDENTIFICATION_INDIVIDU), EDTLogin.TYPE_IDENTIFICATION);
   if (CRIWebAction.useCasService()) {
     if (criSession().connectedUserInfo() == null) {
       session().setObjectForKey(new Boolean(true), "Form"); // ajouter
       return goCas();
     } else {
       final EDTLogin page = (EDTLogin) pageWithName("EDTLogin");
       page.action();
     }
   } else {
     if (criSession().connectedUserInfo() != null) {
       final EDTLogin page = (EDTLogin) pageWithName("EDTLogin");
       session().setObjectForKey(new Boolean(true), "Form"); // ajouter
       page.action();
     } else {
       ((Session) session()).setAffichageEnCours(AFFICHE_IDENTIFICATION);
     }
     session().setObjectForKey(new Boolean(true), "refresh");
   }
   session().setObjectForKey(new Boolean(true), "Form");
   return null;
 }
Example #2
0
 // fonction liƩe a l'identification cas
 private WOComponent goCas() {
   final WORedirect page = (WORedirect) criApp.pageWithName("WORedirect", context());
   page.setUrl(CRIWebAction.getLoginActionURL(context(), false, null, true, null));
   return page;
 }