Package org.fenixedu.academic.domain.candidacy

Examples of org.fenixedu.academic.domain.candidacy.CandidacySituationType


    }

    @Override
    public Set<User> getMembers() {
        return Bennu.getInstance().getCandidaciesSet().stream().filter(candidacy -> {
            CandidacySituationType situation = candidacy.getActiveCandidacySituationType();
            return situation != null && situation.isActive() && !situation.equals(CandidacySituationType.REGISTERED);
        }).map(candidacy -> candidacy.getPerson().getUser()).collect(Collectors.toSet());
    }
View Full Code Here


        return user != null && user.getPerson() != null && hasActiveCandidacies(user.getPerson());
    }

    private boolean hasActiveCandidacies(Person person) {
        for (Candidacy candidacy : person.getCandidaciesSet()) {
            CandidacySituationType situation = candidacy.getActiveCandidacySituationType();
            if (situation != null && situation.isActive() && !situation.equals(CandidacySituationType.REGISTERED)) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.candidacy.CandidacySituationType

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.