public class ClientUserSession extends UserSession implements ClientBasedSession
UserSession.
Sends updates of the user session properties to the middleware if authenticated.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
authenticated
Indicates whether the user has been authenticated.
|
address, attributes, clientInfo, constraints, id, localAttributes, locale, permissions, roles, roleTypes, substitutedUser, system, timeZone, user| Constructor and Description |
|---|
ClientUserSession(UserSession src) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasRequestScopedInfo() |
boolean |
isAuthenticated() |
void |
removeAttribute(java.lang.String name)
Remove user session attribute.
|
void |
setAddress(java.lang.String address)
INTERNAL
|
void |
setAttribute(java.lang.String name,
java.io.Serializable value)
Set user session attribute.
|
void |
setAuthenticated(boolean authenticated) |
void |
setClientInfo(java.lang.String clientInfo)
INTERNAL
|
void |
setLocale(java.util.Locale locale)
INTERNAL
|
void |
setTimeZone(java.util.TimeZone timeZone)
INTERNAL
|
addConstraint, addPermission, getAddress, getAttribute, getAttributeNames, getClientInfo, getConstraints, getConstraints, getCurrentOrSubstitutedUser, getId, getLocalAttribute, getLocalAttributeNames, getLocale, getPermissionsByType, getPermissionValue, getRoles, getSubstitutedUser, getTimeZone, getUser, hasConstraints, hasConstraints, isEntityAttrPermitted, isEntityOpPermitted, isPermitted, isPermitted, isScreenPermitted, isSpecificPermitted, isSystem, removeConstraint, removeLocalAttribute, removePermission, removePermissions, setLocalAttribute, setLocalAttributeIfAbsent, setSubstitutedUser, setUser, toStringprotected volatile boolean authenticated
public ClientUserSession(UserSession src)
public void setAttribute(java.lang.String name,
java.io.Serializable value)
UserSessionsetAttribute in class UserSessionname - attribute namevalue - attribute valuepublic void removeAttribute(java.lang.String name)
UserSessionremoveAttribute in class UserSessionname - attribute namepublic void setLocale(java.util.Locale locale)
UserSessionsetLocale in class UserSessionpublic void setTimeZone(java.util.TimeZone timeZone)
UserSessionsetTimeZone in class UserSessionpublic void setAddress(java.lang.String address)
UserSessionsetAddress in class UserSessionpublic void setClientInfo(java.lang.String clientInfo)
UserSessionsetClientInfo in class UserSessionpublic boolean isAuthenticated()
authenticatedpublic void setAuthenticated(boolean authenticated)
authenticatedpublic boolean hasRequestScopedInfo()
hasRequestScopedInfo in interface ClientBasedSession