ValidazioneSemantica.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.basic.validator;

  21. import org.openspcoop2.core.id.IDSoggetto;
  22. import org.openspcoop2.message.OpenSPCoop2Message;
  23. import org.openspcoop2.protocol.basic.BasicStateComponentFactory;
  24. import org.openspcoop2.protocol.sdk.Busta;
  25. import org.openspcoop2.protocol.sdk.Context;
  26. import org.openspcoop2.protocol.sdk.IProtocolFactory;
  27. import org.openspcoop2.protocol.sdk.ProtocolException;
  28. import org.openspcoop2.protocol.sdk.SecurityInfo;
  29. import org.openspcoop2.protocol.sdk.constants.RuoloBusta;
  30. import org.openspcoop2.protocol.sdk.state.IState;
  31. import org.openspcoop2.protocol.sdk.validator.ProprietaValidazione;
  32. import org.openspcoop2.protocol.sdk.validator.ValidazioneSemanticaResult;
  33. import org.openspcoop2.utils.digest.IDigestReader;

  34. /**
  35.  * ValidazioneSemantica
  36.  *
  37.  * @author Nardi Lorenzo (apoli@link.it)
  38.  * @author $Author$
  39.  * @version $Rev$, $Date$
  40.  *
  41.  */
  42. public class ValidazioneSemantica extends BasicStateComponentFactory implements
  43.         org.openspcoop2.protocol.sdk.validator.IValidazioneSemantica {

  44.     protected Context context;
  45.    
  46.     public ValidazioneSemantica(IProtocolFactory<?> factory,IState state) throws ProtocolException{
  47.         super(factory,state);
  48.     }

  49.     @Override
  50.     public void setContext(Context context) {
  51.         this.context = context;
  52.     }
  53.    
  54.     @Override
  55.     public IProtocolFactory<?> getProtocolFactory() {
  56.         return this.protocolFactory;
  57.     }

  58.     @Override
  59.     public boolean validazioneID(String id, IDSoggetto dominio,
  60.             ProprietaValidazione proprietaValidazione) {
  61.         return true;
  62.     }

  63.     @Override
  64.     public ValidazioneSemanticaResult valida(OpenSPCoop2Message msg, Busta busta,
  65.             ProprietaValidazione tipoValidazione, RuoloBusta tipoBusta)
  66.             throws ProtocolException {
  67.         return new ValidazioneSemanticaResult(null, null, null, null, null, null);
  68.     }

  69.     @Override
  70.     public SecurityInfo readSecurityInformation(IDigestReader digestReader, OpenSPCoop2Message msg) throws ProtocolException{
  71.         return null;
  72.     }
  73. }