public abstract class BaseHASession extends StandardSession implements HASession
Modifier and Type | Field and Description |
---|---|
protected boolean |
persistentFlag |
protected String |
userName |
_sessionLock, attributes, authType, containerEventMethod, context, creationTime, debug, EMPTY_ARRAY, expiring, facade, id, info, isNew, isValid, lastAccessedTime, listeners, manager, maxInactiveInterval, NOT_SERIALIZED, notes, principal, SEPARATE_BUFFER_SERIALIZATION, sessionContext, sessionLockMonitor, ssoId, ssoVersion, SYNC_STRING, thisAccessedTime, threadContextManager, version
SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT
Constructor and Description |
---|
BaseHASession(Manager manager)
Creates a new instance of BaseHASession
|
Modifier and Type | Method and Description |
---|---|
String |
getUserName()
this returns the user name
|
abstract boolean |
isDirty()
always return true for isDirty()
this type of session is always dirty
|
boolean |
isPersistent()
is the session persistent
|
boolean |
isPersistentFlag() |
void |
recycle()
Release all object references, and initialize instance variables, in
preparation for reuse of this object.
|
void |
save() |
abstract void |
setDirty(boolean value)
this is deliberately a no-op
store framework calls this method
so it must be there but must not have
any effect
|
void |
setId(String id)
Set the session identifier for this session.
|
void |
setPersistent(boolean value)
this sets the persistent flag
|
void |
setPrincipal(Principal principal)
Overriding the setPrincipal of StandardSession
|
void |
setUserName(String value)
this sets the user name
|
String |
superToString()
Return a string representation of this object.
|
void |
sync() |
String |
toString()
Return a string representation of this object.
|
access, activate, addSessionListener, endAccess, evaluateIfValid, exclude, expire, expire, expire, fireContainerEvent, fireSessionEvent, getAttribute, getAttributeInternal, getAttributeNames, getAttributes, getAuthType, getBeKey, getCreationTime, getId, getIdInternal, getInfo, getIsValid, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, getPrincipal, getServletContext, getSession, getSessionContext, getSessionLock, getSessionLockForForeground, getSipApplicationSessionId, getSsoId, getSsoVersion, getValue, getValueNames, getVersion, hasExpired, hasNonHttpLockOccurred, incrementVersion, invalidate, isForegroundLocked, isNew, isValid, keys, lockBackground, lockForeground, log, log, log, passivate, putValue, removeAttribute, removeAttribute, removeNote, removeSessionListener, removeValue, setAttribute, setAuthType, setBeKey, setCreationTime, setLastAccessedTime, setManager, setMaxInactiveInterval, setNew, setNote, setSessionLock, setSipApplicationSessionId, setSsoId, setSsoVersion, setValid, setVersion, tellNew, unlockBackground, unlockForeground, unlockForegroundCompletely
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSsoId, incrementVersion, setSsoId, setVersion
access, addSessionListener, endAccess, expire, getAttributes, getAuthType, getCreationTime, getId, getIdInternal, getInfo, getIsValid, getLastAccessedTime, getManager, getMaxInactiveInterval, getNote, getNoteNames, getPrincipal, getSession, getSsoVersion, getVersion, hasExpired, isValid, lockForeground, removeNote, removeSessionListener, setAuthType, setCreationTime, setManager, setMaxInactiveInterval, setNew, setNote, setSsoVersion, setValid, unlockForeground
protected String userName
protected boolean persistentFlag
public BaseHASession(Manager manager)
public void setId(String id)
setId
in interface Session
setId
in class StandardSession
id
- The new session identifierpublic abstract boolean isDirty()
public abstract void setDirty(boolean value)
public boolean isPersistent()
isPersistent
in interface HASession
public void setPersistent(boolean value)
setPersistent
in interface HASession
public String getUserName()
getUserName
in interface HASession
public void setUserName(String value)
setUserName
in interface HASession
public void setPrincipal(Principal principal)
setPrincipal
in interface Session
setPrincipal
in class StandardSession
principal
- The new Principal, or null
if nonepublic boolean isPersistentFlag()
public void recycle()
StandardSession
recycle
in interface Session
recycle
in class StandardSession
public void save()
public String superToString()
public String toString()
StandardSession
toString
in class StandardSession
Copyright © 2018. All rights reserved.