}
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());
}
});
}
});
}