1 /* 2 * Copyright (c) 2002-2023, City of 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.temporarycode.business; 35 36 import java.io.Serializable; 37 import java.sql.Timestamp; 38 39 /** 40 * This is the business class for the object TemporaryCode 41 */ 42 public class TemporaryCode implements Serializable 43 { 44 private static final long serialVersionUID = 1L; 45 46 // Variables declarations 47 private int _nId; 48 private String _strUserId; 49 private String _strCode; 50 private String _strActionName; 51 private String _strComplementaryInfo; 52 private Timestamp _dateCreatedDate; 53 private Timestamp _dateValidityDate; 54 private boolean _bUsed; 55 56 /** 57 * Returns the Id 58 * @return The Id 59 */ 60 public int getId( ) 61 { 62 return _nId; 63 } 64 65 /** 66 * Sets the Id 67 * @param nId The Id 68 */ 69 public void setId( int nId ) 70 { 71 _nId = nId; 72 } 73 74 /** 75 * Returns the UserId 76 * @return The UserId 77 */ 78 public String getUserId( ) 79 { 80 return _strUserId; 81 } 82 83 /** 84 * Sets the UserId 85 * @param strUserId The UserId 86 */ 87 public void setUserId( String strUserId ) 88 { 89 _strUserId = strUserId; 90 } 91 92 93 /** 94 * Returns the Code 95 * @return The Code 96 */ 97 public String getCode( ) 98 { 99 return _strCode; 100 } 101 102 /** 103 * Sets the Code 104 * @param strCode The Code 105 */ 106 public void setCode( String strCode ) 107 { 108 _strCode = strCode; 109 } 110 111 /** 112 * @return the _strActionName 113 */ 114 public String getActionName( ) 115 { 116 return _strActionName; 117 } 118 119 /** 120 * @param strActionName the _strActionName to set 121 */ 122 public void setActionName( String strActionName ) 123 { 124 this._strActionName = strActionName; 125 } 126 127 /** 128 * @return the _dateCreatedDate 129 */ 130 public Timestamp getCreatedDate( ) 131 { 132 return _dateCreatedDate; 133 } 134 135 /** 136 * @param _dateCreatedDate the _dateCreatedDate to set 137 */ 138 public void setCreatedDate( Timestamp dateCreatedDate ) 139 { 140 this._dateCreatedDate = dateCreatedDate; 141 } 142 143 /** 144 * Returns the ValidityDate 145 * @return The ValidityDate 146 */ 147 public Timestamp getValidityDate( ) 148 { 149 return _dateValidityDate; 150 } 151 152 /** 153 * Sets the ValidityDate 154 * @param dateValidityDate The ValidityDate 155 */ 156 public void setValidityDate( Timestamp dateValidityDate ) 157 { 158 _dateValidityDate = dateValidityDate; 159 } 160 161 162 /** 163 * Returns the Used 164 * @return The Used 165 */ 166 public boolean getUsed( ) 167 { 168 return _bUsed; 169 } 170 171 /** 172 * Sets the Used 173 * @param bUsed The Used 174 */ 175 public void setUsed( boolean bUsed ) 176 { 177 _bUsed = bUsed; 178 } 179 180 /** 181 * 182 * @return complementary information 183 */ 184 public String getComplementaryInfo() { 185 return _strComplementaryInfo; 186 } 187 188 /** 189 * 190 * @param _strComplementaryInfo complementary indormation 191 */ 192 public void setComplementaryInfo(String _strComplementaryInfo) { 193 this._strComplementaryInfo = _strComplementaryInfo; 194 } 195 196 }