1 /* 2 * Copyright (c) 2002-2015, 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 35 package fr.paris.lutece.plugins.mydashboard.modules.gru.business; 36 37 /** 38 * Newsletter 39 */ 40 public class Newsletter { 41 // Variables declarations 42 private String _strName; 43 private String _strDescription; 44 private int _nRegistered; 45 private int _nSubscribersCount; 46 private String _strPreviewUrl; 47 private String _strImageUrl; 48 private String _strSubscribeUrl; 49 private String _strUnsubscribeUrl; 50 51 52 /** 53 * Returns the Name 54 * @return The Name 55 */ 56 public String getName() 57 { 58 return _strName; 59 } 60 61 /** 62 * Sets the Name 63 * @param strName The Name 64 */ 65 public void setName( String strName ) 66 { 67 _strName = strName; 68 } 69 70 /** 71 * Returns the Description 72 * @return The Description 73 */ 74 public String getDescription() 75 { 76 return _strDescription; 77 } 78 79 /** 80 * Sets the Description 81 * @param strDescription The Description 82 */ 83 public void setDescription( String strDescription ) 84 { 85 _strDescription = strDescription; 86 } 87 88 /** 89 * Returns the Registered 90 * @return The Registered 91 */ 92 public int getRegistered() 93 { 94 return _nRegistered; 95 } 96 97 /** 98 * Sets the Registered 99 * @param nRegistered The Registered 100 */ 101 public void setRegistered( int nRegistered ) 102 { 103 _nRegistered = nRegistered; 104 } 105 106 /** 107 * Returns the SubscribersCount 108 * @return The SubscribersCount 109 */ 110 public int getSubscribersCount() 111 { 112 return _nSubscribersCount; 113 } 114 115 /** 116 * Sets the SubscribersCount 117 * @param nSubscribersCount The SubscribersCount 118 */ 119 public void setSubscribersCount( int nSubscribersCount ) 120 { 121 _nSubscribersCount = nSubscribersCount; 122 } 123 124 /** 125 * Returns the PreviewUrl 126 * @return The PreviewUrl 127 */ 128 public String getPreviewUrl() 129 { 130 return _strPreviewUrl; 131 } 132 133 /** 134 * Sets the PreviewUrl 135 * @param strPreviewUrl The PreviewUrl 136 */ 137 public void setPreviewUrl( String strPreviewUrl ) 138 { 139 _strPreviewUrl = strPreviewUrl; 140 } 141 142 /** 143 * Returns the ImageUrl 144 * @return The ImageUrl 145 */ 146 public String getImageUrl() 147 { 148 return _strImageUrl; 149 } 150 151 /** 152 * Sets the ImageUrl 153 * @param strImageUrl The ImageUrl 154 */ 155 public void setImageUrl( String strImageUrl ) 156 { 157 _strImageUrl = strImageUrl; 158 } 159 160 /** 161 * Returns the SubscribeUrl 162 * @return The SubscribeUrl 163 */ 164 public String getSubscribeUrl() 165 { 166 return _strSubscribeUrl; 167 } 168 169 /** 170 * Sets the SubscribeUrl 171 * @param strSubscribeUrl The SubscribeUrl 172 */ 173 public void setSubscribeUrl( String strSubscribeUrl ) 174 { 175 _strSubscribeUrl = strSubscribeUrl; 176 } 177 178 /** 179 * Returns the UnsubscribeUrl 180 * @return The UnsubscribeUrl 181 */ 182 public String getUnsubscribeUrl() 183 { 184 return _strUnsubscribeUrl; 185 } 186 187 /** 188 * Sets the UnsubscribeUrl 189 * @param strUnsubscribeUrl The UnsubscribeUrl 190 */ 191 public void setUnsubscribeUrl( String strUnsubscribeUrl ) 192 { 193 _strUnsubscribeUrl = strUnsubscribeUrl; 194 } 195 196 }