use of com.haulmont.cuba.security.app.Authenticated in project cuba by cuba-platform.
the class ScriptingManager method runGroovyScript.
@Authenticated
@Override
public String runGroovyScript(String scriptName) {
try {
Binding binding = new Binding();
binding.setVariable("persistence", persistence);
binding.setVariable("metadata", metadata);
binding.setVariable("configuration", configuration);
binding.setVariable("dataManager", dataManager);
Object result = scripting.runGroovyScript(scriptName, binding);
return String.valueOf(result);
} catch (Exception e) {
log.error("Error runGroovyScript", e);
return ExceptionUtils.getStackTrace(e);
}
}
Aggregations