|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.beans.admin.UserDetail
public class UserDetail
Field Summary | |
---|---|
static String |
CURRENT_REQUESTER_KEY
|
Constructor Summary | |
---|---|
UserDetail()
Constructor |
|
UserDetail(UserDetail toClone)
|
Method Summary | |
---|---|
int |
compareTo(UserDetail other)
|
boolean |
equals(Object other)
|
UserAccessLevel |
getAccessLevel()
Get user's access level |
static List<UserDetail> |
getAll()
Gets the detail about all the users in Silverpeas, whatever their domain. |
static List<UserDetail> |
getAllInDomain(String domainId)
Gets the detail about all the users belonging in the specified domain. |
static UserDetail |
getAnonymousUser()
Gets the anonymous user or null if no such user exists. |
protected static String |
getAnonymousUserId()
Gets the unique identifier of the anonymous user as set in the general look properties. |
String |
getAvatar()
|
String |
getAvatarFileName()
|
static UserDetail |
getById(String userId)
Gets the detail about the specified user. |
Date |
getCreationDate()
|
static UserDetail |
getCurrentRequester()
Gets the detail about the current user behind a request of treatment processing. |
String |
getDisplayedName()
|
Domain |
getDomain()
Gets the domain to which this user belongs. |
String |
getDomainId()
Get user's domain id |
String |
getDurationOfCurrentSession()
Gets the duration of the current user session since its last registered login date. |
String |
geteMail()
Get user's email |
Date |
getExpirationDate()
|
String |
getFirstName()
Get user's first name |
String |
getId()
Get user id as stored in database |
Date |
getLastLoginCredentialUpdateDate()
|
Date |
getLastLoginDate()
|
String |
getLastName()
Get user's last name |
String |
getLogin()
Get user's login |
String |
getLoginAnswer()
|
String |
getLoginQuestion()
|
int |
getNbSuccessfulLoginAttempts()
|
Integer |
getNotifManualReceiverLimit()
|
protected static OrganisationController |
getOrganisationController()
|
Date |
getSaveDate()
|
String |
getSmallAvatar()
|
String |
getSpecificId()
Get specific user id |
UserState |
getState()
Please use isValidState() to retrieve user validity information. |
Date |
getStateSaveDate()
|
String |
getStatus()
|
Date |
getTosAcceptanceDate()
|
int |
getUserManualNotificationUserReceiverLimitValue()
Gets the maximum user receivers the user can notify manually. |
UserPreferences |
getUserPreferences()
Gets the preferences of this user. |
int |
getVersion()
|
int |
hashCode()
|
boolean |
isAccessAdmin()
|
boolean |
isAccessDomainManager()
|
boolean |
isAccessGuest()
|
boolean |
isAccessPdcManager()
|
boolean |
isAccessSpaceManager()
|
boolean |
isAccessUnknown()
|
boolean |
isAccessUser()
|
boolean |
isActivatedState()
This method indicates if the user is activated. |
static boolean |
isActivatedStateFor(String userId)
|
boolean |
isAnonymous()
Is the user is the anonymous one? |
static boolean |
isAnonymousUser(String userId)
Is the specified user is the anonymous one? |
static boolean |
isAnonymousUserExist()
Is the anonymous user exist in this running Silverpeas application? |
boolean |
isAvatarPersonnalized()
|
boolean |
isBackOfficeVisible()
|
boolean |
isBlockedState()
This method is the only one able to indicate the user blocked state. |
boolean |
isConnected()
Is this user connected to Silverpeas? |
boolean |
isDeactivatedState()
This method is the only one able to indicate the user deactivated state. |
boolean |
isDeletedState()
This method is the only one able to indicate the user deletion state. |
boolean |
isDomainAdminRestricted()
|
boolean |
isDomainRestricted()
Is the specified user is restricted to access the resource in its own domain? |
boolean |
isExpiredState()
This method is the only one able to indicate the user expiration state. |
boolean |
isFullyDefined()
|
boolean |
isInRelationWithOrInvitedBy(String userId)
Indicates if the current user is in relation with, or invited by, a user represented by the given identifier. |
boolean |
isUserManualNotificationUserReceiverLimit()
Indicates if a limitation exists about the number of receivers the user can notify manually. |
boolean |
isValidState()
This method is the only one able to indicate the user validity state. |
void |
setAccessLevel(UserAccessLevel accessLevel)
Set user access level |
void |
setCreationDate(Date creationDate)
|
void |
setDomainId(String domainId)
Set user domain id |
void |
seteMail(String seMail)
Set user's email |
void |
setExpirationDate(Date expirationDate)
|
void |
setFirstName(String firstName)
Set user first name |
void |
setId(String id)
Set user identifier |
void |
setLastLoginCredentialUpdateDate(Date lastLoginCredentialUpdateDate)
|
void |
setLastLoginDate(Date lastLoginDate)
|
void |
setLastName(String sLastName)
Set user last name |
void |
setLogin(String login)
Set user login |
void |
setLoginAnswer(String loginAnswer)
Set the login answer |
void |
setLoginQuestion(String loginQuestion)
Set the login question |
void |
setNbSuccessfulLoginAttempts(int nbSuccessfulLoginAttempts)
|
void |
setNotifManualReceiverLimit(Integer notifManualReceiverLimit)
Sets the maximum user receivers the user can notify manually from the persistence context. |
void |
setSaveDate(Date saveDate)
|
void |
setSpecificId(String specificId)
Set specific user id |
void |
setState(UserState state)
The state of the user (account) is updated and the according save date too. |
void |
setStateSaveDate(Date stateSaveDate)
|
void |
setTosAcceptanceDate(Date tosAcceptanceDate)
|
void |
setUserManualNotificationUserReceiverLimit(Integer limit)
Sets the maximum user receivers the user can notify manually. |
void |
setVersion(int version)
|
void |
traceUser()
Dump user values to the trace system |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CURRENT_REQUESTER_KEY
Constructor Detail |
---|
public UserDetail()
public UserDetail(UserDetail toClone)
Method Detail |
---|
public static UserDetail getById(String userId)
userId
- the unique identifier of the user to get.
public static UserDetail getCurrentRequester()
public static boolean isActivatedStateFor(String userId)
isActivatedState()
public static List<UserDetail> getAll()
public static List<UserDetail> getAllInDomain(String domainId)
domainId
- the unique identifier of the domain.
public String getLoginQuestion()
public void setLoginQuestion(String loginQuestion)
loginQuestion
- public String getLoginAnswer()
public void setLoginAnswer(String loginAnswer)
loginAnswer
- public Date getTosAcceptanceDate()
public void setTosAcceptanceDate(Date tosAcceptanceDate)
tosAcceptanceDate
- the date of terms of service acceptancepublic Date getLastLoginDate()
public void setLastLoginDate(Date lastLoginDate)
lastLoginDate
- the date of the last user loginpublic int getNbSuccessfulLoginAttempts()
public void setNbSuccessfulLoginAttempts(int nbSuccessfulLoginAttempts)
nbSuccessfulLoginAttempts
- number of successful login attemptspublic Date getLastLoginCredentialUpdateDate()
public void setLastLoginCredentialUpdateDate(Date lastLoginCredentialUpdateDate)
lastLoginCredentialUpdateDate
- the date of the last update of login credentialspublic Date getExpirationDate()
public void setExpirationDate(Date expirationDate)
expirationDate
- the date of user expiration (account)public UserState getState()
isValidState()
to retrieve user validity information.
Please use isDeletedState()
to retrieve user deletion information.
Please use isBlockedState()
to retrieve user blocked information.
Please use isDeactivatedState()
to retrieve user deactivated information.
Please use isExpiredState()
to retrieve user expiration information.
This method returns the stored state information but not the functional information.
public void setState(UserState state)
state
- the state of the user (account)public Date getCreationDate()
public void setCreationDate(Date creationDate)
creationDate
- the date of the user creationpublic Date getSaveDate()
public void setSaveDate(Date saveDate)
saveDate
- the date of the last user savepublic int getVersion()
public void setVersion(int version)
version
- the version of the last savepublic Date getStateSaveDate()
public void setStateSaveDate(Date stateSaveDate)
stateSaveDate
- the date of last user state save (when it changes)public String getId()
public void setId(String id)
id
- the user identifier to setpublic String getSpecificId()
public void setSpecificId(String specificId)
specificId
- public String getDomainId()
public void setDomainId(String domainId)
domainId
- public String getLogin()
public void setLogin(String login)
login
- the login to setpublic String getFirstName()
public void setFirstName(String firstName)
firstName
- user first namepublic String getLastName()
public void setLastName(String sLastName)
sLastName
- user last namepublic void seteMail(String seMail)
seMail
- public String geteMail()
public UserAccessLevel getAccessLevel()
public void setAccessLevel(UserAccessLevel accessLevel)
accessLevel
- public Domain getDomain()
public boolean isDomainRestricted()
public boolean isDomainAdminRestricted()
public boolean isBackOfficeVisible()
public boolean isAccessAdmin()
public boolean isAccessDomainManager()
public boolean isAccessSpaceManager()
public boolean isAccessPdcManager()
public boolean isAccessUser()
public boolean isAccessGuest()
public boolean isAccessUnknown()
public boolean isActivatedState()
isAnonymous()
isDeletedState()
isDeactivatedState()
public boolean isValidState()
getState()
to retrieve user validity information.
public boolean isDeletedState()
getState()
to retrieve user deletion information.
public boolean isBlockedState()
getState()
to retrieve user blocked information.
public boolean isDeactivatedState()
getState()
to retrieve user deactivated information.
public boolean isExpiredState()
getState()
to retrieve user expiration information.
public boolean isAnonymous()
public static UserDetail getAnonymousUser()
public String getDisplayedName()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void traceUser()
public int compareTo(UserDetail other)
compareTo
in interface Comparable<UserDetail>
public String getAvatar()
public String getSmallAvatar()
public boolean isAvatarPersonnalized()
public String getAvatarFileName()
public String getStatus()
public final UserPreferences getUserPreferences()
public boolean isConnected()
public static boolean isAnonymousUserExist()
public static boolean isAnonymousUser(String userId)
userId
- the identifier of the user.
public boolean isFullyDefined()
public String getDurationOfCurrentSession()
public boolean isInRelationWithOrInvitedBy(String userId)
userId
- the identifier of the user which the current user is potentially in relation
with or invited by.
public boolean isUserManualNotificationUserReceiverLimit()
public int getUserManualNotificationUserReceiverLimitValue()
public void setUserManualNotificationUserReceiverLimit(Integer limit)
limit
- the maximum user receivers the user can notify manually.public void setNotifManualReceiverLimit(Integer notifManualReceiverLimit)
notifManualReceiverLimit
- the maximum user receivers the user can notify manually from
the persistence context.public Integer getNotifManualReceiverLimit()
protected static String getAnonymousUserId()
protected static OrganisationController getOrganisationController()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |