com.icfolson.aem.groovy.console.constants.GroovyConsoleConstants.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.constants
import static com.day.cq.commons.jcr.JcrConstants.JCR_CONTENT
class GroovyConsoleConstants {
public static final String PATH_CONSOLE_ROOT = "/etc/groovyconsole"
public static final String EXTENSION_GROOVY = ".groovy"
public static final String PARAMETER_SCRIPT = "script"
public static final String PARAMETER_ASYNC = "async"
public static final String PARAMETER_DATA = "data"
public static final String AUDIT_NODE_NAME = "audit"
public static final String AUDIT_RECORD_NODE_PREFIX = "record"
public static final String AUDIT_PATH = "$PATH_CONSOLE_ROOT/$JCR_CONTENT/$AUDIT_NODE_NAME"
public static final Set DEFAULT_STAR_IMPORTS = [
"javax.jcr",
"org.apache.sling.api",
"org.apache.sling.api.resource",
"com.day.cq.search",
"com.day.cq.tagging",
"com.day.cq.wcm.api",
"com.day.cq.replication",
"groovy.json"
] as Set
private GroovyConsoleConstants() {
}
}