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 ReadNotClosedExecutionYears extends FenixService { @Service public static List run() { final List result = new ArrayList(); for (final ExecutionYear executionYear : ExecutionYear.readNotClosedExecutionYears()) { result.add(InfoExecutionYear.newInfoFromDomain(executionYear)); } return result; } }