All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.icfolson.aem.groovy.console.constants.GroovyConsoleConstants.groovy Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 16.0.0
Show newest version
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() {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy