fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business
Class MyluteceDirectoryUser

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.directory.authentication.business.MyluteceDirectoryUser

public class MyluteceDirectoryUser
extends Object

This class represents the business object DatabaseUser


Field Summary
static int STATUS_ACTIVATED
          Status of activated users.
static int STATUS_ANONYMIZED
          Status of anonymized users.
static int STATUS_EXPIRED
          Status of expired users.
static int STATUS_NOT_ACTIVATED
          Status of not activated users.
 
Constructor Summary
MyluteceDirectoryUser()
           
 
Method Summary
 Timestamp getAccountMaxValidDate()
          Get the maximum valid date of the account of the user
 Timestamp getDateLastLogin()
          Get the last login date of the account of the user
 int getIdRecord()
          Returns the IdRecord
 String getLogin()
          Returns the login
 String getPassword()
          Returns the user's password
 Timestamp getPasswordMaxValidDate()
          Get the maximum valid date of the password of the user
 int getStatus()
          Get the status of the user
 boolean isActivated()
          Return true if the user is activated
 boolean isPasswordReset()
          Check if the password has been reinitialized
 void setAccountMaxValidDate(Timestamp accountMaxValidDate)
          Set the maximum valid date of the account of the user
 void setActivated(boolean bIsActivated)
          Deprecated. Use setStatus(int) instead
 void setDateLastLogin(Timestamp dateLastLogin)
          Set the last login date of the account of the user
 void setIdRecord(int nIdRecord)
          Sets the IdRecord
 void setLogin(String strLogin)
          Sets the login
 void setPassword(String strPassword)
          Sets the password
 void setPasswordMaxValidDate(Timestamp passwordMaxValidDate)
          Set the maximum valid date of the password of the user
 void setPasswordReset(boolean bIsPasswordReset)
          Set pwd reseted
 void setStatus(int nStatus)
          Set the status of the user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_NOT_ACTIVATED

public static final int STATUS_NOT_ACTIVATED
Status of not activated users.

See Also:
Constant Field Values

STATUS_ACTIVATED

public static final int STATUS_ACTIVATED
Status of activated users.

See Also:
Constant Field Values

STATUS_EXPIRED

public static final int STATUS_EXPIRED
Status of expired users. Expired users will be anonymized.

See Also:
Constant Field Values

STATUS_ANONYMIZED

public static final int STATUS_ANONYMIZED
Status of anonymized users.

See Also:
Constant Field Values
Constructor Detail

MyluteceDirectoryUser

public MyluteceDirectoryUser()
Method Detail

getIdRecord

public int getIdRecord()
Returns the IdRecord

Returns:
The IdRecord

setIdRecord

public void setIdRecord(int nIdRecord)
Sets the IdRecord

Parameters:
nIdRecord - The IdRecord

getLogin

public String getLogin()
Returns the login

Returns:
The login

setLogin

public void setLogin(String strLogin)
Sets the login

Parameters:
strLogin - The login

getPassword

public String getPassword()
Returns the user's password

Parameters:
The - password

setPassword

public void setPassword(String strPassword)
Sets the password

Parameters:
strPassword - The password

isPasswordReset

public boolean isPasswordReset()
Check if the password has been reinitialized

Returns:
true if it has been reinitialized, false otherwise

setPasswordReset

public void setPasswordReset(boolean bIsPasswordReset)
Set pwd reseted

Parameters:
bIsPasswordReset - true if it has been reinitialized, false otherwise

getStatus

public int getStatus()
Get the status of the user

Returns:
The status of the user

setStatus

public void setStatus(int nStatus)
Set the status of the user

Parameters:
nStatus - The status

isActivated

public boolean isActivated()
Return true if the user is activated

Returns:
the boolean

setActivated

@Deprecated
public void setActivated(boolean bIsActivated)
Deprecated. Use setStatus(int) instead

Sets the activated.

Parameters:
bIsActivated - the new activated

getPasswordMaxValidDate

public Timestamp getPasswordMaxValidDate()
Get the maximum valid date of the password of the user

Returns:
The maximum valid date of the password of the user

setPasswordMaxValidDate

public void setPasswordMaxValidDate(Timestamp passwordMaxValidDate)
Set the maximum valid date of the password of the user

Parameters:
passwordMaxValidDate - The maximum valid date

getAccountMaxValidDate

public Timestamp getAccountMaxValidDate()
Get the maximum valid date of the account of the user

Returns:
The maximum valid date of the account of the user

setAccountMaxValidDate

public void setAccountMaxValidDate(Timestamp accountMaxValidDate)
Set the maximum valid date of the account of the user

Parameters:
accountMaxValidDate - The maximum valid date

getDateLastLogin

public Timestamp getDateLastLogin()
Get the last login date of the account of the user

Returns:
The last login date of the account of the user

setDateLastLogin

public void setDateLastLogin(Timestamp dateLastLogin)
Set the last login date of the account of the user

Parameters:
dateLastLogin - The last login date of the account of the user


Copyright © 2014 Mairie de Paris. All Rights Reserved.