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

net.anotheria.moskito.webui.plugins.action.ShowPluginsAction Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
package net.anotheria.moskito.webui.plugins.action;

import net.anotheria.maf.action.ActionCommand;
import net.anotheria.maf.action.ActionMapping;
import net.anotheria.maf.bean.FormBean;
import net.anotheria.moskito.webui.shared.api.PluginAO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * TODO comment this class
 *
 * @author lrosenberg
 * @since 19.03.13 18:19
 */
public class ShowPluginsAction extends BasePluginAction {
	@Override
	protected String getLinkToCurrentPage(HttpServletRequest req) {
		return "mskPlugins";
	}

	@Override
	public ActionCommand execute(ActionMapping actionMapping, FormBean formBean, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
		List plugins = getAdditionalFunctionalityAPI().getPlugins();
		httpServletRequest.setAttribute("plugins", plugins);
		httpServletRequest.setAttribute("pluginsCount", plugins.size());


		return actionMapping.success();
	}

	@Override
	protected String getPageName() {
		return "plugins";
	}



}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy