Subversion Repositories eFlore/Applications.coel

Rev

Rev 1197 | Rev 1369 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1197 Rev 1329
Line 147... Line 147...
147
	/**
147
	/**
148
	 * Retourne vrai si utilisateur est identifié.
148
	 * Retourne vrai si utilisateur est identifié.
149
	 * @return boolean
149
	 * @return boolean
150
	 */
150
	 */
151
	public boolean isIdentifie() {
151
	public boolean isIdentifie() {
152
		if (get("identifie").equals(true) && getLicence().equals("1"))	{
152
		if (get("identifie").equals(true))	{
153
			return true;
153
			return true;
154
		}	else	{
154
		}	else	{
155
			return false;
155
			return false;
156
		}
156
		}
157
	}
157
	}
Line 158... Line 158...
158
	
158
	
159
	public void setIdentification(Boolean bool) {
159
	public void setIdentification(Boolean bool) {
160
		set("identifie", bool);
160
		set("identifie", bool);
161
	}
161
	}
-
 
162
 
-
 
163
	public boolean avoirLicenceAcceptee() {
-
 
164
		if (getLicence().equals("1"))	{
-
 
165
			return true;
-
 
166
		}	else	{
-
 
167
			return false;
-
 
168
		}
-
 
169
	}
162
	
170
 
163
	// LICENCE ACCEPTÉE
171
	// LICENCE ACCEPTÉE
164
	public void setLicence(String licence)	{
172
	public void setLicence(String licence)	{
165
		this.set("licenceAcceptee", licence);
173
		this.set("licenceAcceptee", licence);