mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Added RSS Feed panel to Space Details page
- Selectable template for RSS feed for a folder - RSS feed link for drag/drop into RSS reader . Added new folder "RSS Templates" in Data Dictionary in bootstrap . Example RSS Template for new folder (docs in last 7 days) . Created patch to add above folder+example to current schema . Added 'app:feedsource' aspect to application data model . Cleaned up some obsolete code in Apply/Remove Template actions . Simplified Apply/Remove Template dialog navigation to use dialog framework git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3527 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -64,6 +64,9 @@ public class TemplateSupportBean
|
||||
/** cache of email templates that lasts 30 seconds - enough for a few page refreshes */
|
||||
private ExpiringValueCache<List<SelectItem>> emailTemplates = new ExpiringValueCache<List<SelectItem>>(1000*30);
|
||||
|
||||
/** cache of RSS templates that lasts 30 seconds - enough for a few page refreshes */
|
||||
private ExpiringValueCache<List<SelectItem>> rssTemplates = new ExpiringValueCache<List<SelectItem>>(1000*30);
|
||||
|
||||
/** cache of JavaScript files that lasts 30 seconds - enough for a few page refreshes */
|
||||
private ExpiringValueCache<List<SelectItem>> scriptFiles = new ExpiringValueCache<List<SelectItem>>(1000*30);
|
||||
|
||||
@@ -128,6 +131,28 @@ public class TemplateSupportBean
|
||||
return templates;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the list of available RSS Templates.
|
||||
*/
|
||||
public List<SelectItem> getRSSTemplates()
|
||||
{
|
||||
List<SelectItem> templates = rssTemplates.get();
|
||||
if (templates == null)
|
||||
{
|
||||
// get the template from the special Email Templates folder
|
||||
FacesContext fc = FacesContext.getCurrentInstance();
|
||||
String xpath = Application.getRootPath(fc) + "/" +
|
||||
Application.getGlossaryFolderName(fc) + "/" +
|
||||
Application.getRSSTemplatesFolderName(fc) + "//*";
|
||||
|
||||
templates = selectDictionaryNodes(fc, xpath, MSG_SELECT_TEMPLATE);
|
||||
|
||||
rssTemplates.put(templates);
|
||||
}
|
||||
|
||||
return templates;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the list of available JavaScript files that can be applied to the current document.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user