com.github.dynamicextensionsalfresco.controlpanel.WebScripts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of control-panel Show documentation
Show all versions of control-panel Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.controlpanel;
import java.util.Map;
import com.github.dynamicextensionsalfresco.controlpanel.template.Variables;
import com.github.dynamicextensionsalfresco.webscripts.annotations.HttpMethod;
import com.github.dynamicextensionsalfresco.webscripts.annotations.ResponseTemplate;
import com.github.dynamicextensionsalfresco.webscripts.annotations.Uri;
import com.github.dynamicextensionsalfresco.webscripts.annotations.WebScript;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
@WebScript(baseUri = "/dynamic-extensions/web-scripts", defaultFormat = "html", families = "control panel")
public class WebScripts extends AbstractControlPanelHandler {
@Autowired
WebScriptHelper webScriptHelper;
@Uri(method = HttpMethod.GET)
@ResponseTemplate
public void index(final Map model) {
model.put(Variables.WEB_SCRIPTS, webScriptHelper.getWebScripts());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy