public class CRMUser extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
CRMUser() |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isMustBeUpdated() |
void |
setDateLastLogin(Timestamp dateLastLogin)
Set the last login date of the user
|
void |
setIdCRMUser(int nIdCRMUser)
Set the id crm user
|
void |
setMustBeUpdated(boolean _bMustBeUpdated) |
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
|
public static final Timestamp DEFAULT_DATE_LAST_LOGIN
public static final int STATUS_NOT_ACTIVATED
public static final int STATUS_ACTIVATED
public static final int STATUS_EXPIRED
public static final int STATUS_ANONYMIZED
public void setIdCRMUser(int nIdCRMUser)
nIdCRMUser
- the id crm userpublic int getIdCRMUser()
public void setUserGuid(String strUserGuid)
strUserGuid
- the user guidpublic String getUserGuid()
public void setUserAttributes(Map<String,String> userInfos)
userInfos
- the user attributespublic Map<String,String> getUserAttributes()
public String getUserAttributeValue(String strUserAttributeKey)
strUserAttributeKey
- the keypublic int getStatus()
public void setStatus(int nStatus)
nStatus
- The status of the userpublic boolean isActive()
public boolean isAnonymized()
public Timestamp getDateLastLogin()
public void setDateLastLogin(Timestamp dateLastLogin)
dateLastLogin
- The last login date of the user, or null if the user never logged in.public boolean isMustBeUpdated()
public void setMustBeUpdated(boolean _bMustBeUpdated)
_bMustBeUpdated
- true if the user information must be updatedCopyright © 2019 City of Paris. All rights reserved.