Examples of HorarioDeAula


Examples of br.facet.tcc.pojo.HorarioDeAula

     * @since since optional
     */
    @Override
    public Object getAsObject(FacesContext context, UIComponent component,
            String value) {
        HorarioDeAula hda = null;
        for (br.facet.tcc.enums.HorarioDeAulas horario : br.facet.tcc.enums.HorarioDeAulas
                .values()) {
            if (horario.getValue().equals(value)) {
                hda = new HorarioDeAula(horario);

            }
        }
        return hda;
    }
View Full Code Here

Examples of br.facet.tcc.pojo.HorarioDeAula

    }

    public List<HorarioDeAula> getHorariosDeAula() {
        List<HorarioDeAula> lista = new ArrayList<HorarioDeAula>();
        for (HorarioDeAulas horarioDeAula : HorarioDeAulas.values()) {
            HorarioDeAula horarioDeA = new HorarioDeAula(horarioDeAula);
            horarioDeA.setId(horarioDeAula.getId());
            horarioDeA.setHorarioDeAulas(horarioDeAula);

            lista.add(horarioDeA);
        }
        return lista;
    }
View Full Code Here

Examples of br.facet.tcc.pojo.HorarioDeAula

        // Disponibilidade
        Set<Disciplina> disciplinas = new HashSet<Disciplina>(
                this.disciplinaDao.listar(Disciplina.class));
        Set<HorarioDeAula> horarioDeAulas = new LinkedHashSet<HorarioDeAula>();
        horarioDeAulas.add(new HorarioDeAula(
                HorarioDeAulas.SEGUNDA_PRIMEIRO_HORARIO));

        Professor professor = new Professor();

        professor.setCpf(32932112388L);
View Full Code Here

Examples of br.facet.tcc.pojo.HorarioDeAula

    public void testPesquisarPorDisponibilidade() throws DaoException {
        Professor professor = new Professor();
        // professor.setNome("carol");

        Set<HorarioDeAula> horarios = new HashSet<HorarioDeAula>();
        horarios.add(new HorarioDeAula(HorarioDeAulas.SEGUNDA_PRIMEIRO_HORARIO));
        horarios.add(new HorarioDeAula(HorarioDeAulas.SEXTA_SEGUNDO_HORARIO));
        horarios.add(new HorarioDeAula(HorarioDeAulas.QUARTA_PRIMEIRO_HORARIO));

        professor.setHorarioDisponivel(horarios);

        List<Professor> professor1 = getProfessorDao().pesquisar(professor);
        Assert.assertTrue("Lista esta vazia", professor1.size() > 0);
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.