ConfigurazioneListExtendedDel.java
/*
* GovWay - A customizable API Gateway
* https://govway.org
*
* Copyright (c) 2005-2024 Link.it srl (https://link.it).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3, as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.openspcoop2.web.ctrlstat.servlet.config;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.openspcoop2.core.commons.Liste;
import org.openspcoop2.web.ctrlstat.core.ControlStationCore;
import org.openspcoop2.web.ctrlstat.core.UrlParameters;
import org.openspcoop2.web.ctrlstat.plugins.IExtendedListServlet;
import org.openspcoop2.web.ctrlstat.plugins.servlet.AbstractServletListExtendedDel;
import org.openspcoop2.web.ctrlstat.servlet.ConsoleHelper;
import org.openspcoop2.web.lib.mvc.PageData;
import org.openspcoop2.web.lib.mvc.Parameter;
/**
* porteDelegateCorrAppList
*
* @author Andrea Poli (apoli@link.it)
* @author Stefano Corallo (corallo@link.it)
* @author Sandra Giangrandi (sandra@link.it)
* @author $Author$
* @version $Rev$, $Date$
*
*/
public final class ConfigurazioneListExtendedDel extends AbstractServletListExtendedDel {
@Override
protected ConsoleHelper getConsoleHelper(HttpServletRequest request,
PageData pd, HttpSession session) throws Exception {
return new ConfigurazioneHelper(request, pd, session);
}
@Override
protected ControlStationCore getConsoleCore() throws Exception {
return new ConfigurazioneCore();
}
@Override
protected IExtendedListServlet getExtendedServlet(ConsoleHelper consoleHelper)
throws Exception {
return consoleHelper.getCore().getExtendedServletConfigurazioneList(consoleHelper);
}
@Override
protected Object getObject(ConsoleHelper consoleHelper) throws Exception {
ConfigurazioneCore c = (ConfigurazioneCore) consoleHelper.getCore();
return c.getConfigurazioneGenerale();
}
@Override
protected List<Parameter> getTitle(Object object, ConsoleHelper consoleHelper) throws Exception {
List<Parameter> lstParam = new ArrayList<>();
lstParam.add(new Parameter(ConfigurazioneCostanti.LABEL_CONFIGURAZIONE_GENERALE, ConfigurazioneCostanti.SERVLET_NAME_CONFIGURAZIONE_GENERALE));
return lstParam;
}
@Override
protected int getIdList() throws Exception {
return Liste.CONFIGURAZIONE_EXTENDED;
}
@Override
protected Parameter[] getParameterList(ConsoleHelper consoleHelper) throws Exception {
return null;
}
@Override
protected String getObjectName() throws Exception {
return ConfigurazioneCostanti.OBJECT_NAME_CONFIGURAZIONE_GENERALE_LIST_EXTENDED;
}
@Override
protected UrlParameters getUrlExtendedChange(ConsoleHelper consoleHelper) throws Exception {
UrlParameters urlExtended = new UrlParameters();
urlExtended.setUrl(ConfigurazioneCostanti.SERVLET_NAME_CONFIGURAZIONE_GENERALE_LIST_EXTENDED_CHANGE);
return urlExtended;
}
@Override
protected UrlParameters getUrlExtendedFather(ConsoleHelper consoleHelper) throws Exception {
UrlParameters urlExtended = new UrlParameters();
urlExtended.setUrl(ConfigurazioneCostanti.SERVLET_NAME_CONFIGURAZIONE_GENERALE_EXTENDED);
return urlExtended;
}
}