Examples of ErrorEcran


Examples of com.structis.fichesst.client.ecran.ErrorEcran

          }

          @Override
          public void onSuccess(RoleModel role) {
        if (role != null && role.getBcontributeur() == false && role.getBlecteur() == false && user.getBadmin() == false) {
            GuiUtil.gotoEcran(new ErrorEcran());
        } else {
            GuiUtil.gotoEcran(new SyntheseEcran(model, role, user));
        }
          }
      });
View Full Code Here

Examples of com.structis.fichesst.client.ecran.ErrorEcran

    }

    service.checkUserByKerberosSSO(new AsyncCallbackWithErrorResolution<UtilisateurGrpModel>() {
      @Override
      public void onFailure(Throwable arg0) {
        GuiUtil.gotoEcran(new ErrorEcran());
      }

      @Override
      public void onSuccess(final UtilisateurGrpModel user) {
        navigation.getContext().setUserModel(user);
//        GuiUtil.gotoEcran(new AcceuilEcran());

        //For testing
        ClientChantierServiceAsync clientChantierService = GWT.create(ClientChantierService.class);
        clientChantierService.findChantierById(6, new AsyncCallback<ChantierModel>() {
          @Override
          public void onSuccess(ChantierModel chantier) {
            RoleModel roleModel = new RoleModel();
            roleModel.setIdentifiant("bycn\\long.nguyen");
            roleModel.setIdUtilisateurGrp(7);
            roleModel.setBcontributeur(true);
            roleModel.setBlecteur(true);
            GuiUtil.gotoEcran(new SyntheseEcran(chantier, roleModel, user));
          }

          @Override
          public void onFailure(Throwable caught) {
            GuiUtil.gotoEcran(new ErrorEcran());
          }
        });
      }
    });
  }
View Full Code Here

Examples of com.structis.fichesst.client.ecran.ErrorEcran

    droits.add(Droits.anonymous);
    // Init la navigation
    // Navigation par d�faut
    mapNavigation.put(ACTION_ACCEUIL, new Ecran(new AcceuilEcran()));
//    mapNavigation.put(ACTION_ADMIN,new Ecran(new AdminEcran()));
    mapNavigation.put(Action.ACTION_ERROR,new Ecran(new ErrorEcran()));
  /*  mapNavigation.put(Action.ACTION_SYNTHESE, new Ecran(new SyntheseEcran()));*/
    /*mapNavigation.put(ACTION_ADMIN, new Ecran(new AdminEcran()));  */   
    /*mapNavigation.put(Action.ACTION_CREATE_RISK, new Ecran(new CreateRiskEcran()));
    mapNavigation.put(Action.ACTION_RISQUE, new Ecran(new RisqueEcran()));
    mapNavigation.put(Action.ACTION_COMPE_RENDU, new Ecran(new CompteRenduEcran()));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.