package net.sourceforge.fenixedu.applicationTier.Servico.commons; import java.util.ArrayList; import java.util.List; import net.sourceforge.fenixedu.applicationTier.FenixService; import net.sourceforge.fenixedu.dataTransferObject.InfoExecutionYear; import net.sourceforge.fenixedu.domain.ExecutionYear; import pt.ist.fenixWebFramework.services.Service; public class ReadExecutionYearsService extends FenixService { @Service public static List run() { final List infoExecutionYears = new ArrayList(); for (final ExecutionYear executionYear : rootDomainObject.getExecutionYears()) { infoExecutionYears.add(InfoExecutionYear.newInfoFromDomain(executionYear)); } return infoExecutionYears; } @Service public static ExecutionYear run(Integer executionYearID) { return rootDomainObject.readExecutionYearByOID(executionYearID); } }