View Javadoc
1   /*
2    * Copyright (c) 2002-2016, 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.mydashboard.modules.identity.business;
35  
36  import java.util.Date;
37  
38  /**
39   * This is the business class for the object DashboardAttribute
40   */ 
41  public class DashboardAttribute
42  {
43      // Variables declarations 
44      private String _strKey;
45      private String _strValue;
46      private String _strCertifierCode;
47      private String _strCertifierName;
48      private int _nCertifierLevel;
49      private Date _tCertificateExpirationDate;
50      
51      public DashboardAttribute( )
52      {
53          
54      }
55  
56      public DashboardAttribute( String key, String value, String certifierCode, String certifierName, int nCertifierLevel, Date tCertificateExpirtationDate )
57      {
58          _strKey = key;
59          _strValue = value;
60          _strCertifierCode = certifierCode;
61          _strCertifierName = certifierName;
62          _nCertifierLevel = nCertifierLevel;
63          _tCertificateExpirationDate = tCertificateExpirtationDate;
64      }
65      
66      public DashboardAttribute( String key, String value )
67      {
68          _strKey = key;
69          _strValue = value;
70          _strCertifierName = null;
71          _strCertifierCode = null;
72          _tCertificateExpirationDate = null;
73      }
74      
75         /**
76          * Returns the Key
77          * @return The Key
78          */ 
79      public String getKey()
80      {
81          return _strKey;
82      }
83      
84         /**
85          * Sets the Key
86          * @param strKey The Key
87          */ 
88      public void setKey( String strKey )
89      {
90          _strKey = strKey;
91      }
92      
93         /**
94          * Returns the Value
95          * @return The Value
96          */ 
97      public String getValue()
98      {
99          return _strValue;
100     }
101     
102        /**
103         * Sets the Value
104         * @param strValue The Value
105         */ 
106     public void setValue( String strValue )
107     {
108         _strValue = strValue;
109     }
110     
111        /**
112         * Returns the CertifierCode
113         * @return The CertifierCode
114         */ 
115     public String getCertifierCode()
116     {
117         return _strCertifierCode;
118     }
119     
120        /**
121         * Sets the CertifierCode
122         * @param strCertifierCode The CertifierCode
123         */ 
124     public void setCertifierCode( String strCertifierCode )
125     {
126         _strCertifierCode = strCertifierCode;
127     }
128     
129        /**
130         * Returns the CertifierName
131         * @return The CertifierName
132         */ 
133     public String getCertifierName()
134     {
135         return _strCertifierName;
136     }
137     
138        /**
139         * Sets the CertifierName
140         * @param strCertifierName The CertifierName
141         */ 
142     public void setCertifierName( String strCertifierName )
143     {
144         _strCertifierName = strCertifierName;
145     }
146     
147     /**
148      * Returns the Certifier level
149      * @return The CertifierLevel
150      */ 
151     public int getCertifierLevel()
152     {
153         return _nCertifierLevel;
154     }
155     
156     /**
157      * Sets the CertifierLevel
158      * @param nCertifierLevel The CertifierLevel
159      */ 
160     public void setCertifierName( int nCertifierLevel )
161     {
162         _nCertifierLevel = nCertifierLevel;
163     }
164     
165        /**
166         * Returns the ExpirationDate of the certificate
167         * @return The ExpirationDate of the certificate
168         */ 
169     public Date getExpirationDate()
170     {
171         return _tCertificateExpirationDate;
172     }
173     
174        /**
175         * Sets the ExpirationDate of the certificate
176         * @param tCertificateExpirationDate The ExpirationDate of the certificate
177         */ 
178     public void setExpirationDate( Date tCertificateExpirationDate )
179     {
180         _tCertificateExpirationDate = tCertificateExpirationDate;
181     }
182     
183     
184  }