IRegistryReaderInUso.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.protocol.sdk.registry;

  21. import org.openspcoop2.core.id.IDAccordo;
  22. import org.openspcoop2.core.id.IDPortType;
  23. import org.openspcoop2.core.id.IDPortTypeAzione;
  24. import org.openspcoop2.core.id.IDResource;
  25. import org.openspcoop2.core.id.IDSoggetto;
  26. import org.openspcoop2.core.registry.driver.IDriverRegistroServiziGet;
  27. import org.slf4j.Logger;

  28. /**
  29.  * IRegistryReader
  30.  *
  31.  * @author Poli Andrea (apoli@link.it)
  32.  * @author $Author$
  33.  * @version $Rev$, $Date$
  34.  */
  35. public interface IRegistryReaderInUso {

  36.     public default void init(IDriverRegistroServiziGet driver,Logger log) {}
  37.    
  38.     // SOGGETTI
  39.        
  40.     public boolean inUso(IDSoggetto idSoggetto, boolean verificaRuoli) throws RegistryException;
  41.     public String getDettagliInUso(IDSoggetto idSoggetto, boolean verificaRuoli) throws RegistryException;
  42.        
  43.    
  44.     // ACCORDI PARTE COMUNE
  45.    
  46.     public boolean inUso(IDAccordo idAccordo) throws RegistryException;
  47.     public String getDettagliInUso(IDAccordo idAccordo) throws RegistryException;
  48.    
  49.    
  50.     // ELEMENTI INTERNI ALL'ACCORDO PARTE COMUNE
  51.    
  52.     public boolean inUso(IDPortType id) throws RegistryException;
  53.     public String getDettagliInUso(IDPortType id) throws RegistryException;
  54.    
  55.     public boolean inUso(IDPortTypeAzione id) throws RegistryException;
  56.     public String getDettagliInUso(IDPortTypeAzione id) throws RegistryException;
  57.    
  58.     public boolean inUso(IDResource id) throws RegistryException;
  59.     public String getDettagliInUso(IDResource id) throws RegistryException;
  60.    
  61. }