|
Dashboard Builder Security 6.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dashboard.users.UserStatus
@SessionScoped @Named(value="userStatus") public class UserStatus
This session Factory component stores the actual user information. This component provides configuration and methods to manage the platform user access.
| Field Summary | |
|---|---|
protected String |
rootLogin
|
protected String |
rootUserName
|
protected SecurityCache |
securityCache
|
protected javax.enterprise.inject.Instance<UserStatusListener> |
statusChangedListeners
|
protected Subject |
userAuth
|
protected String |
userEmail
|
protected String |
userLogin
|
protected String |
userName
|
protected Set<String> |
userRoleIds
|
| Constructor Summary | |
|---|---|
UserStatus()
|
|
| Method Summary | |
|---|---|
protected Set<Principal> |
calculateUserPrincipals()
|
void |
checkPermission(Permission perm)
Determine if current user has given permission. |
protected void |
clear()
|
void |
closeSession()
Close the user session. |
protected boolean |
evaluatePermission(Permission perm)
|
AccessController |
getAccessController()
|
String |
getRootLogin()
|
String |
getRootUserName()
|
String |
getUserEmail()
|
String |
getUserLogin()
|
String |
getUserName()
|
Set<String> |
getUserRoleIds()
|
boolean |
hasPermission(Permission perm)
Determine if current user has given permission. |
void |
initSession(String login,
Collection<String> roleIds)
Init a user session with the give credentials. |
void |
initSessionAsRoot()
Init a user session as root. |
void |
invalidateUserPrincipals()
Invalidates the user principals due to external changes affecting them. |
boolean |
isAnonymous()
Determine if there is no currently logged in user. |
boolean |
isLoggedIn()
|
boolean |
isRootUser()
Determine if currently logged user is root user. |
static UserStatus |
lookup()
|
protected void |
notifyStatusChanged()
|
void |
setRootLogin(String rootLogin)
|
void |
setRootUserName(String rootUserName)
|
void |
setUserEmail(String userEmail)
|
void |
setUserLogin(String userLogin)
|
void |
setUserName(String userName)
|
void |
setUserRoleIds(Set<String> userRoleIds)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Inject protected String rootLogin
@Inject protected String rootUserName
@Inject protected SecurityCache securityCache
@Inject protected javax.enterprise.inject.Instance<UserStatusListener> statusChangedListeners
protected transient String userLogin
protected transient String userName
protected transient String userEmail
protected transient Set<String> userRoleIds
protected transient Subject userAuth
| Constructor Detail |
|---|
public UserStatus()
| Method Detail |
|---|
public static UserStatus lookup()
public String getRootLogin()
public void setRootLogin(String rootLogin)
public String getRootUserName()
public void setRootUserName(String rootUserName)
protected void notifyStatusChanged()
public AccessController getAccessController()
public String getUserLogin()
public void setUserLogin(String userLogin)
public String getUserName()
public void setUserName(String userName)
public String getUserEmail()
public void setUserEmail(String userEmail)
public Set<String> getUserRoleIds()
public void setUserRoleIds(Set<String> userRoleIds)
public boolean isRootUser()
public boolean isLoggedIn()
public boolean isAnonymous()
public void initSession(String login,
Collection<String> roleIds)
public void initSessionAsRoot()
public void closeSession()
public void invalidateUserPrincipals()
public void checkPermission(Permission perm)
throws SecurityException
perm - permission to check
SecurityException - if permission is deniedpublic boolean hasPermission(Permission perm)
perm - permission to check
protected void clear()
protected boolean evaluatePermission(Permission perm)
protected Set<Principal> calculateUserPrincipals()
|
Dashboard Builder Security 6.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||