Subversion Repositories bacoAlunos

Rev

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

Rev Author Line No. Line
114 jmachado 1
package pt.estgp.estgweb.domain;
2
 
3
import pt.estgp.estgweb.Globals;
4
 
5
/**
6
 * @author Jorge Machado
7
 * @date 28/Fev/2008
8
 * @time 12:51:32
9
 * @see pt.estgp.estgweb
10
 */
11
public class TeacherImpl extends Teacher
12
{
13
 
14
    public static final 1.5.0/docs/api/java/lang/String.html">String TEACHER_ROLE = Globals.TEACHER_ROLE;
15
 
16
 
17
    public 1.5.0/docs/api/java/lang/String.html">String getManagedRole() {
18
        return TEACHER_ROLE;
19
    }
146 jmachado 20
 
21
    public boolean hasCourseUnit(CourseUnit courseUnit)
22
    {
23
        if(getTeachedUnits() == null)
24
            return false;
25
        for(CourseUnit c: getTeachedUnits())
26
        {
27
            if(c.getId() == courseUnit.getId())
28
                return true;
29
        }
30
        return false;
31
    }
114 jmachado 32
}