Examples of UnitName


Examples of org.fenixedu.academic.domain.organizationalStructure.UnitName

    public void setPerson(Person person) {
        this.person = person;
    }

    public Unit getUnit() {
        UnitName unitName = getUnitName();

        if (unitName == null) {
            return null;
        } else {
            return unitName.getUnit();
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.organizationalStructure.UnitName

        final List<Unit> result = new ArrayList<Unit>();
        final YearMonthDay today = new YearMonthDay();
        final Predicate predicate = new Predicate() {
            @Override
            public boolean evaluate(Object arg0) {
                final UnitName unitName = (UnitName) arg0;
                final Unit unit = unitName.getUnit();
                return unit instanceof UniversityUnit && unit.isActive(today);
            }
        };
        for (final UnitName unitName : UnitName.findExternalUnit(value, maxCount, predicate)) {
            final Unit unit = unitName.getUnit();
            result.add(unit);
        }
        return result;
    }
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.