fr.paris.lutece.plugins.crm.business.user
Class CRMUser

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.business.user.CRMUser

public class CRMUser
extends Object

CRMUser


Field Summary
static Timestamp DEFAULT_DATE_LAST_LOGIN
           
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
CRMUser()
           
 
Method Summary
 Timestamp getDateLastLogin()
          Get the last login date of the user
 int getIdCRMUser()
          Get the id crm user
 int getStatus()
          Get the status of the user
 Map<String,String> getUserAttributes()
          Get the user attributes
 String getUserAttributeValue(String strUserAttributeKey)
          Get the user attribute value
 String getUserGuid()
          Get the user guid
 boolean isActive()
          Check if the user is active
 boolean isAnonymized()
          Checks if is anonymized.
 void setDateLastLogin(Timestamp dateLastLogin)
          Set the last login date of the user
 void setIdCRMUser(int nIdCRMUser)
          Set the id crm user
 void setStatus(int nStatus)
          Set the status of the user
 void setUserAttributes(Map<String,String> userInfos)
          Set the user attributes
 void setUserGuid(String strUserGuid)
          Set the user guid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DATE_LAST_LOGIN

public static final Timestamp DEFAULT_DATE_LAST_LOGIN

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

CRMUser

public CRMUser()
Method Detail

setIdCRMUser

public void setIdCRMUser(int nIdCRMUser)
Set the id crm user

Parameters:
nIdCRMUser - the id crm user

getIdCRMUser

public int getIdCRMUser()
Get the id crm user

Returns:
the id crm user

setUserGuid

public void setUserGuid(String strUserGuid)
Set the user guid

Parameters:
strUserGuid - the user guid

getUserGuid

public String getUserGuid()
Get the user guid

Returns:
the user guid

setUserAttributes

public void setUserAttributes(Map<String,String> userInfos)
Set the user attributes

Parameters:
userInfos - the user attributes

getUserAttributes

public Map<String,String> getUserAttributes()
Get the user attributes

Returns:
the user attributes

getUserAttributeValue

public String getUserAttributeValue(String strUserAttributeKey)
Get the user attribute value

Parameters:
strUserAttributeKey - the key
Returns:
the user attribute value

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 of the user

isActive

public boolean isActive()
Check if the user is active

Returns:
true if it is active, false otherwise

isAnonymized

public boolean isAnonymized()
Checks if is anonymized.

Returns:
true, if is anonymized

getDateLastLogin

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

Returns:
The last login date of the user. The last login date is null if the user never logged in before.

setDateLastLogin

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

Parameters:
dateLastLogin - The last login date of the user, or null if the user never logged in.


Copyright © 2013 Mairie de Paris. All Rights Reserved.