Rev 1306 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
253 | jmachado | 1 | package pt.estgp.estgweb.services.courseunits; |
2 | |||
995 | jmachado | 3 | import pt.estgp.estgweb.domain.CourseUnit; |
253 | jmachado | 4 | import pt.estgp.estgweb.domain.CourseUnitImpl; |
5 | import pt.estgp.estgweb.domain.Teacher; |
||
6 | import pt.estgp.estgweb.domain.dao.DaoFactory; |
||
995 | jmachado | 7 | import pt.utl.ist.berserk.logic.serviceManager.IService; |
253 | jmachado | 8 | |
9 | import java.util.List; |
||
10 | |||
11 | /** |
||
12 | * @author Jorge Machado |
||
13 | * @date 2/Jun/2008 |
||
14 | * @see pt.estgp.estgweb.services.courseunits |
||
15 | */ |
||
16 | public class LoadTeachedUnitsCurrentYearService implements IService |
||
17 | { |
||
18 | public List<CourseUnitImpl> run(long teacherId) |
||
19 | { |
||
20 | Teacher t = DaoFactory.getTeacherDaoImpl().load(teacherId); |
||
995 | jmachado | 21 | List<CourseUnitImpl> units = DaoFactory.getCourseUnitDaoImpl().loadTeachedImportYearUnits(teacherId,DaoFactory.getConfigurationDaoImpl().getInterfaceImportYear()); |
253 | jmachado | 22 | |
23 | for(CourseUnit c: units) |
||
24 | { |
||
25 | c.getName(); |
||
26 | c.getCourse().getName(); |
||
27 | } |
||
28 | return units; |
||
29 | } |
||
30 | } |