RegistroServiziCacheCleaner.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.IDAccordo;
  22. import org.openspcoop2.core.id.IDAccordoCooperazione;
  23. import org.openspcoop2.core.id.IDRuolo;
  24. import org.openspcoop2.core.id.IDScope;
  25. import org.openspcoop2.core.id.IDServizio;
  26. import org.openspcoop2.core.id.IDSoggetto;
  27. import org.openspcoop2.protocol.registry.RegistroServiziReader;

  28. /**
  29.  * RegistroServiziCacheCleaner
  30.  *
  31.  * @author Andrea Poli (apoli@link.it)
  32.  * @author $Author$
  33.  * @version $Rev$, $Date$
  34.  */
  35. public class RegistroServiziCacheCleaner implements ICacheCleaner {
  36.    
  37.     @Override
  38.     public void removeAccordoCooperazione(IDAccordoCooperazione idAccordo) throws Exception {
  39.         RegistroServiziReader.removeAccordoCooperazione(idAccordo);
  40.     }
  41.     @Override
  42.     public void removeApi(IDAccordo idAccordo) throws Exception {
  43.         RegistroServiziReader.removeApi(idAccordo);
  44.     }
  45.    
  46.     @Override
  47.     public void removeErogazione(IDServizio idServizio) throws Exception {
  48.         RegistroServiziReader.removeErogazione(idServizio);
  49.     }
  50.     @Override
  51.     public void removeFruizione(IDSoggetto fruitore, IDServizio idServizio) throws Exception {
  52.         RegistroServiziReader.removeFruizione(fruitore, idServizio);
  53.     }
  54.    
  55.     @Override
  56.     public void removePdd(String portaDominio) throws Exception {
  57.         RegistroServiziReader.removePdd(portaDominio);
  58.     }
  59.     @Override
  60.     public void removeSoggetto(IDSoggetto idSoggetto) throws Exception {
  61.         RegistroServiziReader.removeSoggetto(idSoggetto);
  62.     }

  63.     @Override
  64.     public void removeRuolo(IDRuolo idRuolo) throws Exception {
  65.         RegistroServiziReader.removeRuolo(idRuolo);
  66.     }
  67.     @Override
  68.     public void removeScope(IDScope idScope) throws Exception {
  69.         RegistroServiziReader.removeScope(idScope);
  70.     }
  71. }