mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Source Association methods added to jscript/freemarker APIs
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7654 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -73,7 +73,7 @@ public final class AVM extends BaseScopableProcessorExtension
|
||||
/**
|
||||
* @return a array of all AVM stores in the system
|
||||
*/
|
||||
public Object[] getStores()
|
||||
public Scriptable getStores()
|
||||
{
|
||||
List<AVMStoreDescriptor> stores = this.services.getAVMService().getStores();
|
||||
Object[] results = new Object[stores.size()];
|
||||
@@ -82,12 +82,7 @@ public final class AVM extends BaseScopableProcessorExtension
|
||||
{
|
||||
results[i++] = new AVMScriptStore(this.services, store, getScope());
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
public Scriptable jsGet_stores()
|
||||
{
|
||||
return Context.getCurrentContext().newArray(getScope(), getStores());
|
||||
return Context.getCurrentContext().newArray(getScope(), results);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -324,11 +319,6 @@ public final class AVM extends BaseScopableProcessorExtension
|
||||
'/' + JNDIConstants.DIR_DEFAULT_APPBASE;
|
||||
}
|
||||
|
||||
public static String jsGet_webappsFolderPath()
|
||||
{
|
||||
return getWebappsFolderPath();
|
||||
}
|
||||
|
||||
private static String getStoreRootPath(String store)
|
||||
{
|
||||
return store + ":" + getWebappsFolderPath();
|
||||
|
Reference in New Issue
Block a user