View Javadoc
1   /*
2    * Copyright (c) 2002-2024, 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.identitystore.modules.test.business;
35  
36  import javax.validation.constraints.NotEmpty;
37  import java.io.Serializable;
38  import java.sql.Date;
39  import javax.validation.constraints.NotNull;
40  
41  /**
42   * This is the business class for the object TestIdentityAttribute
43   */
44  public class TestIdentityAttribute implements Serializable
45  {
46      private static final long serialVersionUID = 1L;
47  
48      // Variables declarations
49      private int _nId;
50  
51      @NotEmpty( message = "#i18n{module.identitystore.test.validation.testidentityattribute.Key.notEmpty}" )
52      private String _strKey;
53  
54      @NotEmpty( message = "#i18n{module.identitystore.test.validation.testidentityattribute.Value.notEmpty}" )
55      private String _strValue;
56  
57      private String _strCertifier;
58      @NotNull( message = "#i18n{portal.validation.message.notEmpty}" )
59      private Date _dateCertificationDate;
60  
61      private int _nCertificationLevel;
62  
63      /**
64       * Returns the Id
65       * 
66       * @return The Id
67       */
68      public int getId( )
69      {
70          return _nId;
71      }
72  
73      /**
74       * Sets the Id
75       * 
76       * @param nId
77       *            The Id
78       */
79      public void setId( int nId )
80      {
81          _nId = nId;
82      }
83  
84      /**
85       * Returns the Key
86       * 
87       * @return The Key
88       */
89      public String getKey( )
90      {
91          return _strKey;
92      }
93  
94      /**
95       * Sets the Key
96       * 
97       * @param strKey
98       *            The Key
99       */
100     public void setKey( String strKey )
101     {
102         _strKey = strKey;
103     }
104 
105     /**
106      * Returns the Value
107      * 
108      * @return The Value
109      */
110     public String getValue( )
111     {
112         return _strValue;
113     }
114 
115     /**
116      * Sets the Value
117      * 
118      * @param strValue
119      *            The Value
120      */
121     public void setValue( String strValue )
122     {
123         _strValue = strValue;
124     }
125 
126     /**
127      * Returns the Certifier
128      * 
129      * @return The Certifier
130      */
131     public String getCertifier( )
132     {
133         return _strCertifier;
134     }
135 
136     /**
137      * Sets the Certifier
138      * 
139      * @param strCertifier
140      *            The Certifier
141      */
142     public void setCertifier( String strCertifier )
143     {
144         _strCertifier = strCertifier;
145     }
146 
147     /**
148      * Returns the CertificationDate
149      * 
150      * @return The CertificationDate
151      */
152     public Date getCertificationDate( )
153     {
154         return _dateCertificationDate;
155     }
156 
157     /**
158      * Sets the CertificationDate
159      * 
160      * @param dateCertificationDate
161      *            The CertificationDate
162      */
163     public void setCertificationDate( Date dateCertificationDate )
164     {
165         _dateCertificationDate = dateCertificationDate;
166     }
167 
168     /**
169      * Returns the CertificationLevel
170      * 
171      * @return The CertificationLevel
172      */
173     public int getCertificationLevel( )
174     {
175         return _nCertificationLevel;
176     }
177 
178     /**
179      * Sets the CertificationLevel
180      * 
181      * @param nCertificationLevel
182      *            The CertificationLevel
183      */
184     public void setCertificationLevel( int nCertificationLevel )
185     {
186         _nCertificationLevel = nCertificationLevel;
187     }
188 
189 }