/* * Created on Nov 8, 2005 * by mrsp */ package net.sourceforge.fenixedu.presentationTier.backBeans.facultyAdmOffice; import java.util.ArrayList; import java.util.Collections; import java.util.List; import net.sourceforge.fenixedu.applicationTier.Filtro.exception.FenixFilterException; import net.sourceforge.fenixedu.applicationTier.Servico.exceptions.FenixServiceException; import net.sourceforge.fenixedu.domain.organizationalStructure.Unit; import net.sourceforge.fenixedu.domain.organizationalStructure.UnitUtils; import net.sourceforge.fenixedu.presentationTier.backBeans.manager.personManagement.ManagerFunctionsManagementBackingBean; import org.joda.time.YearMonthDay; public class FacultyAdmOfficeFunctionsManagement extends ManagerFunctionsManagementBackingBean { public String getUnits() throws FenixFilterException, FenixServiceException { StringBuilder buffer = new StringBuilder(); getUnitTree(buffer, UnitUtils.readInstitutionUnit()); return buffer.toString(); } public void getUnitTree(StringBuilder buffer, Unit parentUnit) { buffer.append("