|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| This report was generated with an evaluation server license. Purchase Clover or configure your license. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| AbstractTrackBackAction | Line # 13 | 2 | 0% | 1 | 3 | 0% |
0.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| No Tests | |||
| 1 | package net.sourceforge.pebble.web.action; | |
| 2 | ||
| 3 | import net.sourceforge.pebble.domain.BlogEntry; | |
| 4 | ||
| 5 | import org.apache.commons.logging.Log; | |
| 6 | import org.apache.commons.logging.LogFactory; | |
| 7 | ||
| 8 | /** | |
| 9 | * Superclass for TrackBack link generation actions. | |
| 10 | * | |
| 11 | * @author Simon Brown | |
| 12 | */ | |
| 13 | public abstract class AbstractTrackBackAction extends Action { | |
| 14 | ||
| 15 | public static final String BLOG_ENTRY_ID = "trackBack.blogEntryId"; | |
| 16 | ||
| 17 | /** the log used by this class */ | |
| 18 | private static Log log = LogFactory.getLog(AbstractTrackBackAction.class); | |
| 19 | ||
| 20 | 0 |
protected void generateTrackBackLink(BlogEntry blogEntry) { |
| 21 | 0 | getModel().put("trackBackLinkExpires", "true"); |
| 22 | 0 | getModel().put("trackBackLink", blogEntry.getTrackBackLink()); |
| 23 | } | |
| 24 | ||
| 25 | } | |
|
||||||||||||