Esempio n. 1
0
  public void iniciarTelaFiltro(AcessoFormBean formulario, HttpServletRequest request)
      throws Exception {
    SiteHelper siteHelper = SiteHelper.create();
    FluxoHelper fluxoHelper = FluxoHelper.create();

    List<SiteTO> listaSites =
        siteHelper.procuraSitesMinPorContrato(
            String.valueOf(fluxoHelper.getPedidoFromSession(request).getIdContrato()));
    formulario.setSitesOcorrs(
        siteHelper.getPermicoesEdicao(listaSites, fluxoHelper.getPedidoFromSession(request)));

    formulario.setSitesOcorrsQuant("" + formulario.getSitesOcorrs().size());
    formulario.setCdContrato(
        String.valueOf(fluxoHelper.getPedidoFromSession(request).getIdContrato()));
  }
Esempio n. 2
0
 public void preencherTestesPendenteAltParcial(AcessoFormBean formulario)
     throws BusinessException {
   formulario.setSitesOcorrs(
       AcessoDelegate.getInstance().preencherTestePendenteAltParcial(formulario.getSitesOcorrs()));
   formulario.setSitesOcorrsQuant("" + formulario.getSitesOcorrs().size());
 }