PorteApplicativeExtendedDel.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */


  20. package org.openspcoop2.web.ctrlstat.servlet.pa;

  21. import java.util.List;

  22. import javax.servlet.http.HttpServletRequest;
  23. import javax.servlet.http.HttpSession;

  24. import org.openspcoop2.core.commons.Liste;
  25. import org.openspcoop2.web.ctrlstat.core.ControlStationCore;
  26. import org.openspcoop2.web.ctrlstat.core.UrlParameters;
  27. import org.openspcoop2.web.ctrlstat.plugins.IExtendedListServlet;
  28. import org.openspcoop2.web.ctrlstat.plugins.servlet.AbstractServletListExtendedDel;
  29. import org.openspcoop2.web.ctrlstat.servlet.ConsoleHelper;
  30. import org.openspcoop2.web.lib.mvc.PageData;
  31. import org.openspcoop2.web.lib.mvc.Parameter;

  32. /**
  33.  * porteDelegateCorrAppList
  34.  *
  35.  * @author Andrea Poli (apoli@link.it)
  36.  * @author Stefano Corallo (corallo@link.it)
  37.  * @author Sandra Giangrandi (sandra@link.it)
  38.  * @author $Author$
  39.  * @version $Rev$, $Date$
  40.  *
  41.  */
  42. public final class PorteApplicativeExtendedDel extends AbstractServletListExtendedDel {

  43.    
  44.     @Override
  45.     protected ConsoleHelper getConsoleHelper(HttpServletRequest request,
  46.             PageData pd, HttpSession session) throws Exception {
  47.         return new PorteApplicativeHelper(request, pd, session);
  48.     }

  49.     @Override
  50.     protected ControlStationCore getConsoleCore() throws Exception {
  51.         return new PorteApplicativeCore();
  52.     }

  53.     @Override
  54.     protected IExtendedListServlet getExtendedServlet(ConsoleHelper consoleHelper)
  55.             throws Exception {
  56.         return consoleHelper.getCore().getExtendedServletPortaApplicativa();
  57.     }

  58.     @Override
  59.     protected Object getObject(ConsoleHelper consoleHelper) throws Exception {
  60.         return PorteApplicativeExtendedUtilities.getObject(consoleHelper);
  61.     }

  62.     @Override
  63.     protected List<Parameter> getTitle(Object object,
  64.             ConsoleHelper consoleHelper) throws Exception {
  65.         return PorteApplicativeExtendedUtilities.getTitle(consoleHelper);
  66.     }

  67.     @Override
  68.     protected int getIdList() throws Exception {
  69.         return Liste.PORTE_APPLICATIVE_EXTENDED;
  70.     }

  71.     @Override
  72.     protected Parameter[] getParameterList(ConsoleHelper consoleHelper) throws Exception {
  73.         return PorteApplicativeExtendedUtilities.getParameterList(consoleHelper);
  74.     }

  75.     @Override
  76.     protected String getObjectName() throws Exception {
  77.         return PorteApplicativeCostanti.OBJECT_NAME_PORTE_APPLICATIVE_EXTENDED;
  78.     }

  79.     @Override
  80.     protected UrlParameters getUrlExtendedChange(ConsoleHelper consoleHelper) throws Exception {
  81.         return PorteApplicativeExtendedUtilities.getUrlExtendedChange(consoleHelper);
  82.     }
  83.    
  84.     @Override
  85.     protected UrlParameters getUrlExtendedFather(ConsoleHelper consoleHelper) throws Exception {
  86.         return PorteApplicativeExtendedUtilities.getUrlExtendedList(consoleHelper);
  87.     }
  88. }