Class CRMUser
java.lang.Object
fr.paris.lutece.plugins.crm.business.user.CRMUser
CRMUser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Timestampstatic final intStatus of activated users.static final intStatus of anonymized users.static final intStatus of expired users.static final intStatus of not activated users. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the last login date of the userintGet the id crm userintGet the status of the userGet the user attributesgetUserAttributeValue(String strUserAttributeKey) Get the user attribute valueGet the user guidbooleanisActive()Check if the user is activebooleanChecks if is anonymized.booleanvoidsetDateLastLogin(Timestamp dateLastLogin) Set the last login date of the uservoidsetIdCRMUser(int nIdCRMUser) Set the id crm uservoidsetMustBeUpdated(boolean _bMustBeUpdated) voidsetStatus(int nStatus) Set the status of the uservoidsetUserAttributes(Map<String, String> userInfos) Set the user attributesvoidsetUserGuid(String strUserGuid) Set the user guid
-
Field Details
-
DEFAULT_DATE_LAST_LOGIN
-
STATUS_NOT_ACTIVATED
public static final int STATUS_NOT_ACTIVATEDStatus of not activated users.- See Also:
-
STATUS_ACTIVATED
public static final int STATUS_ACTIVATEDStatus of activated users.- See Also:
-
STATUS_EXPIRED
public static final int STATUS_EXPIREDStatus of expired users. Expired users will be anonymized.- See Also:
-
STATUS_ANONYMIZED
public static final int STATUS_ANONYMIZEDStatus of anonymized users.- See Also:
-
-
Constructor Details
-
CRMUser
public CRMUser()
-
-
Method Details
-
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
Set the user guid- Parameters:
strUserGuid- the user guid
-
getUserGuid
Get the user guid- Returns:
- the user guid
-
setUserAttributes
Set the user attributes- Parameters:
userInfos- the user attributes
-
getUserAttributes
Get the user attributes- Returns:
- the user attributes
-
getUserAttributeValue
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
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
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.
-
isMustBeUpdated
public boolean isMustBeUpdated()- Returns:
- true if the user information must be updated
-
setMustBeUpdated
public void setMustBeUpdated(boolean _bMustBeUpdated) - Parameters:
_bMustBeUpdated- true if the user information must be updated
-