PorteApplicativeExtendedChange.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.ExtendedException;
  28. import org.openspcoop2.web.ctrlstat.plugins.IExtendedListServlet;
  29. import org.openspcoop2.web.ctrlstat.plugins.servlet.AbstractServletListExtendedChange;
  30. import org.openspcoop2.web.ctrlstat.servlet.ConsoleHelper;
  31. import org.openspcoop2.web.lib.mvc.DataElement;
  32. import org.openspcoop2.web.lib.mvc.PageData;
  33. import org.openspcoop2.web.lib.mvc.Parameter;
  34. import org.openspcoop2.web.lib.mvc.TipoOperazione;

  35. /**
  36.  * porteDelegateCorrAppAdd
  37.  *
  38.  * @author Andrea Poli (apoli@link.it)
  39.  * @author Stefano Corallo (corallo@link.it)
  40.  * @author Sandra Giangrandi (sandra@link.it)
  41.  * @author $Author$
  42.  * @version $Rev$, $Date$
  43.  *
  44.  */
  45. public final class PorteApplicativeExtendedChange extends AbstractServletListExtendedChange {
  46.    
  47.     @Override
  48.     public void addToHiddenDati(List<DataElement> dati,ConsoleHelper consoleHelper) throws ExtendedException{
  49.         PorteApplicativeExtendedUtilities.addToHiddenDati(TipoOperazione.CHANGE, dati, consoleHelper);
  50.     }
  51.    
  52.    
  53.     @Override
  54.     protected ConsoleHelper getConsoleHelper(HttpServletRequest request,
  55.             PageData pd, HttpSession session) throws Exception {
  56.         return new PorteApplicativeHelper(request, pd, session);
  57.     }

  58.     @Override
  59.     protected ControlStationCore getConsoleCore() throws Exception {
  60.         return new PorteApplicativeCore();
  61.     }

  62.     @Override
  63.     protected IExtendedListServlet getExtendedServlet(ConsoleHelper consoleHelper)
  64.             throws Exception {
  65.         return consoleHelper.getCore().getExtendedServletPortaApplicativa();
  66.     }

  67.     @Override
  68.     protected Object getObject(ConsoleHelper consoleHelper) throws Exception {
  69.         return PorteApplicativeExtendedUtilities.getObject(consoleHelper);
  70.     }

  71.     @Override
  72.     protected List<Parameter> getTitle(Object object, ConsoleHelper consoleHelper) throws Exception {
  73.         return PorteApplicativeExtendedUtilities.getTitle(consoleHelper);
  74.     }

  75.     @Override
  76.     protected int getIdList() throws Exception {
  77.         return Liste.PORTE_APPLICATIVE_EXTENDED;
  78.     }

  79.     @Override
  80.     protected Parameter[] getParameterList(ConsoleHelper consoleHelper) throws Exception {
  81.         return PorteApplicativeExtendedUtilities.getParameterList(consoleHelper);
  82.     }

  83.     @Override
  84.     protected String getObjectName() throws Exception {
  85.         return PorteApplicativeCostanti.OBJECT_NAME_PORTE_APPLICATIVE_EXTENDED;
  86.     }

  87.     @Override
  88.     protected UrlParameters getUrlExtendedChange(ConsoleHelper consoleHelper) throws Exception {
  89.         return PorteApplicativeExtendedUtilities.getUrlExtendedChange(consoleHelper);
  90.     }


  91.     @Override
  92.     protected UrlParameters getUrlExtendedList(ConsoleHelper consoleHelper) throws Exception {
  93.         return PorteApplicativeExtendedUtilities.getUrlExtendedList(consoleHelper);
  94.     }
  95.    
  96.     @Override
  97.     protected UrlParameters getUrlExtendedFather(ConsoleHelper consoleHelper) throws Exception {
  98.         return PorteApplicativeExtendedUtilities.getUrlExtendedList(consoleHelper);
  99.     }
  100.    

  101. }