Rev 1306 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
202 | jmachado | 1 | package pt.estgp.estgweb.domain; |
2 | |||
3 | import org.apache.log4j.Logger; |
||
4 | |||
5 | /** |
||
6 | * @author Jorge Machado |
||
7 | * @date 2/Jun/2008 |
||
8 | * @see pt.estgp.estgweb.domain |
||
9 | */ |
||
10 | public class CourseUnitBlogPostImpl extends CourseUnitBlogPost |
||
11 | { |
||
12 | private static final 1.5.0/docs/api/java/util/logging/Logger.html">Logger logger = 1.5.0/docs/api/java/util/logging/Logger.html">Logger.getLogger(CourseUnitBlogPostImpl.class); |
||
13 | |||
14 | |||
15 | public boolean canLoad(GenericUserImpl u) |
||
16 | { |
||
17 | if(!isCourseUnitInternal()) |
||
18 | return true; |
||
19 | if(getBlog() instanceof CourseUnitBlog) |
||
20 | { |
||
21 | return ((CourseUnitBlogImpl)getBlog()).canLoad(u); |
||
22 | } |
||
23 | else |
||
24 | { |
||
25 | logger.fatal("ATENTION CourseUnitBlogPostImpl:" + getId() + " belongs to Blog: " + getBlog().getId() + " that is not form class: CourseUnitBlog"); |
||
26 | return false; |
||
27 | } |
||
28 | } |
||
29 | } |