// Cleanup Task should delete entries, that have no valid macroid and sectionname.
// Also delete all props, where is no macro on the page.
if (enableddl) {
String propertyKey = new String(Base64.encodeBase64((macroid+sectionName).getBytes()));
if (pageManager != null) {
Page page = pageManager.getPage(pageid);
contentPropertyManager.setTextProperty(page, PAGE_PROPERTY_PREFIX+propertyKey, finalcode);
addPagePropertyKeyToPagePropertyList(page, PAGE_PROPERTY_PREFIX+propertyKey);
params.put(DownloadCodeServlet.PARAM_PAGECONTENTPROPERTYKEY, propertyKey);
params.put(DownloadCodeServlet.PARAM_PAGEID, pageid.toString());
}
}
params.put(VELOCITY_PLACEHOLDER_CODE, finalcode);
params.put(VELOCITY_PLACEHOLDER_TITLE, sectionName);
result.add(params);
}
// Raw Download
String propertyKey = new String(Base64.encodeBase64((macroid+"raw").getBytes()));
if (pageManager != null) {
Page page = pageManager.getPage(pageid);
contentPropertyManager.setTextProperty(page, PAGE_PROPERTY_PREFIX+propertyKey, contentUnparsed);
addPagePropertyKeyToPagePropertyList(page, PAGE_PROPERTY_PREFIX+propertyKey);
context.put(DownloadCodeServlet.PARAM_RAWDOWNLOAD_PAGECONTENTPROPERTYKEY, propertyKey);
context.put(VELOCITY_PLACEHOLDER_PAGEID, new Long(pageid).toString());
}