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

com.github.dynamicextensionsalfresco.controlpanel.WebScripts Maven / Gradle / Ivy

Go to download

Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features

There is a newer version: 3.1.0
Show newest version
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