com.icfolson.aem.groovy.console.GroovyConsoleService.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aem-groovy-console Show documentation
Show all versions of aem-groovy-console Show documentation
The AEM Groovy Console provides an interface for running Groovy scripts in the AEM container. Scripts can be
created to manipulate content in the JCR, call OSGi services, or execute arbitrary code using the AEM, Sling,
or JCR APIs.
package com.icfolson.aem.groovy.console
import com.icfolson.aem.groovy.console.response.RunScriptResponse
import com.icfolson.aem.groovy.console.response.SaveScriptResponse
import org.apache.sling.api.SlingHttpServletRequest
interface GroovyConsoleService {
RunScriptResponse runScript(SlingHttpServletRequest request)
RunScriptResponse runScript(SlingHttpServletRequest request, String scriptPath)
List runScripts(SlingHttpServletRequest request, List scriptPaths)
SaveScriptResponse saveScript(SlingHttpServletRequest request)
}