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:
Kevin Roast
2007-12-12 11:53:43 +00:00
parent d36b098c6e
commit 97db217254
17 changed files with 162 additions and 452 deletions

View File

@@ -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();