1 package net.sourceforge.blogentis.modules.screens;
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.turbine.BlogParameterParser;
26 import net.sourceforge.blogentis.turbine.SecureBlogScreen;
27 import net.sourceforge.blogentis.utils.BlogConstants;
28 import net.sourceforge.blogentis.utils.BlogPropertyCache;
29
30 import org.apache.commons.configuration.SubsetConfiguration;
31 import org.apache.turbine.util.RunData;
32 import org.apache.velocity.context.Context;
33
34 /***
35 * @author abas
36 */
37 public class BlogTrackbacks
38 extends SecureBlogScreen {
39 protected void doBuildTemplate(RunData data, Context context)
40 throws Exception {
41 super.doBuildTemplate(data, context);
42 BlogParameterParser pp = (BlogParameterParser)data.getParameters();
43 BlogPropertyCache bpc = BlogPropertyCache.getInstance();
44 context.put("conf", new SubsetConfiguration(pp.getBlog()
45 .getConfiguration(), "trackback", "."));
46 }
47
48 protected String[] getPermissions() {
49 return new String[] {BlogConstants.PERM_ADMIN_BLOG};
50 }
51 }