Package br.com.msi.entities

Examples of br.com.msi.entities.Visitantes


            }
        }
    }

    public void ordenarVisitanteListPorData() {
        Visitantes visitantes = (Visitantes) getBean("visitantes");
        if (visitantes.getOrdenarPorDataHoraVisita() == -1) {
            modificarTabela = false;
            return;
        }
        OrdenarVisitantePorData ordenarVisitantePorData = new OrdenarVisitantePorData();
        if (visitantes.getOrdenarPorDataHoraVisita() == 0) {
            try {
                visitantesList = visitantesSBeanLocal.consultaVisitantesListOrderByData(visitantesDto);
                Collections.sort(visitantesList, ordenarVisitantePorData.crescente());
                modificarTabela = true;
            } catch (Exception ex) {
View Full Code Here


    public boolean contains(final Visitantes visitante){
        Object r = CollectionUtils.find(visitantesList, new Predicate() {

            @Override
            public boolean evaluate(Object o) {
                Visitantes v = (Visitantes) o;
                return visitante.getLoginVisitante()!=null&&visitante.getLoginVisitante().equals(v.getLoginVisitante());
            }
        });
        return r!=null;
    }
View Full Code Here

        });
        return r!=null;
    }
   
    public Visitantes getVisitante(final String uid){
        Visitantes v = (Visitantes) CollectionUtils.find(visitantesList, new Predicate() {

            @Override
            public boolean evaluate(Object input) {
                Visitantes visitantes = (Visitantes) input;
                return visitantes.getUniqueId().equals(uid);
            }
        });
        return v;
    }
View Full Code Here

TOP

Related Classes of br.com.msi.entities.Visitantes

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.