mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Web Scripts: Dump & Load
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6111 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -109,6 +109,25 @@ public class WebScriptStorage implements ApplicationContextAware, ApplicationLis
|
||||
return stores;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Web Script Store for the given Store path
|
||||
*
|
||||
* @param storePath
|
||||
* @return store (or null, if not found)
|
||||
*/
|
||||
public WebScriptStore getStore(String storePath)
|
||||
{
|
||||
Collection<WebScriptStore> stores = getStores();
|
||||
for (WebScriptStore store : stores)
|
||||
{
|
||||
if (store.getBasePath().equals(storePath))
|
||||
{
|
||||
return store;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Template Processor
|
||||
*
|
||||
|
Reference in New Issue
Block a user