mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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
|
||||
*
|
||||
|
@@ -142,9 +142,11 @@ public class AVMTemplateStore
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a lucene query against this store.
|
||||
*
|
||||
* @param query
|
||||
* @return
|
||||
* @param query Lucene
|
||||
*
|
||||
* @return list of AVM node objects as results - empty list if no results found
|
||||
*/
|
||||
public List<AVMTemplateNode> luceneSearch(String query)
|
||||
{
|
||||
|
Reference in New Issue
Block a user