1 /* 2 * Copyright (c) 2002-2017, Mairie de Paris 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright notice 10 * and the following disclaimer. 11 * 12 * 2. Redistributions in binary form must reproduce the above copyright notice 13 * and the following disclaimer in the documentation and/or other materials 14 * provided with the distribution. 15 * 16 * 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its 17 * contributors may be used to endorse or promote products derived from 18 * this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * POSSIBILITY OF SUCH DAMAGE. 31 * 32 * License 1.0 33 */ 34 package fr.paris.lutece.plugins.webappcontainer.business; 35 36 import fr.paris.lutece.portal.service.workgroup.AdminWorkgroupResource; 37 38 /** 39 * 40 * @author ELY 41 * 42 */ 43 public class Site implements AdminWorkgroupResource 44 { 45 private String _strCode; 46 47 private String _strUrl; 48 49 private String _strDescription; 50 51 private String _strEncoding; 52 53 private String _strHat; 54 55 private String _strWorkgroupKey; 56 57 private boolean _bRebuildHtmlPage; 58 59 private boolean _bRedirectNonHtmlContent; 60 61 private boolean _bUseProxy; 62 63 /** 64 * @return the code 65 */ 66 public String getCode() 67 { 68 return _strCode; 69 } 70 71 /** 72 * @param strCode the code to set 73 */ 74 public void setCode( String strCode ) 75 { 76 this._strCode = strCode; 77 } 78 79 /** 80 * @return the url 81 */ 82 public String getUrl() 83 { 84 return _strUrl; 85 } 86 87 /** 88 * @param strUrl the url to set 89 */ 90 public void setUrl( String strUrl ) 91 { 92 this._strUrl = strUrl; 93 } 94 95 /** 96 * @return the description 97 */ 98 public String getDescription() 99 { 100 return _strDescription; 101 } 102 103 /** 104 * @param strDescription the description to set 105 */ 106 public void setDescription( String strDescription ) 107 { 108 this._strDescription = strDescription; 109 } 110 111 /** 112 * @return the encoding 113 */ 114 public String getEncoding() 115 { 116 return _strEncoding; 117 } 118 119 /** 120 * @param strEncoding the encoding to set 121 */ 122 public void setEncoding( String strEncoding ) 123 { 124 _strEncoding = strEncoding; 125 } 126 127 /** 128 * @param strHat the hat of the site to set 129 */ 130 public void setHat( String strHat ) 131 { 132 _strHat = strHat; 133 } 134 135 /** 136 * @return the hat of the site 137 */ 138 public String getHat() 139 { 140 return _strHat; 141 } 142 143 /** 144 * @param strWorkgroupKey the Workgroup key to set 145 */ 146 public void setWorkgroup( String strWorkgroupKey ) 147 { 148 this._strWorkgroupKey = strWorkgroupKey; 149 } 150 151 /** 152 * @return the Workgroup key 153 */ 154 public String getWorkgroup() 155 { 156 return _strWorkgroupKey; 157 } 158 159 /** 160 * Set to true to redirect non-HTML contents (images, CSS, ...), false else 161 * @param bRedirectNonHtmlContent The bRedirectNonHtmlContent value to set 162 */ 163 public void setRedirectNonHtmlContent( boolean bRedirectNonHtmlContent ) 164 { 165 this._bRedirectNonHtmlContent = bRedirectNonHtmlContent; 166 } 167 168 /** 169 * Return true if the process redirect non-HTML content (images, CSS, ...), false else 170 * @return true if the process redirect non-HTML content (images, CSS, ...), false else 171 */ 172 public boolean isRedirectNonHtmlContent() 173 { 174 return _bRedirectNonHtmlContent; 175 } 176 177 /** 178 * Set to true if the process must rebuild the HTML page (merge head and body contents), false else 179 * @param bRebuildHtmlPage The bRebuildHtmlPage value to set 180 */ 181 public void setRebuildHtmlPage( boolean bRebuildHtmlPage ) 182 { 183 this._bRebuildHtmlPage = bRebuildHtmlPage; 184 } 185 186 /** 187 * Return true if the process must rebuild the HTML page (merge head and body contents), false else 188 * @return true if the process must rebuild the HTML page (merge head and body contents), false else 189 */ 190 public boolean isRebuildHtmlPage() 191 { 192 return _bRebuildHtmlPage; 193 } 194 195 /** 196 * Set to true if the process must use the proxy defined in the plugin property file, false else 197 * @param bUseProxy The bUseProxy value to set 198 */ 199 public void setUseProxy( boolean bUseProxy ) 200 { 201 this._bUseProxy = bUseProxy; 202 } 203 204 /** 205 * Return true if the process must use the proxy defined in the plugin property file, false else 206 * @return true if the process must use the proxy defined in the plugin property file, false else 207 */ 208 public boolean isUseProxy() 209 { 210 return _bUseProxy; 211 } 212 }