Merged V2.2 to HEAD

8430: Merged V2.1 to V2.2
      8428: Introduced notion of a 'secure' script - secure scripts have access to java.* libs and can instantiate Java objects

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8431 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2008-03-06 14:14:55 +00:00
parent 085c402290
commit a9fac10b45
3 changed files with 41 additions and 9 deletions

View File

@@ -48,4 +48,13 @@ public interface ScriptLocation
* @return the reader
*/
Reader getReader();
/**
* Returns true if the script location is considered secure - i.e. on the repository classpath.
* Secure scripts may access java.* libraries and instantiate pure Java objects directly. Unsecure
* scripts only have access to pre-configure host objects and cannot access java.* libs.
*
* @return true if the script location is considered secure
*/
boolean isSecure();
}