Subversion Repositories bacoAlunos

Rev

Rev 1306 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
255 jmachado 1
package pt.estgp.estgweb.services.courseunits;
2
 
3
import pt.estgp.estgweb.domain.CourseUnit;
4
import pt.estgp.estgweb.domain.dao.DaoFactory;
995 jmachado 5
import pt.utl.ist.berserk.logic.serviceManager.IService;
255 jmachado 6
 
7
import java.util.List;
8
 
9
/**
10
 * @author Jorge Machado
11
 * @date 2/Jun/2008
12
 * @see pt.estgp.estgweb.services.courseunits
13
 */
14
public class LoadSubscribedUnitsOldYearsService implements IService
15
{
16
    public List<CourseUnit> run(long studentId)
17
    {
18
//        Student t = DaoFactory.getStudentDaoImpl().load(studentId);
995 jmachado 19
        List<CourseUnit> units = DaoFactory.getCourseUnitDaoImpl().loadSubscribedOtherImportYearUnits(studentId, DaoFactory.getConfigurationDaoImpl().getInterfaceImportYear());
255 jmachado 20
        for(CourseUnit c: units)
21
        {
22
            c.getName();
23
            c.getCourse().getName();
24
        }
25
        return units;
26
    }
27
}