Package ecar.pojo

Examples of ecar.pojo.UsuarioUsu


        boolean permissaoLapis = false;
        boolean permissaoAdministradorAcompanhamento = false;
        Iterator itPeriodosAcao = null;
        Map mapAcao = null;

        UsuarioUsu usuario = seguranca.getUsuario(  );

        try
        {
            try
            {
                if ( ( codTipoAcompanhamento != null ) && ! codTipoAcompanhamento.equals( "" ) )
                {
                    tipoAcompanhamento =
                        (TipoAcompanhamentoTa) taDao.buscar( TipoAcompanhamentoTa.class,
                                                             Long.valueOf( codTipoAcompanhamento ) );
                    permissaoAdministradorAcompanhamento =
                        estruturaAcessoDao.temPermissoesAcessoAcomp( tipoAcompanhamento,
                                                                     seguranca.getGruposAcesso(  ) );
                }
            } catch ( Exception e )
            {
                //NAO EXISTE O TIPO DE ACOMPANHAMENTO;
                throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.TIPO_DE_ACOMPANHAMENTO_INEXISTENTE );
            }

            try
            {
                if ( ( referencia_hidden != null ) && ! referencia_hidden.equals( "" ) )
                {
                    periodosConsiderados =
                        acompReferenciaDao.getPeriodosAnterioresOrdenado( Long.valueOf( referencia_hidden ),
                                                                          qtdePeriodosAnteriores,
                                                                          Long.valueOf( codTipoAcompanhamento ),
                                                                          false );
                }
            } catch ( Exception e )
            {
                //NAO EXISTE A REFERENCIA;
                throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.REFERENCIA_INEXISTENTE );
            }

            try
            {
                // Busca cole��o com o per�odo a ser considereado
                if ( ( codAri != null ) && ! codAri.equals( "" ) )
                {
                    ari = (AcompReferenciaItemAri) ariDao.buscar( AcompReferenciaItemAri.class,
                                                                  Long.valueOf( codAri ) );
                    item = ari.getItemEstruturaIett(  );
                }
            } catch ( Exception e )
            {
                //NAO EXISTE O ACOMPANHAMENTO;
                throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.ACOMPANHAMENTO_INEXISTENTE );
            }

            //verifica se o usu�rio pode "Gerar Per�odo de Acompanhamento"
            if ( permissaoAdministradorAcompanhamento )
            {
                permissaoLapis = true;
            } else
            {
                itPeriodosAcao = periodosConsiderados.iterator(  );
                mapAcao = acompReferenciaItemDao.criarMapPeriodoAri( periodosConsiderados, item );
                tpfaOrdenadosPorEstrutura = tipoFuncAcompDao.getFuncaoAcompOrderByEstruturas(  );

                if ( ( itPeriodosAcao != null ) && itPeriodosAcao.hasNext(  ) )
                {
                    //Pega s� o per�odo selecionado (Aref), que � o primeiro
                    acompReferencia = (AcompReferenciaAref) itPeriodosAcao.next(  );

                    if ( ! mapAcao.isEmpty(  ) && mapAcao.containsKey( acompReferencia ) )
                    {
                        AcompReferenciaItemAri ariAcao = (AcompReferenciaItemAri) mapAcao.get( acompReferencia );

                        //Pega os Arels do Ari selecionado
                        List relatorios =
                            acompReferenciaItemDao.getAcompRelatorioArelOrderByFuncaoAcomp( ariAcao,
                                                                                            tpfaOrdenadosPorEstrutura );
                        Iterator itRelatorios = relatorios.iterator(  );

                        if ( itRelatorios != null )
                        {
                            while ( itRelatorios.hasNext(  ) )
                            {
                                AcompRelatorioArel relatorio = (AcompRelatorioArel) itRelatorios.next(  );

                                ItemEstUsutpfuacIettutfa itemEstUsu =
                                    itemEstUsuDao.buscar( item.getCodIett(  ),
                                                          relatorio.getTipoFuncAcompTpfa(  ).getCodTpfa(  ) );

                                //Verifica se a permiss�o � de grupo ou usu�rio
                                if ( ( itemEstUsu != null ) && ( usuario != null ) )
                                {
                                    if ( itemEstUsu.getUsuarioUsu(  ) != null )
                                    {
                                        usuarioLogadoEmiteParecer = itemEstUsu.getUsuarioUsu(  ).getCodUsu(  )
                                                                              .equals( usuario.getCodUsu(  ) );
                                    } else if ( itemEstUsu.getSisAtributoSatb(  ) != null )
                                    {
                                        if ( itemEstUsu.getSisAtributoSatb(  ).getUsuarioAtributoUsuas(  ) != null )
                                        {
                                            Iterator itUsuarios =
                                                itemEstUsu.getSisAtributoSatb(  ).getUsuarioAtributoUsuas(  ).iterator(  );

                                            if ( itUsuarios != null )
                                            {
                                                while ( itUsuarios.hasNext(  ) )
                                                {
                                                    UsuarioAtributoUsua usuarioAtributoUsua =
                                                        (UsuarioAtributoUsua) itUsuarios.next(  );

                                                    if ( ( usuarioAtributoUsua != null ) &&
                                                             ( usuarioAtributoUsua.getUsuarioUsu(  ) != null ) &&
                                                             usuarioAtributoUsua.getUsuarioUsu(  ).getCodUsu(  )
                                                                                    .equals( usuario.getCodUsu(  ) ) )
                                                    {
                                                        usuarioLogadoEmiteParecer = true;

                                                        break;
                                                    }
View Full Code Here


        boolean permissaoAdministradorAcompanhamento = false;
        String exibeAba = null;
        Iterator itPeriodosAcao = null;
        Map mapAcao = null;

        UsuarioUsu usuario = seguranca.getUsuario(  );

        try
        {
            try
            {
                if ( ( codTipoAcompanhamento != null ) && ! codTipoAcompanhamento.equals( "" ) )
                {
                    tipoAcompanhamento =
                        (TipoAcompanhamentoTa) taDao.buscar( TipoAcompanhamentoTa.class,
                                                             Long.valueOf( codTipoAcompanhamento ) );
                    permissaoAdministradorAcompanhamento =
                        estruturaAcessoDao.temPermissoesAcessoAcomp( tipoAcompanhamento,
                                                                     seguranca.getGruposAcesso(  ) );
                }
            } catch ( Exception e )
            {
                //NAO EXISTE O TIPO DE ACOMPANHAMENTO;
                throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.TIPO_DE_ACOMPANHAMENTO_INEXISTENTE );
            }

            try
            {
                if ( ( referencia_hidden != null ) && ! referencia_hidden.equals( "" ) )
                {
                    periodosConsiderados =
                        acompReferenciaDao.getPeriodosAnterioresOrdenado( Long.valueOf( referencia_hidden ),
                                                                          qtdePeriodosAnteriores,
                                                                          Long.valueOf( codTipoAcompanhamento ),
                                                                          false );
                }
            } catch ( Exception e )
            {
                //NAO EXISTE A REFERENCIA;
                throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.REFERENCIA_INEXISTENTE );
            }

            try
            {
                // Busca cole��o com o per�odo a ser considereado
                if ( ( codAri != null ) && ! codAri.equals( "" ) )
                {
                    ari = (AcompReferenciaItemAri) ariDao.buscar( AcompReferenciaItemAri.class,
                                                                  Long.valueOf( codAri ) );
                    item = ari.getItemEstruturaIett(  );
                }
            } catch ( Exception e )
            {
                //NAO EXISTE O ACOMPANHAMENTO;
                throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.ACOMPANHAMENTO_INEXISTENTE );
            }

            //verifica se aba situa��o est� configurada para aparecer
            Collection lista = abaDao.listarAbasMonitoramento(  );

            if ( lista != null )
            {
                Iterator it = lista.iterator(  );

                while ( it.hasNext(  ) )
                {
                    Aba aba = (Aba) it.next(  );

                    if ( aba.getNomeAba(  ).equals( "SITUACAO" ) )
                    {
                        exibeAba = aba.getExibePosicaoAba(  );

                        break;
                    }
                }

                if ( ( exibeAba == null ) || exibeAba.equals( "N" ) )
                {
                    //ABA_INEXISTENTE;
                    throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.ABA_INEXISTENTE );
                }
            }

            if ( ( item.getIndAtivoIett(  ) == null ) ||
                     "".equals( item.getIndAtivoIett(  ).trim(  ) ) ||
                     "N".equals( item.getIndAtivoIett(  ).toUpperCase(  ) ) )
            {
                //O ITEM EST� INATIVO;
                throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.ITEM_INATIVO );

                //verifica se o usu�rio pode "Gerar Per�odo de Acompanhamento"
            } else if ( permissaoAdministradorAcompanhamento )
            {
                permissaoLapis = true;
            } else
            {
                itPeriodosAcao = periodosConsiderados.iterator(  );
                mapAcao = acompReferenciaItemDao.criarMapPeriodoAri( periodosConsiderados, item );
                tpfaOrdenadosPorEstrutura = tipoFuncAcompDao.getFuncaoAcompOrderByEstruturas(  );

                if ( ( itPeriodosAcao != null ) && itPeriodosAcao.hasNext(  ) )
                {
                    //Pega s� o per�odo selecionado (Aref), que � o primeiro
                    acompReferencia = (AcompReferenciaAref) itPeriodosAcao.next(  );

                    if ( ! mapAcao.isEmpty(  ) && mapAcao.containsKey( acompReferencia ) )
                    {
                        AcompReferenciaItemAri ariAcao = (AcompReferenciaItemAri) mapAcao.get( acompReferencia );

                        //Pega os Arels do Ari selecionado
                        List relatorios =
                            acompReferenciaItemDao.getAcompRelatorioArelOrderByFuncaoAcomp( ariAcao,
                                                                                            tpfaOrdenadosPorEstrutura );
                        Iterator itRelatorios = relatorios.iterator(  );

                        if ( itRelatorios != null )
                        {
                            while ( itRelatorios.hasNext(  ) )
                            {
                                AcompRelatorioArel relatorio = (AcompRelatorioArel) itRelatorios.next(  );

                                ItemEstUsutpfuacIettutfa itemEstUsu =
                                    itemEstUsuDao.buscar( item.getCodIett(  ),
                                                          relatorio.getTipoFuncAcompTpfa(  ).getCodTpfa(  ) );

                                //Verifica se a permiss�o � de grupo ou usu�rio
                                if ( ( itemEstUsu != null ) && ( usuario != null ) )
                                {
                                    if ( itemEstUsu.getUsuarioUsu(  ) != null )
                                    {
                                        usuarioLogadoEmiteParecer = itemEstUsu.getUsuarioUsu(  ).getCodUsu(  )
                                                                              .equals( usuario.getCodUsu(  ) );
                                    } else if ( itemEstUsu.getSisAtributoSatb(  ) != null )
                                    {
                                        if ( itemEstUsu.getSisAtributoSatb(  ).getUsuarioAtributoUsuas(  ) != null )
                                        {
                                            Iterator itUsuarios =
                                                itemEstUsu.getSisAtributoSatb(  ).getUsuarioAtributoUsuas(  ).iterator(  );

                                            if ( itUsuarios != null )
                                            {
                                                while ( itUsuarios.hasNext(  ) )
                                                {
                                                    UsuarioAtributoUsua usuarioAtributoUsua =
                                                        (UsuarioAtributoUsua) itUsuarios.next(  );

                                                    if ( ( usuarioAtributoUsua != null ) &&
                                                             ( usuarioAtributoUsua.getUsuarioUsu(  ) != null ) &&
                                                             usuarioAtributoUsua.getUsuarioUsu(  ).getCodUsu(  )
                                                                                    .equals( usuario.getCodUsu(  ) ) )
                                                    {
                                                        usuarioLogadoEmiteParecer = true;

                                                        break;
                                                    }
View Full Code Here

      boolean permissaoAdministradorAcompanhamento = false;
      String exibeAba = null;
      Iterator itPeriodosAcao = null;
      Map  mapAcao = null;
     
      UsuarioUsu usuario = seguranca.getUsuario();
     
       
      try {
       
        try {
         
          if(codTipoAcompanhamento != null && !codTipoAcompanhamento.equals("")) {
            tipoAcompanhamento = (TipoAcompanhamentoTa) taDao.buscar(TipoAcompanhamentoTa.class, Long.valueOf(codTipoAcompanhamento));
            permissaoAdministradorAcompanhamento = estruturaAcessoDao.temPermissoesAcessoAcomp(tipoAcompanhamento, seguranca.getGruposAcesso());
         
        } catch(Exception e) {
          //NAO EXISTE O TIPO DE ACOMPANHAMENTO;
          throw new PermissaoAcessoLinkException(ErroPermissaoAcessoLinkEnum.TIPO_DE_ACOMPANHAMENTO_INEXISTENTE);
        }
       
       
        try {

          if(referencia_hidden != null && !referencia_hidden.equals("")) {
            periodosConsiderados = acompReferenciaDao.getPeriodosAnterioresOrdenado(Long.valueOf(referencia_hidden), qtdePeriodosAnteriores, 
                    Long.valueOf(codTipoAcompanhamento), false);
          }   
         
        } catch(Exception e) {
          //NAO EXISTE A REFERENCIA;
          throw new PermissaoAcessoLinkException(ErroPermissaoAcessoLinkEnum.REFERENCIA_INEXISTENTE);
        }
       
       
        try{
          // Busca cole��o com o per�odo a ser considereado
          if(codAri != null && !codAri.equals("")) {
            ari = (AcompReferenciaItemAri) ariDao.buscar(AcompReferenciaItemAri.class, Long.valueOf(codAri));
            item = ari.getItemEstruturaIett();
         
        } catch(Exception e) {
          //NAO EXISTE O ACOMPANHAMENTO;
          throw new PermissaoAcessoLinkException(ErroPermissaoAcessoLinkEnum.ACOMPANHAMENTO_INEXISTENTE);
        }
       
       
     
          //verifica se aba situa��o est� configurada para aparecer
        Collection lista =  abaDao.listarAbasMonitoramento();
        if(lista != null) {
          Iterator it =  lista.iterator();
          while (it.hasNext()) {
            Aba aba = (Aba) it.next();
            if(aba.getNomeAba().equals("SITUACAO")) {
              exibeAba = aba.getExibePosicaoAba();
              break;
            }
          }
           
          if(exibeAba == null || exibeAba.equals("N")) {
            //ABA_INEXISTENTE;
            throw new PermissaoAcessoLinkException(ErroPermissaoAcessoLinkEnum.ABA_INEXISTENTE);
          }
        } 
         
       
       
        if (item.getIndAtivoIett() == null || "".equals(item.getIndAtivoIett().trim()) || "N".equals(item.getIndAtivoIett().toUpperCase())) {
         
          //O ITEM EST� INATIVO;
          throw new PermissaoAcessoLinkException(ErroPermissaoAcessoLinkEnum.ITEM_INATIVO);
       
        //verifica se o usu�rio pode "Gerar Per�odo de Acompanhamento"
        } else if(permissaoAdministradorAcompanhamento) {
          permissaoLapis = true;
         
        } else
         
         
          itPeriodosAcao = periodosConsiderados.iterator();
          mapAcao = acompReferenciaItemDao.criarMapPeriodoAri(periodosConsiderados, item);
          tpfaOrdenadosPorEstrutura = tipoFuncAcompDao.getFuncaoAcompOrderByEstruturas();
         
     
          if(itPeriodosAcao != null && itPeriodosAcao.hasNext()) {
            //Pega s� o per�odo selecionado (Aref), que � o primeiro
            acompReferencia = (AcompReferenciaAref) itPeriodosAcao.next();
            if(!mapAcao.isEmpty() && mapAcao.containsKey(acompReferencia)) {
              AcompReferenciaItemAri ariAcao = (AcompReferenciaItemAri) mapAcao.get(acompReferencia);
                     
              //Pega os Arels do Ari selecionado
              List relatorios = acompReferenciaItemDao.getAcompRelatorioArelOrderByFuncaoAcomp(ariAcao, tpfaOrdenadosPorEstrutura);
              Iterator itRelatorios = relatorios.iterator();
             
              if(itRelatorios != null) {
                while(itRelatorios.hasNext()){                       
                  AcompRelatorioArel relatorio = (AcompRelatorioArel) itRelatorios.next();                   
                         
                  ItemEstUsutpfuacIettutfa itemEstUsu
                            = itemEstUsuDao.buscar(item.getCodIett(), relatorio.getTipoFuncAcompTpfa().getCodTpfa());
                          
                  //Verifica se a permiss�o � de grupo ou usu�rio
                  if(itemEstUsu!=null && usuario != null) {                            
                    if (itemEstUsu.getUsuarioUsu() != null) {
                      usuarioLogadoEmiteParecer = itemEstUsu.getUsuarioUsu().getCodUsu().equals(usuario.getCodUsu());
                    } else if (itemEstUsu.getSisAtributoSatb() != null) {
                      if (itemEstUsu.getSisAtributoSatb().getUsuarioAtributoUsuas() != null) {
                        Iterator itUsuarios = itemEstUsu.getSisAtributoSatb().getUsuarioAtributoUsuas().iterator();
                        if(itUsuarios != null) {
                          while (itUsuarios.hasNext()) {
                            UsuarioAtributoUsua usuarioAtributoUsua = (UsuarioAtributoUsua) itUsuarios.next();
                              if (usuarioAtributoUsua!=null && usuarioAtributoUsua.getUsuarioUsu()!=null &&
                                  usuarioAtributoUsua.getUsuarioUsu().getCodUsu().equals(usuario.getCodUsu())){
                                usuarioLogadoEmiteParecer = true;
                                break;
                              }
                          }
                        } 
View Full Code Here

        boolean permissaoLapis = false;
        boolean permissaoAdministradorAcompanhamento = false;
        Iterator itPeriodosAcao = null;
        Map mapAcao = null;

        UsuarioUsu usuario = seguranca.getUsuario(  );

        try
        {
            try
            {
                if ( ( codTipoAcompanhamento != null ) && ! codTipoAcompanhamento.equals( "" ) )
                {
                    tipoAcompanhamento =
                        (TipoAcompanhamentoTa) taDao.buscar( TipoAcompanhamentoTa.class,
                                                             Long.valueOf( codTipoAcompanhamento ) );
                    permissaoAdministradorAcompanhamento =
                        estruturaAcessoDao.temPermissoesAcessoAcomp( tipoAcompanhamento,
                                                                     seguranca.getGruposAcesso(  ) );
                }
            } catch ( Exception e )
            {
                //NAO EXISTE O TIPO DE ACOMPANHAMENTO;
                throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.TIPO_DE_ACOMPANHAMENTO_INEXISTENTE );
            }

            try
            {
                if ( ( referencia_hidden != null ) && ! referencia_hidden.equals( "" ) )
                {
                    periodosConsiderados =
                        acompReferenciaDao.getPeriodosAnterioresOrdenado( Long.valueOf( referencia_hidden ),
                                                                          qtdePeriodosAnteriores,
                                                                          Long.valueOf( codTipoAcompanhamento ),
                                                                          false );
                }
            } catch ( Exception e )
            {
                //NAO EXISTE A REFERENCIA;
                throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.REFERENCIA_INEXISTENTE );
            }

            try
            {
                // Busca cole��o com o per�odo a ser considereado
                if ( ( codAri != null ) && ! codAri.equals( "" ) )
                {
                    ari = (AcompReferenciaItemAri) ariDao.buscar( AcompReferenciaItemAri.class,
                                                                  Long.valueOf( codAri ) );
                    item = ari.getItemEstruturaIett(  );
                }
            } catch ( Exception e )
            {
                //NAO EXISTE O ACOMPANHAMENTO;
                throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.ACOMPANHAMENTO_INEXISTENTE );
            }

            if ( ( item.getIndAtivoIett(  ) == null ) ||
                     "".equals( item.getIndAtivoIett(  ).trim(  ) ) ||
                     "N".equals( item.getIndAtivoIett(  ).toUpperCase(  ) ) )
            {
                //O ITEM EST� INATIVO;
                throw new PermissaoAcessoLinkException( ErroPermissaoAcessoLinkEnum.ITEM_INATIVO );

                //verifica se o usu�rio pode "Gerar Per�odo de Acompanhamento"
            } else if ( permissaoAdministradorAcompanhamento )
            {
                permissaoLapis = true;
            } else
            {
                itPeriodosAcao = periodosConsiderados.iterator(  );
                mapAcao = acompReferenciaItemDao.criarMapPeriodoAri( periodosConsiderados, item );
                tpfaOrdenadosPorEstrutura = tipoFuncAcompDao.getFuncaoAcompOrderByEstruturas(  );

                if ( ( itPeriodosAcao != null ) && itPeriodosAcao.hasNext(  ) )
                {
                    //Pega s� o per�odo selecionado (Aref), que � o primeiro
                    acompReferencia = (AcompReferenciaAref) itPeriodosAcao.next(  );

                    if ( ! mapAcao.isEmpty(  ) && mapAcao.containsKey( acompReferencia ) )
                    {
                        AcompReferenciaItemAri ariAcao = (AcompReferenciaItemAri) mapAcao.get( acompReferencia );

                        //Pega os Arels do Ari selecionado
                        List relatorios =
                            acompReferenciaItemDao.getAcompRelatorioArelOrderByFuncaoAcomp( ariAcao,
                                                                                            tpfaOrdenadosPorEstrutura );
                        Iterator itRelatorios = relatorios.iterator(  );

                        if ( itRelatorios != null )
                        {
                            while ( itRelatorios.hasNext(  ) )
                            {
                                AcompRelatorioArel relatorio = (AcompRelatorioArel) itRelatorios.next(  );

                                ItemEstUsutpfuacIettutfa itemEstUsu =
                                    itemEstUsuDao.buscar( item.getCodIett(  ),
                                                          relatorio.getTipoFuncAcompTpfa(  ).getCodTpfa(  ) );

                                //Verifica se a permiss�o � de grupo ou usu�rio
                                if ( ( itemEstUsu != null ) && ( usuario != null ) )
                                {
                                    if ( itemEstUsu.getUsuarioUsu(  ) != null )
                                    {
                                        usuarioLogadoEmiteParecer = itemEstUsu.getUsuarioUsu(  ).getCodUsu(  )
                                                                              .equals( usuario.getCodUsu(  ) );
                                    } else if ( itemEstUsu.getSisAtributoSatb(  ) != null )
                                    {
                                        if ( itemEstUsu.getSisAtributoSatb(  ).getUsuarioAtributoUsuas(  ) != null )
                                        {
                                            Iterator itUsuarios =
                                                itemEstUsu.getSisAtributoSatb(  ).getUsuarioAtributoUsuas(  ).iterator(  );

                                            if ( itUsuarios != null )
                                            {
                                                while ( itUsuarios.hasNext(  ) )
                                                {
                                                    UsuarioAtributoUsua usuarioAtributoUsua =
                                                        (UsuarioAtributoUsua) itUsuarios.next(  );

                                                    if ( ( usuarioAtributoUsua != null ) &&
                                                             ( usuarioAtributoUsua.getUsuarioUsu(  ) != null ) &&
                                                             usuarioAtributoUsua.getUsuarioUsu(  ).getCodUsu(  )
                                                                                    .equals( usuario.getCodUsu(  ) ) )
                                                    {
                                                        usuarioLogadoEmiteParecer = true;

                                                        break;
                                                    }
View Full Code Here

                  + grupoAtributo.getCodSga().toString());
              if (caminhoAuxiliarImagem!=null && caminhoAuxiliarImagem.length()>0) {
               
                String chave = demandaAtributo.getInformacao();
                chave = chave.substring(chave.indexOf("RemoteFile=")+ "RemoteFile=".length());
                            UsuarioUsu usuario = ((ecar.login.SegurancaECAR)request.getSession().getAttribute("seguranca")).getUsuario();
                            if(usuario.getMapArquivosAtuaisUsuarios().containsKey(chave)){
//                              demandaAtributo.setInformacao(usuario.getMapArquivosAtuaisUsuarios().get(chave));
                             
                              caminhoAuxiliarImagem = usuario.getMapArquivosAtuaisUsuarios().get(chave);
                              caminhoAuxiliarImagem = pathRaiz +"/DownloadFile?RemoteFile=" + caminhoAuxiliarImagem;
                            }                             
//                            else{
                           
                  // salvar a imagem fisicamente que tem o caminho real no campo "a" + codigo de grupo de atributo
View Full Code Here

         
      List retorno = null;
      try{
       
        Set<SisAtributoSatb> gruposAcesso = ((ecar.login.SegurancaECAR)request.getSession().getAttribute("seguranca")).getGruposAcesso();
        UsuarioUsu usuarioSessao = ((ecar.login.SegurancaECAR)request.getSession().getAttribute("seguranca")).getUsuario();
        VisaoSituacaoDemandaDao visaoSituacaoDemandaDao = new VisaoSituacaoDemandaDao(request);
        String codStabString = "";
        String codSitString = "";
        String codUsuarioString = "";
        String hqlPrefixo = "";
View Full Code Here

        while ( itFuncoesAcompNaEstrutura.hasNext(  ) )
        {
            EstrutTpFuncAcmpEtttfa estrutTpFuncAcmpEtttfa = (EstrutTpFuncAcmpEtttfa) itFuncoesAcompNaEstrutura.next(  );
            TipoFuncAcompTpfa tpfaNaEstrutura = estrutTpFuncAcmpEtttfa.getTipoFuncAcompTpfa(  );

            UsuarioUsu usuarioFuncao = null;
            SisAtributoSatb sisAtributoSatb = null;

            usuarioFuncao = (UsuarioUsu) itemEstruturaDao.getValorFunAcompItemEstrutura( item, tpfaNaEstrutura );

            if ( usuarioFuncao == null )
            {
                sisAtributoSatb = (SisAtributoSatb) itemEstruturaDao.getValorSatbFunAcompItemEstrutura( item,
                                                                                                        tpfaNaEstrutura );
            }

            if ( ( ( usuarioFuncao != null ) && usuarioFuncao.equals( usuario ) ) ||
                     ( ( sisAtributoSatb != null ) && gruposUsuario.contains( sisAtributoSatb ) ) )
            {
                listTipoFuncaoUsuario.add( tpfaNaEstrutura );
            }
        }
View Full Code Here

               }
              
               String raiz = new ecar.dao.ConfiguracaoDao(request).getConfiguracao().getRaizUpload();
               //arquivo = arquivo.substring(raiz.length());
              
            UsuarioUsu usuario = null;
            String hashNomeArquivo = null;
            String hashNomeURLEncoder = null;
           
            usuario = ((ecar.login.SegurancaECAR)page.getSession().getAttribute("seguranca")).getUsuario();   
           
View Full Code Here

 
      Set usuarioOrgao = itemPrograma.getOrgaoOrgByCodOrgaoResponsavel1Iett()
          .getUsuarioUsus();
      String usrTmp = "";
      for (Iterator iter = usuarioOrgao.iterator(); iter.hasNext();) {
        UsuarioUsu element = (UsuarioUsu) iter.next();
        usrTmp = element.getNomeUsu();
      }
 
      programa.setGestorPrograma(usrTmp);
      programa.setInicio(itemPrograma.getDataInicioIett());
      programa.setFim(itemPrograma.getDataTerminoIett());
View Full Code Here

          produto.setProdNome(ari.getItemEstruturaIett().getNomeIett());
         
          qtdProduto++;
         
          Iterator it = ari.getItemEstruturaIett().getItemEstUsutpfuacIettutfas().iterator();
          UsuarioUsu usu = null;
          while(it.hasNext()) {
            ItemEstUsutpfuacIettutfa sds = (ItemEstUsutpfuacIettutfa) it.next();
            if(sds.getTipoFuncAcompTpfa().equals(tipoFAcomp)) {
              if(sds.getUsuarioUsu() != null) {
                usu = sds.getUsuarioUsu();
              }             
            }
          }

         
          if(usu != null) {
            produto.setResponsavel(usu.getNomeUsu());
          }else {
            produto.setResponsavel("N�o Informado");
          }
         
          AcompRelatorioArel arel = null;
View Full Code Here

TOP

Related Classes of ecar.pojo.UsuarioUsu

Copyright © 2018 www.massapicom. 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.