FunzionalitaProtocollo.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.constants;


  21. /**
  22.  * ProfiliDiCollaborazione
  23.  *
  24.  * @author Poli Andrea (apoli@link.it)
  25.  * @author $Author$
  26.  * @version $Rev$, $Date$
  27.  */
  28. public enum FunzionalitaProtocollo {
  29.    
  30.     FILTRO_DUPLICATI("filtroDuplicati"),
  31.     CONFERMA_RICEZIONE("confermaRicezione"),
  32.     COLLABORAZIONE("collaborazione"),
  33.     RIFERIMENTO_ID_RICHIESTA("riferimentoIdRichiesta"),
  34.     CONSEGNA_IN_ORDINE("consegnaInOrdine"),
  35.     SCADENZA("scadenza"),
  36.     MANIFEST_ATTACHMENTS("manifestAttachments");
  37.    
  38.     private final String funzionalita;

  39.     FunzionalitaProtocollo(String profilo){
  40.         this.funzionalita = profilo;
  41.     }
  42.    
  43.     @Override
  44.     public String toString() {
  45.         return this.funzionalita;
  46.     }
  47.    
  48.     public boolean equals(String p){
  49.         if(p==null){
  50.             return false;
  51.         }
  52.         return this.funzionalita.equals(p);
  53.     }
  54.    
  55.     public String getEngineValue(){
  56.         return this.funzionalita;
  57.     }


  58. }