JavaScript AVM API enhancements. Template AVM API addition.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6049 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-06-21 11:59:52 +00:00
parent cefaf59d7b
commit fd36b00448
5 changed files with 293 additions and 21 deletions

View File

@@ -65,6 +65,20 @@ public class AVM extends BaseTemplateProcessorExtension
this.matcher = matcher;
}
/**
* @return a list of all AVM stores in the system
*/
public List<AVMTemplateStore> getStores()
{
List<AVMStoreDescriptor> stores = this.services.getAVMService().getStores();
List<AVMTemplateStore> results = new ArrayList<AVMTemplateStore>(stores.size());
for (AVMStoreDescriptor store : stores)
{
results.add(new AVMTemplateStore(this.services, getTemplateImageResolver(), store));
}
return results;
}
/**
* Return an AVM store object for the specified store name
*