mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user