|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.business.user.AdminUser
public class AdminUser
This Interface defines all methods required for an admin user implementation
| Constructor Summary | |
|---|---|
AdminUser()
Constructor |
|
AdminUser(java.lang.String stAccessCode,
AdminAuthentication authenticationService)
Constructor |
|
| Method Summary | |
|---|---|
void |
addRoles(java.util.Map<java.lang.String,AdminRole> roles)
add user's roles |
boolean |
checkRight(java.lang.String strRightCode)
Verify user rights on a given functionality |
java.lang.String |
getAccessCode()
|
java.lang.String |
getAuthenticationService()
Returns the authentification service that had authentified the user |
java.lang.String |
getAuthenticationType()
Returns the authentification type that had authentified the user |
java.lang.String |
getEmail()
Returns the email of this user. |
java.lang.String |
getFirstName()
Returns the first name of this user. |
java.lang.String |
getLastName()
Returns the last name of this user. |
java.util.Locale |
getLocale()
Get the user's Locale |
java.util.Map<java.lang.String,Right> |
getRights()
Returns user's rights |
java.util.Map<java.lang.String,AdminRole> |
getRoles()
Returns user's roles |
int |
getStatus()
|
int |
getUserId()
Return the user's id |
int |
getUserLevel()
Returns the user level |
boolean |
hasRights(int level)
Check if current user has rights depending on level |
boolean |
isAdmin()
Check if this user has admin rights |
boolean |
isInRole(java.lang.String strRole)
Check if this user has a given role |
boolean |
isParent(AdminUser user)
Check if current user has rights over user |
boolean |
isStatusActive()
Tells whether the current user is active or not |
void |
setAccessCode(java.lang.String strAccessCode)
|
void |
setAuthenticationService(java.lang.String strAuthenticationService)
Defines the authentification service that had authentified the user |
void |
setAuthenticationType(java.lang.String strAuthenticationType)
Defines the authentification type that had authentified the user |
void |
setEmail(java.lang.String strEmail)
Sets the email of the user to the specified string. |
void |
setFirstName(java.lang.String strFirstName)
Sets the first name of the user to the specified string. |
void |
setLastName(java.lang.String strLastName)
Sets the last name of the user to the specified string. |
void |
setLocale(java.util.Locale locale)
Set the user Locale |
void |
setRights(java.util.Map<java.lang.String,Right> rights)
Defines user's rights |
void |
setRoles(java.util.Map<java.lang.String,AdminRole> roles)
Defines user's roles |
void |
setStatus(int nStatus)
|
void |
setUserId(int nUserId)
Sets the user's id |
void |
setUserLevel(int nUserLevel)
Defines the user level |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdminUser()
public AdminUser(java.lang.String stAccessCode,
AdminAuthentication authenticationService)
stAccessCode - The User NameauthenticationService - The PortalAuthentication object| Method Detail |
|---|
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale - The localepublic int getUserId()
public void setUserId(int nUserId)
nUserId - The User idpublic int getStatus()
public void setStatus(int nStatus)
nStatus - The _nStatus to set.public boolean isStatusActive()
public java.lang.String getLastName()
public void setLastName(java.lang.String strLastName)
strLastName - the new last namepublic java.lang.String getFirstName()
public void setFirstName(java.lang.String strFirstName)
strFirstName - the new first namepublic java.lang.String getEmail()
public void setEmail(java.lang.String strEmail)
strEmail - the new emailpublic java.lang.String getAccessCode()
public void setAccessCode(java.lang.String strAccessCode)
strAccessCode - The _strAccessCode to set.public java.util.Map<java.lang.String,AdminRole> getRoles()
public void addRoles(java.util.Map<java.lang.String,AdminRole> roles)
roles - The User rolespublic void setRoles(java.util.Map<java.lang.String,AdminRole> roles)
roles - The User rolespublic java.util.Map<java.lang.String,Right> getRights()
public boolean checkRight(java.lang.String strRightCode)
strRightCode - right code which corresponding to the functionality
public void setRights(java.util.Map<java.lang.String,Right> rights)
rights - The User rightspublic void setAuthenticationService(java.lang.String strAuthenticationService)
strAuthenticationService - The authentification servicepublic java.lang.String getAuthenticationService()
public void setAuthenticationType(java.lang.String strAuthenticationType)
strAuthenticationType - The authentification typepublic java.lang.String getAuthenticationType()
public void setUserLevel(int nUserLevel)
nUserLevel - the user levelpublic int getUserLevel()
public boolean isParent(AdminUser user)
user - the user to check
public boolean hasRights(int level)
level - a level id
public boolean isAdmin()
public boolean isInRole(java.lang.String strRole)
strRole - The role key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||