protected final IdentityManager identityManager;
- public BasicPage(WebInterface webInterface, String path, Template template) {
+ private final String title;
+
+ public BasicPage(WebInterface webInterface, String path, String title, Template template) {
super(path, webInterface.getTemplateContextFactory(), template, "noPermission.html");
this.webInterface = webInterface;
this.identityManager = webInterface.getWoTNSPlugin().getIdentityManager();
+ this.title = title;
}
//
* {@inheritDoc}
*/
@Override
+ protected String getPageTitle(FreenetRequest request) {
+ return title;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
protected Collection<String> getStyleSheets() {
return Arrays.asList("css/main.css");
}