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, toString
protected volatile boolean authenticated
public ClientUserSession(UserSession src)
public void setAttribute(java.lang.String name, java.io.Serializable value)
UserSession
setAttribute
in class UserSession
name
- attribute namevalue
- attribute valuepublic void removeAttribute(java.lang.String name)
UserSession
removeAttribute
in class UserSession
name
- attribute namepublic void setLocale(java.util.Locale locale)
UserSession
setLocale
in class UserSession
public void setTimeZone(java.util.TimeZone timeZone)
UserSession
setTimeZone
in class UserSession
public void setAddress(java.lang.String address)
UserSession
setAddress
in class UserSession
public void setClientInfo(java.lang.String clientInfo)
UserSession
setClientInfo
in class UserSession
public boolean isAuthenticated()
authenticated
public void setAuthenticated(boolean authenticated)
authenticated
public boolean hasRequestScopedInfo()
hasRequestScopedInfo
in interface ClientBasedSession