1 package net.sourceforge.blogentis.trackback;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 import net.sourceforge.blogentis.om.Blog;
26 import net.sourceforge.blogentis.plugins.AbstractPlugin;
27 import net.sourceforge.blogentis.plugins.BlogPluginService;
28 import net.sourceforge.blogentis.plugins.base.INavigationExtensionPoint;
29 import net.sourceforge.blogentis.plugins.base.IPostEditExtensionPoint;
30
31 /***
32 * @author abas
33 */
34 public class TrackbackPlugin
35 extends AbstractPlugin {
36
37 public String getName() {
38 return "Trackbacks";
39 }
40
41 public String getDescription() {
42 return "Allows you to receive trackbacks to published"
43 + " posts and send trackbacks back to pages you link to.";
44 }
45
46 public void registerInBlog(Blog blog) {
47 BlogPluginService.locateExtensionPoint(blog,
48 INavigationExtensionPoint.class)
49 .addExtension(new TrackbackNavExtension(this, blog));
50 BlogPluginService.locateExtensionPoint(blog,
51 IPostEditExtensionPoint.class)
52 .addExtension(new TrackbackPostEditExtension(this, blog));
53 }
54 }