Exemplo n.º 1
0
 public String forcedUrl() {
   try {
     cifHistoryVO = cifHistoryService.findCifHistoryDetailById(cifHistoryId);
     List<AccountHistory> listAccountHistory =
         accountService.getListAccountHist(cifHistoryVO.getCifHistoryId());
     cifHistoryVO.setListAccountHistory(listAccountHistory);
     cifHistoryVO.setListAccount(accountService.getListAccount(cifHistoryVO.getCifId()));
     actionFrom = WebConstants.ACT_MODULE_RESET_PIN;
     hasLogin = 0;
     session.put(WEB_CONTENT_KEY, cifHistoryVO);
     setMessage(getFlashMessage());
   } catch (Exception e) {
     cifHistoryVO = new CifHistoryVO();
   }
   return "cif_forced_auth";
 }
Exemplo n.º 2
0
 public String processInput() {
   UserDataLoginVO loginVO = (UserDataLoginVO) session.get(LOGIN_KEY);
   Locale language = (Locale) session.get(WEB_LOCALE_KEY);
   try {
     wrv = cifHistoryService.insertCifHistoryResetPin(cif.getId(), loginVO, language);
     LOG.info("Reset Pin with cif:" + cif);
     if (wrv.getKey1() == WebConstants.YES) {
       setFlashMessage(wrv.getMessage());
     }
   } catch (MmbsWebException mwe) {
     wrv = handleJsonException(mwe);
   } catch (Exception e) {
     wrv = handleJsonException(e);
   }
   Gson gson = new Gson();
   json = gson.toJson(wrv);
   return "inputJson";
 }