RuoliEnv.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.core.config.rs.server.api.impl.ruoli;

  21. import javax.servlet.http.HttpServletRequest;

  22. import org.openspcoop2.core.config.rs.server.api.impl.Environment;
  23. import org.openspcoop2.utils.service.context.IContext;
  24. import org.openspcoop2.web.ctrlstat.servlet.ruoli.RuoliCore;
  25. import org.openspcoop2.web.ctrlstat.servlet.ruoli.RuoliHelper;
  26. import org.openspcoop2.web.ctrlstat.servlet.utenti.UtentiCore;

  27. /**
  28.  * RuoliEnv
  29.  *
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  *
  33.  */
  34. public class RuoliEnv extends Environment {
  35.    
  36.     public final RuoliCore ruoliCore;  
  37.     public final RuoliHelper ruoliHelper;
  38.     public final UtentiCore utentiCore;
  39.    
  40.     public RuoliEnv(HttpServletRequest req, IContext context) throws Exception {
  41.         super(req, null, null, context);
  42.        
  43.         this.ruoliCore = new RuoliCore(this.stationCore);
  44.         this.utentiCore = new UtentiCore(this.stationCore);
  45.         this.ruoliHelper = new RuoliHelper(this.stationCore, this.requestWrapper, this.pd, req.getSession());
  46.     }

  47. }