}
return new PageData(content, properties);
}
public WikiPageProperties defaultPageProperties() {
WikiPageProperties properties = new WikiPageProperties();
if (!isErrorLogsPage()) {
properties.set(PageData.PropertyEDIT);
properties.set(PageData.PropertyPROPERTIES);
properties.set(PageData.PropertyREFACTOR);
}
properties.set(PageData.PropertyWHERE_USED);
properties.set(PageData.PropertyRECENT_CHANGES);
properties.set(PageData.PropertyFILES);
properties.set(PageData.PropertyVERSIONS);
properties.set(PageData.PropertySEARCH);
properties.setLastModificationTime(Clock.currentDate());
if (isErrorLogsPage())
return properties;
PageType pageType = PageType.getPageTypeForPageName(getName());
if (STATIC.equals(pageType))
return properties;
properties.set(pageType.toString());
return properties;
}