Package java.util

Examples of java.util.TreeSet.addAll()


    /* Se funcionário é administrador ou tem nivel de acesso ao órgão */
    if (funcionario.getPerfil().equals(Perfil.ADMINISTRADOR)
        || funcionario.getNivelAtuacao() == Funcionario.NA_ORGAO)
      subOrgaoList.addAll(subOrgaoCtrl.list(getOrgao(request)));
    else {
      subOrgaoList.addAll(funcionario.getListaSubOrgaosAtivos());
    }

    /* Lista de Perfis */
    PerfilCtrl perfilCtrl = new PerfilCtrl(getDaoFactory());
    Collection perfilList = new TreeSet(ordem);
View Full Code Here


    }

    /* Lista de Perfis */
    PerfilCtrl perfilCtrl = new PerfilCtrl(getDaoFactory());
    Collection perfilList = new TreeSet(ordem);
    perfilList.addAll(perfilCtrl.list());
    if (!funcionario.getPerfil().equals(Perfil.ADMINISTRADOR)) {
      perfilList.remove(Perfil.ADMINISTRADOR);
    }

    /* Lista de Funcionalidades */
 
View Full Code Here

    /* Lista de Funcionalidades */
    FuncionalidadeCtrl funcionalideCtrl = new FuncionalidadeCtrl(
        getDaoFactory());
    Collection funcionalideList = new TreeSet(ordem);
    funcionalideList.addAll(funcionalideCtrl.list());

    /* Lista de Tipo de Assunto */
    TipoAssuntoCtrl tipoAssuntoCtrl = new TipoAssuntoCtrl(getDaoFactory());
    Collection tipoAssuntoList = new TreeSet(ordem);

View Full Code Here

    Collection tipoAssuntoList = new TreeSet(ordem);

    /* Se funcionário é administrador ou tem nivel de acesso ao órgão */
    if (funcionario.getPerfil().equals(Perfil.ADMINISTRADOR)
        || 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));
View Full Code Here

      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

    /* Lista de Tipo Mensagem */
    TipoMensagemCtrl tipoMensagemCtrl = new TipoMensagemCtrl(
        getDaoFactory());
    Collection tipoMesagemList = new TreeSet(ordem);
    tipoMesagemList.addAll(tipoMensagemCtrl.list(getOrgao(request)));

    request.setAttribute("object", object);
    request.setAttribute("function", request.getParameter("function"));

    request.setAttribute("listarPerfil", perfilList);
View Full Code Here

      /* Se funcionário é administrador ou tem nivel de acesso ao órgão */
      if (gestor.getPerfil().equals(Perfil.ADMINISTRADOR)
          || gestor.getListaSubOrgaosAtivos() == null
          || gestor.getListaSubOrgaosAtivos().isEmpty())
        subOrgaoList.addAll(subOrgaoCtrl.list(getOrgao(request)));
      else {
        subOrgaoList.addAll(gestor.getListaSubOrgaosAtivos());
      }

      /* Lista de Perfis */
 
View Full Code Here

      if (gestor.getPerfil().equals(Perfil.ADMINISTRADOR)
          || gestor.getListaSubOrgaosAtivos() == null
          || gestor.getListaSubOrgaosAtivos().isEmpty())
        subOrgaoList.addAll(subOrgaoCtrl.list(getOrgao(request)));
      else {
        subOrgaoList.addAll(gestor.getListaSubOrgaosAtivos());
      }

      /* Lista de Perfis */
      Collection perfilList = new TreeSet(ordem);

View Full Code Here

      }

      /* Lista de Perfis */
      Collection perfilList = new TreeSet(ordem);

      perfilList.addAll(perfilCtrl.list());

      if (!gestor.getPerfil().equals(Perfil.ADMINISTRADOR)) {
        perfilList.remove(Perfil.ADMINISTRADOR);
      }

View Full Code Here

      /* Lista de Funcionalidades */
      FuncionalidadeCtrl funcionalideCtrl = new FuncionalidadeCtrl(
          getDaoFactory());
      Collection funcionalideList = new TreeSet(ordem);
      funcionalideList.addAll(funcionalideCtrl.list());

      /* Lista de Tipo de Assunto */
      TipoAssuntoCtrl tipoAssuntoCtrl = new TipoAssuntoCtrl(
          getDaoFactory());
      Collection tipoAssuntoList = new TreeSet(ordem);
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.