RemoteStoreClientInfo.java

  1. package org.openspcoop2.utils.certificate.remote;
  2. /*
  3.  * GovWay - A customizable API Gateway
  4.  * https://govway.org
  5.  *
  6.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  7.  *
  8.  * This program is free software: you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License version 3, as published by
  10.  * the Free Software Foundation.
  11.  *
  12.  * This program is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  * GNU General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  19.  *
  20.  */


  21. import java.io.Serializable;

  22. import org.apache.commons.lang.StringUtils;

  23. /**
  24.  * RemoteStoreClientInfo
  25.  *
  26.  * @author Poli Andrea (apoli@link.it)
  27.  * @author $Author$
  28.  * @version $Rev$, $Date$
  29.  */
  30. public class RemoteStoreClientInfo implements Serializable {

  31.     private static final long serialVersionUID = 1L;
  32.    
  33.     private String clientId;
  34.     private String clientDetails;
  35.    
  36.     private String organizationId;
  37.     private String organizationDetails;
  38.        
  39.     public String getClientId() {
  40.         return this.clientId;
  41.     }
  42.     public void setClientId(String clientId) {
  43.         this.clientId = clientId;
  44.     }
  45.     public String getClientDetails() {
  46.         return this.clientDetails;
  47.     }
  48.     public void setClientDetails(String clientDetails) {
  49.         this.clientDetails = clientDetails;
  50.     }
  51.    
  52.     public String getOrganizationId() {
  53.         return this.organizationId;
  54.     }
  55.     public void setOrganizationId(String organizationId) {
  56.         this.organizationId = organizationId;
  57.     }
  58.     public String getOrganizationDetails() {
  59.         return this.organizationDetails;
  60.     }
  61.     public void setOrganizationDetails(String organizationDetails) {
  62.         this.organizationDetails = organizationDetails;
  63.     }
  64.    
  65.     public boolean isInfoUncomplete() {
  66.         return this.clientId==null || StringUtils.isEmpty(this.clientId) ||
  67.                 this.clientDetails==null || StringUtils.isEmpty(this.clientDetails) ||
  68.                 this.organizationId==null || StringUtils.isEmpty(this.organizationId) ||
  69.                 this.organizationDetails==null || StringUtils.isEmpty(this.organizationDetails);
  70.     }
  71.     public boolean isInfoComplete() {
  72.         return !this.isInfoUncomplete();
  73.     }
  74. }