GeneralData.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.web.lib.mvc;

  21. import java.io.Serializable;
  22. import java.util.ArrayList;
  23. import java.util.List;

  24. /**
  25.  * GeneralData
  26.  *
  27.  * @author Andrea Poli (apoli@link.it)
  28.  * @author Stefano Corallo (corallo@link.it)
  29.  * @author Sandra Giangrandi (sandra@link.it)
  30.  * @author $Author$
  31.  * @version $Rev$, $Date$
  32.  *
  33.  */
  34. public class GeneralData implements Serializable{

  35.     /**
  36.      *
  37.      */
  38.     private static final long serialVersionUID = 1L;
  39.     private String product;
  40.     private String url;
  41.     private String css;
  42.     private String language;
  43.     private String title;
  44.     private String linkFoot;
  45.     private List<GeneralLink> headerLinks;
  46.     private List<GeneralLink> modalitaLinks;
  47.     private List<GeneralLink> soggettiLinks;
  48.     private String contextName;
  49.     private String logoHeaderImage;
  50.     private String logoHeaderTitolo;
  51.     private String logoHeaderLink;
  52.     private boolean visualizzaLinkHome;

  53.     public GeneralData(String linkFoot) {
  54.         this.product = "";
  55.         this.url = "";
  56.         this.css = "";
  57.         this.language = "";
  58.         this.title = "";
  59.         this.linkFoot = linkFoot;
  60.         this.headerLinks = new ArrayList<>();
  61.         this.modalitaLinks = new ArrayList<>();
  62.         this.soggettiLinks = new ArrayList<>();
  63.         this.logoHeaderImage = "";
  64.         this.logoHeaderLink= "";
  65.         this.logoHeaderTitolo= "";
  66.         this.visualizzaLinkHome = false;
  67.     }
  68.     public GeneralData() {
  69.         this("https://link.it");
  70.     }

  71.     public void setProduct(String p) {
  72.         this.product = p;
  73.     }
  74.     public String getProduct() {
  75.         return this.product;
  76.     }

  77.     public void setCss(String d) {
  78.         this.css = d;
  79.     }
  80.     public String getCss() {
  81.         return this.css;
  82.     }

  83.     public void setUrl(String u) {
  84.         this.url = u;
  85.     }
  86.     public String getUrl() {
  87.         return this.url;
  88.     }

  89.     public void setLanguage(String l) {
  90.         this.language = l;
  91.     }
  92.     public String getLanguage() {
  93.         return this.language;
  94.     }

  95.     public void setTitle(String t) {
  96.         this.title = t;
  97.     }
  98.     public String getTitle() {
  99.         return this.title;
  100.     }

  101.     public void setLinkFoot(String s) {
  102.         this.linkFoot = s;
  103.     }
  104.     public String getLinkFoot() {
  105.         return this.linkFoot;
  106.     }

  107.     public void setHeaderLinks(List<GeneralLink> v) {
  108.         this.headerLinks = v;
  109.     }
  110.     public List<GeneralLink> getHeaderLinks() {
  111.         return this.headerLinks;
  112.     }

  113.     @Override
  114.     public String toString() {
  115.         return "Product: "+this.product+"\nUrl: "+this.url+"\nStyleSheet: "+this.css+"\nLanguage: "+this.language+"\nTitle: "+this.title+"\nFooter Link: "+this.linkFoot;
  116.     }
  117.     public void setContextName(String contextName) {
  118.         this.contextName=contextName;
  119.     }
  120.     public String getContextName(){
  121.         return this.contextName;
  122.     }
  123.     public String getLogoHeaderImage() {
  124.         return this.logoHeaderImage;
  125.     }
  126.     public void setLogoHeaderImage(String logoHeaderImage) {
  127.         this.logoHeaderImage = logoHeaderImage;
  128.     }
  129.     public String getLogoHeaderTitolo() {
  130.         return this.logoHeaderTitolo;
  131.     }
  132.     public void setLogoHeaderTitolo(String logoHeaderTitolo) {
  133.         this.logoHeaderTitolo = logoHeaderTitolo;
  134.     }
  135.     public String getLogoHeaderLink() {
  136.         return this.logoHeaderLink;
  137.     }
  138.     public void setLogoHeaderLink(String logoHeaderLink) {
  139.         this.logoHeaderLink = logoHeaderLink;
  140.     }
  141.     public List<GeneralLink> getModalitaLinks() {
  142.         return this.modalitaLinks;
  143.     }
  144.     public void setModalitaLinks(List<GeneralLink> modalitaLinks) {
  145.         this.modalitaLinks = modalitaLinks;
  146.     }
  147.     public List<GeneralLink> getSoggettiLinks() {
  148.         return this.soggettiLinks;
  149.     }
  150.     public void setSoggettiLinks(List<GeneralLink> soggettiLinks) {
  151.         this.soggettiLinks = soggettiLinks;
  152.     }
  153.     public boolean isVisualizzaLinkHome() {
  154.         return this.visualizzaLinkHome;
  155.     }
  156.     public void setVisualizzaLinkHome(boolean visualizzaLinkHome) {
  157.         this.visualizzaLinkHome = visualizzaLinkHome;
  158.     }
  159. }