Examples of PesquisaGrpAcesso


Examples of ecar.pojo.PesquisaGrpAcesso

     * @throws ECARException
     */
    public PesquisaGrpAcesso getConfiguracaoPesquisaGrupoAcesso( Set gruposAcesso )
        throws ECARException
    {
        PesquisaGrpAcesso configPesquisaGrpAcesso = new PesquisaGrpAcesso(  );
        List lPesquisaGrupos = this.getListPesquisaGrupos( gruposAcesso );
        Iterator itPesquisaGrupos = lPesquisaGrupos.iterator(  );

        this.inicializaValoresNegativos( configPesquisaGrpAcesso );

        while ( itPesquisaGrupos.hasNext(  ) )
        {
            PesquisaGrpAcesso configPesquisaAux = (PesquisaGrpAcesso) itPesquisaGrupos.next(  );

            if ( configPesquisaAux.getIndPodeVerGeral(  ).equals( "S" ) )
            {
                configPesquisaGrpAcesso.setIndPodeVerGeral( "S" );
            }

            if ( configPesquisaAux.getIndPodeVerMinhaVisao(  ).equals( "S" ) )
            {
                configPesquisaGrpAcesso.setIndPodeVerMinhaVisao( "S" );
            }

            if ( configPesquisaAux.getIndPodeVerPendencias(  ).equals( "S" ) )
            {
                configPesquisaGrpAcesso.setIndPodeVerPendencias( "S" );
            }

            if ( configPesquisaAux.getIndPodeVerPersonalizado(  ).equals( "S" ) )
            {
                configPesquisaGrpAcesso.setIndPodeVerPersonalizado( "S" );
            }

            if ( configPesquisaAux.getIndPodeCriarPesquisaSistema(  ).equals( "S" ) )
            {
                configPesquisaGrpAcesso.setIndPodeCriarPesquisaSistema( "S" );
            }

            if ( configPesquisaAux.getIndPodeCriarPesquisaUsuario(  ).equals( "S" ) )
            {
                configPesquisaGrpAcesso.setIndPodeCriarPesquisaUsuario( "S" );
            }
        }

View Full Code Here

Examples of ecar.pojo.PesquisaGrpAcesso

          LinkDao linkDao = new LinkDao(null);
          List links = linkDao.listar(Link.class, new String[]{"ordemLink", "asc"});
          Iterator itLinks = links.iterator();
          Link link = new Link();
     
          PesquisaGrpAcesso configPesquisaGrpAcesso = new PesquisaGrpAcesso();
      PesquisaGrpAcessoDao pesqGrpAcessoDao = new PesquisaGrpAcessoDao();
     
      boolean permiteGerarArquivoGrp = false;
      boolean geraArquivo = false;
     
      if(request!=null){
        SegurancaECAR seguranca = (SegurancaECAR)this.request.getSession().getAttribute("seguranca");
        configPesquisaGrpAcesso = pesqGrpAcessoDao.getConfiguracaoPesquisaGrupoAcesso(seguranca.getGruposAcesso());

        if(request.getParameter("codTipoAcompanhamento") != null && !request.getParameter("codTipoAcompanhamento").equals("")) {
          TipoAcompanhamentoDao taDao = new TipoAcompanhamentoDao(request);
          TipoAcompanhamentoTa tipoAcompanhamento = (TipoAcompanhamentoTa)taDao.buscar(TipoAcompanhamentoTa.class, Long.valueOf(request.getParameter("codTipoAcompanhamento")));
          Iterator<SisAtributoSatb> gruposAcessoSatbIt = seguranca.getGruposAcesso().iterator();
 
          while(gruposAcessoSatbIt.hasNext()) {
              SisAtributoSatb grupoPermissaoAcessoSatb = (SisAtributoSatb) gruposAcessoSatbIt.next();
              TipoAcompGrpAcessoDao tipoAcompGrpAcessoDao = new TipoAcompGrpAcessoDao();
              TipoAcompGrpAcesso tipoAcompGrpAcesso = tipoAcompGrpAcessoDao.getTipoAcompGrpAcesso(grupoPermissaoAcessoSatb, tipoAcompanhamento);
               if(tipoAcompGrpAcesso != null && tipoAcompGrpAcesso.getIndGerarArquivo().equals(Dominios.SIM)) {
                 permiteGerarArquivoGrp = true;
                 break;
              }
            }
          if(tipoAcompanhamento != null && tipoAcompanhamento.getIndGerarArquivoTa().equals(Dominios.SIM) && permiteGerarArquivoGrp) {
            geraArquivo = true;
          }
        }
      }
         
          if(verificaMonitoramento){
            while(itLinks.hasNext()){
              link = (Link) itLinks.next();
              if(link.getExibeMonitoramentoLink()!=null && link.getExibeMonitoramentoLink().equals(Pagina.SIM)){
                if(link.getNomeLink().equals("GRAVAR_SELECAO_DE_FILTRO")){
                  if(configPesquisaGrpAcesso.getIndPodeCriarPesquisaSistema().equals("S") || configPesquisaGrpAcesso.getIndPodeCriarPesquisaUsuario().equals("S")){
                    criaLink(link,s)
                  }
                } else if(link.getNomeLink().equals("GERAR_ARQUIVO")) {
                   if(geraArquivo)
                     criaLink(link,s);
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.