Improved: complete previous commit to add security in groovy context (OFBIZ-10196)

add security on groovy junit test
add security on eclipse and intellij groovy dsl definition
Thanks to Dennis Balkir for the suggest

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1823028 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nicolas Malin
2018-02-03 14:16:16 +00:00
parent a90459073a
commit 21fa500df1
5 changed files with 15 additions and 0 deletions
@@ -22,6 +22,7 @@ contribute(currentType(subType('groovy.lang.Script'))) {
property name: 'context', type: 'java.util.Map'
property name: 'delegator', type: 'org.apache.ofbiz.entity.Delegator'
property name: 'dispatcher', type: 'org.apache.ofbiz.service.LocalDispatcher'
property name: 'security', type: 'org.apache.ofbiz.security.Security'
method name: 'runService', type: 'java.util.Map', params: [serviceName: 'String', inputMap: 'java.util.Map']
method name: 'makeValue', type: 'java.util.Map', params: [entityName: 'String']
@@ -26,6 +26,7 @@ contributor(groovyContext) {
property name: 'context', type: 'java.util.Map'
property name: 'delegator', type: 'org.apache.ofbiz.entity.Delegator'
property name: 'dispatcher', type: 'org.apache.ofbiz.service.LocalDispatcher'
property name: 'security', type: 'org.apache.ofbiz.security.Security'
method name: 'runService', type: 'java.util.Map', params: [serviceName: 'String', inputMap: 'java.util.Map']
method name: 'run', type: 'java.util.Map', params: [args: 'java.util.Map']