AutorizzazioneCacheCleaner.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.pdd.core.cache;

  21. import org.openspcoop2.core.id.IDPortaApplicativa;
  22. import org.openspcoop2.core.id.IDPortaDelegata;
  23. import org.openspcoop2.core.id.IDServizioApplicativo;
  24. import org.openspcoop2.core.id.IDSoggetto;
  25. import org.openspcoop2.pdd.core.autorizzazione.GestoreAutorizzazione;

  26. /**
  27.  * AutorizzazioneCacheCleaner
  28.  *
  29.  * @author Andrea Poli (apoli@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  */
  33. public class AutorizzazioneCacheCleaner implements ICacheCleaner {

  34.     @Override
  35.     public void removePortaDelegata(IDPortaDelegata idPD) throws Exception {
  36.         GestoreAutorizzazione.removePortaDelegata(idPD);
  37.     }
  38.     @Override
  39.     public void removePortaApplicativa(IDPortaApplicativa idPA)throws Exception {
  40.         GestoreAutorizzazione.removePortaApplicativa(idPA);
  41.     }
  42.    
  43.     @Override
  44.     public void removeSoggetto(IDSoggetto idSoggetto) throws Exception {
  45.         GestoreAutorizzazione.removeSoggetto(idSoggetto);
  46.     }
  47.     @Override
  48.     public void removeApplicativo(IDServizioApplicativo idApplicativo) throws Exception {
  49.         GestoreAutorizzazione.removeApplicativo(idApplicativo);
  50.     }

  51. }