Package org.fenixedu.academic.service.services.person

Examples of org.fenixedu.academic.service.services.person.PersonSearcher


        this.paymentCode = paymentCode;
    }

    public Collection<Person> search() {
        Stream<Person> stream =
                new PersonSearcher().name(name).username(username).documentIdNumber(documentIdNumber)
                        .documentIdType(idDocumentType).search();
        if (studentNumber != null) {
            stream = stream.filter(p -> p.getStudent().getStudentNumber().getNumber().equals(studentNumber));
        }
        if (!Strings.isNullOrEmpty(paymentCode)) {
View Full Code Here


import org.fenixedu.bennu.core.presentationTier.renderers.autoCompleteProvider.AutoCompleteProvider;

public class SearchPersons implements AutoCompleteProvider<Person> {
    @Override
    public Collection<Person> getSearchResults(Map<String, String> argsMap, String value, int maxCount) {
        return new PersonSearcher().bestEffortQuery(value).search(maxCount).collect(Collectors.toSet());
    }
View Full Code Here

public class SearchAllActiveParties extends SearchParties<Party> {

    @Override
    protected Collection<Party> search(String value, int size) {
        Set<Party> result = new HashSet<Party>();
        result.addAll(new PersonSearcher().bestEffortQuery(value).search(size).collect(Collectors.toSet()));
        YearMonthDay currentDate = new YearMonthDay();
        for (UnitName unitName : UnitName.find(value, size)) {
            if (unitName.getUnit().isActive(currentDate)) {
                result.add(unitName.getUnit());
            }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.service.services.person.PersonSearcher

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.