mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merge Web Scripts from BRANCHES/DEV/DAVE
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5352 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -168,7 +168,7 @@ public class FileImporterImpl implements FileImporter
|
||||
final File file,
|
||||
FileFilter filter,
|
||||
boolean recurse,
|
||||
final String containerName) throws Exception
|
||||
final String containerName) throws Throwable
|
||||
{
|
||||
if (containerName != null)
|
||||
{
|
||||
|
@@ -30,6 +30,8 @@ import java.io.InputStreamReader;
|
||||
import java.io.Reader;
|
||||
import java.io.StringReader;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -48,6 +50,8 @@ import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.util.ParameterCheck;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.mozilla.javascript.Context;
|
||||
import org.mozilla.javascript.EvaluatorException;
|
||||
import org.mozilla.javascript.NativeArray;
|
||||
import org.mozilla.javascript.Scriptable;
|
||||
import org.mozilla.javascript.ScriptableObject;
|
||||
import org.mozilla.javascript.Wrapper;
|
||||
@@ -303,6 +307,10 @@ public class RhinoScriptService implements ScriptService
|
||||
{
|
||||
result = ((Wrapper)result).unwrap();
|
||||
}
|
||||
else if (result instanceof NativeArray)
|
||||
{
|
||||
result = Context.jsToJava(result, Object[].class);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@@ -56,7 +56,7 @@ public class TransactionUtil
|
||||
*
|
||||
* @return Return the result of the operation
|
||||
*/
|
||||
Result doWork() throws Exception;
|
||||
Result doWork() throws Throwable;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user