|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| This report was generated with an evaluation server license. Purchase Clover or configure your license. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ConfirmCommentView | Line # 13 | 5 | 0% | 3 | 8 | 0% |
0.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| No Tests | |||
| 1 | package net.sourceforge.pebble.web.view.impl; | |
| 2 | ||
| 3 | import net.sourceforge.pebble.web.view.HtmlView; | |
| 4 | import net.sourceforge.pebble.domain.Blog; | |
| 5 | import net.sourceforge.pebble.Constants; | |
| 6 | import net.sourceforge.pebble.api.confirmation.CommentConfirmationStrategy; | |
| 7 | ||
| 8 | /** | |
| 9 | * Represents the confir comment page. | |
| 10 | * | |
| 11 | * @author Simon Brown | |
| 12 | */ | |
| 13 | public class ConfirmCommentView extends HtmlView { | |
| 14 | ||
| 15 | /** | |
| 16 | * Prepares the view for presentation. | |
| 17 | */ | |
| 18 | 0 |
public void prepare() { |
| 19 | 0 | getModel().put("confirmationAction", "confirmComment.action"); |
| 20 | } | |
| 21 | ||
| 22 | /** | |
| 23 | * Gets the title of this view. | |
| 24 | * | |
| 25 | * @return the title as a String | |
| 26 | */ | |
| 27 | 0 |
public String getTitle() { |
| 28 | 0 | return null; |
| 29 | } | |
| 30 | ||
| 31 | /** | |
| 32 | * Gets the URI that this view represents. | |
| 33 | * | |
| 34 | * @return the URI as a String | |
| 35 | */ | |
| 36 | 0 |
public String getUri() { |
| 37 | 0 | Blog blog = (Blog)getModel().get(Constants.BLOG_KEY); |
| 38 | 0 | CommentConfirmationStrategy strategy = blog.getCommentConfirmationStrategy(); |
| 39 | 0 | return strategy.getUri(); |
| 40 | } | |
| 41 | ||
| 42 | } | |
|
||||||||||||