use of net.sourceforge.processdash.net.cms.SnippetInstanceTO in project processdash by dtuma.
the class ProcessAdvisor method getAdvisorSnippets.
/**
* @param pageRegion
* @return a list of all snippets in the "advice" category
*/
private static List getAdvisorSnippets(int pageRegion) {
List result = new ArrayList();
Set snippets = SnippetDefinitionManager.getAllSnippets();
for (Iterator i = snippets.iterator(); i.hasNext(); ) {
SnippetDefinition snipDef = (SnippetDefinition) i.next();
if (snipDef.matchesCategory(ADVISOR_SNIPPET_CATEGORY)) {
SnippetInstanceTO snip = new SnippetInstanceTO();
snip.setSnippetID(snipDef.getId());
snip.setDefinition(snipDef);
snip.setPageRegion(pageRegion);
result.add(snip);
}
}
return result;
}
use of net.sourceforge.processdash.net.cms.SnippetInstanceTO in project processdash by dtuma.
the class ProcessAdvisor method getAdvisorSnippets.
/**
* @param pageRegion
* @return a list of all snippets in the "advice" category
*/
private static List getAdvisorSnippets(int pageRegion) {
List result = new ArrayList();
Set snippets = SnippetDefinitionManager.getAllSnippets();
for (Iterator i = snippets.iterator(); i.hasNext(); ) {
SnippetDefinition snipDef = (SnippetDefinition) i.next();
if (snipDef.matchesCategory(ADVISOR_SNIPPET_CATEGORY)) {
SnippetInstanceTO snip = new SnippetInstanceTO();
snip.setSnippetID(snipDef.getId());
snip.setDefinition(snipDef);
snip.setPageRegion(pageRegion);
result.add(snip);
}
}
return result;
}
Aggregations