Clover Coverage Report - Pebble 2.5-SNAPSHOT
Coverage timestamp: Sat Jun 12 2010 09:39:29 EST
../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
2   24   1   2
0   9   0,5   1
1     1  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  DisableResponseDecorator       Line # 11 2 0% 1 0 100% 1.0
 
  (2)
 
1    package net.sourceforge.pebble.decorator;
2   
3    import net.sourceforge.pebble.domain.BlogEntry;
4    import net.sourceforge.pebble.api.decorator.ContentDecoratorContext;
5   
6    /**
7    * Disables comments and TrackBacks for the blog entry.
8    *
9    * @author Simon Brown
10    */
 
11    public class DisableResponseDecorator extends ContentDecoratorSupport {
12   
13    /**
14    * Decorates the specified blog entry.
15    *
16    * @param context the context in which the decoration is running
17    * @param blogEntry the blog entry to be decorated
18    */
 
19  2 toggle public void decorate(ContentDecoratorContext context, BlogEntry blogEntry) {
20  2 blogEntry.setCommentsEnabled(false);
21  2 blogEntry.setTrackBacksEnabled(false);
22    }
23   
24    }