Rev 146 | Rev 205 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
112 | jmachado | 1 | package pt.estgp.estgweb.domain; |
2 | |||
146 | jmachado | 3 | import java.io.Serializable; |
204 | jmachado | 4 | import java.util.List; |
146 | jmachado | 5 | |
112 | jmachado | 6 | /** |
7 | * Created by IntelliJ IDEA. |
||
8 | * User: Jorge Machado |
||
9 | * Date: 7/Mai/2008 |
||
10 | * Time: 20:21:15 |
||
11 | * To change this template use File | Settings | File Templates. |
||
12 | */ |
||
204 | jmachado | 13 | public class CourseUnitImpl extends CourseUnit implements ICanManage |
146 | jmachado | 14 | { |
15 | public 1.5.0/docs/api/java/io/Serializable.html">Serializable getSerializable() |
||
16 | { |
||
17 | return getId(); |
||
18 | } |
||
204 | jmachado | 19 | |
20 | public boolean isValid() |
||
21 | { |
||
22 | return true; //To change body of implemented methods use File | Settings | File Templates. |
||
23 | } |
||
24 | |||
25 | public boolean isOwnedBy(GenericUser u) |
||
26 | { |
||
27 | return u != null && u instanceof TeacherImpl && ((TeacherImpl)u).hasCourseUnit(getId(),true); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Not implemented can be variuous teachers |
||
32 | * @return null |
||
33 | * use isOwnedBy in this class |
||
34 | */ |
||
35 | public GenericUser getOwner() |
||
36 | { |
||
37 | return null; |
||
38 | } |
||
39 | /** |
||
40 | * Not implemented |
||
41 | * @return |
||
42 | */ |
||
43 | public List<String> getOwnerRoles() |
||
44 | { |
||
45 | return null; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Not implemented |
||
50 | * @return |
||
51 | */ |
||
52 | public 1.5.0/docs/api/java/lang/String.html">String getChoosedOwnerRole() |
||
53 | { |
||
54 | return null; |
||
55 | } |
||
56 | |||
57 | public boolean isInternal() |
||
58 | { |
||
59 | return true; //To change body of implemented methods use File | Settings | File Templates. |
||
60 | } |
||
112 | jmachado | 61 | } |