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

com.icfolson.aem.groovy.console.components.Imports.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.components

import com.icfolson.aem.groovy.console.constants.GroovyConsoleConstants
import com.icfolson.aem.groovy.console.extension.ExtensionService
import org.apache.sling.api.resource.Resource
import org.apache.sling.models.annotations.Model

import javax.inject.Inject

@Model(adaptables = Resource)
class Imports {

    @Inject
    private ExtensionService extensionService

    Set getStarImports() {
        (extensionService.starImports - GroovyConsoleConstants.DEFAULT_STAR_IMPORTS) as TreeSet
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy