Package br.gov.serpro.ouvidoria.model

Examples of br.gov.serpro.ouvidoria.model.SubOrgao


            lista = defaultCtrl.list(getOrgao(request));
        } else {
            lista = new ArrayList();
            for (Iterator iter = funcionario.getListaSubOrgaosAtivos()
                    .iterator(); iter.hasNext();) {
                SubOrgao subOrgao = (SubOrgao) iter.next();
                lista.addAll(subOrgao.getListaAssunto(Assunto.ATIVO));
            }
        }

        request.setAttribute("listar", lista);
View Full Code Here


          || gestor.getListaSubOrgaosAtivos().isEmpty())
        tipoAssuntoList.addAll(tipoAssuntoCtrl.list(getOrgao(request)));
      else {
        for (Iterator iter = gestor.getListaSubOrgaosAtivos()
            .iterator(); iter.hasNext();) {
          SubOrgao subOrgao = (SubOrgao) iter.next();
          tipoAssuntoList.addAll(subOrgao
              .getListaAssunto(Assunto.ATIVO));
        }
      }

      /* Lista de Tipo Mensagem */
 
View Full Code Here

      HttpServletRequest request, HttpServletResponse response)
      throws Exception {

    final String id = request.getParameter("id");

    SubOrgao subOrgao = null;
    if (id == null || id.trim().length() == 0) {
      subOrgao = new SubOrgao();
    } else {
      SubOrgaoCtrl subOrgaoCtrl = new SubOrgaoCtrl(getDaoFactory());
      subOrgao = subOrgaoCtrl.get(new Long(id));
    }
View Full Code Here

        || funcionario.getNivelAtuacao() == Funcionario.NA_ORGAO)
      tipoAssuntoList.addAll(tipoAssuntoCtrl.list(getOrgao(request)));
    else {
      for (Iterator iter = funcionario.getListaSubOrgaosAtivos()
          .iterator(); iter.hasNext();) {
        SubOrgao subOrgao = (SubOrgao) iter.next();
        tipoAssuntoList.addAll(subOrgao.getListaAssunto(Assunto.ATIVO));
      }
    }
    // verifica se o usuário tem acionamentos atrelados a ele

    List listaAcionamento = new ArrayList();
View Full Code Here

            HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        SubOrgaoCtrl subOrgaoCtrl = new SubOrgaoCtrl(getDaoFactory());

        SubOrgao subOrgao = subOrgaoCtrl.get(new Long(request
                .getParameter("id")));

        LocalidadeOcorrenciaCtrl localidadeOcorrenciaCtrl = new LocalidadeOcorrenciaCtrl(
                getDaoFactory());
View Full Code Here

            saveErrors(request, msgs);
            return mapping.findForward("error");
        }

        SubOrgaoCtrl subOrgaoCtrl = new SubOrgaoCtrl(getDaoFactory());
        SubOrgao subOrgao = subOrgaoCtrl.get(new Long(subOrgaoId));

        LocalidadeOcorrenciaCtrl localidadeOcorrenciaCtrl = new LocalidadeOcorrenciaCtrl(
                getDaoFactory());

        try {
View Full Code Here

        final String horaVigencia = request.getParameter("horaVigencia");

        final String subOrgaoId = request.getParameter("subOrgaoId");

        SubOrgaoCtrl subOrgaoCtrl = new SubOrgaoCtrl(getDaoFactory());
        SubOrgao subOrgao = subOrgaoCtrl.get(new Long(subOrgaoId));

        LocalidadeOcorrenciaCtrl localidadeOcorrenciaCtrl = new LocalidadeOcorrenciaCtrl(
                getDaoFactory());

        SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm",
View Full Code Here

                    }
                };

                assuntos = new TreeSet(ordem);
                for(Iterator iter=funcionario.getListaSubOrgaosAtivos().iterator(); iter.hasNext(); ) {
                    SubOrgao subOrgao = (SubOrgao) iter.next();
                    assuntos.addAll(subOrgao.getListaAssunto(Assunto.ATIVO));
                }
            }
           
            Collection tipoMsg = orgao.getListaTipoMensagem();
View Full Code Here

    if (id == null) {
      throw new DaoException("ID do Objeto não pode ser nulo.");
    }

    SubOrgao subOrgao = get(new Long(id));
    subOrgao.setDescricao(descricao);
    subOrgao.setDataInicioVigencia(dataInicioVigencia);
    subOrgao.setDataFimVigencia(dataFimVigencia);
    save(orgao, subOrgao);
  }
View Full Code Here

    if (id == null) {
      throw new DaoException("ID do Objeto não pode ser nulo.");
    }

    SubOrgao subOrgao = get(new Long(id));
    subOrgao.setDataFimVigencia(dataFimVigencia);
    save(orgao, subOrgao);
  }
View Full Code Here

TOP

Related Classes of br.gov.serpro.ouvidoria.model.SubOrgao

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.