public class AgentSessionEndListener extends GenericService implements atg.naming.NameContextPreBindingListener, NameContextBindingListener
This class must be added to the SessionManager's list of nameContextBindingListeners in order for it to know when sessions are destroyed.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
AgentSessionEndListener()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAgentItemDescriptorName()
Returns the name of the agent item descriptor in the profile repository.
|
AgentMessagingTools |
getAgentMessagingTools() |
java.lang.String |
getInternalUserItemDescriptorName() |
protected atg.nucleus.NucleusNameResolver |
getNameResolver(NameContext pNameContext)
Gets a name resolver that is scoped to the session.
|
protected atg.nucleus.NucleusNameResolver |
getNameResolver(NameContext pNameContext,
boolean pCreate) |
protected atg.nucleus.NucleusNameResolver |
getNameResolverWithNucleusRoot(NameContext pNameContext,
boolean pCreate) |
java.lang.String |
getProfilePath()
The full name of the Profile component for every request.
|
Repository |
getProfileRepository()
Returns the repository in which user profiles are stored.
|
java.lang.String |
getSessionInfoPath()
The full path of the Profile component for every request.
|
boolean |
isEnabled() |
void |
nameContextElementBound(NameContextBindingEvent pEvent)
This method isets the session start time in the session info component.
|
void |
nameContextElementPreBound(NameContextBindingEvent pEvent)
Dummy implementation to satisfy interface requirement.
|
void |
nameContextElementPreUnbound(NameContextBindingEvent pEvent)
Called just before a session is destroyed.
|
void |
nameContextElementUnBound(NameContextBindingEvent pEvent)
Dummy implementation to satisfy interface requirement.
|
void |
setAgentItemDescriptorName(java.lang.String pAgentItemDescriptorName)
Sets the name of the agent item descriptor in the profile repository.
|
void |
setAgentMessagingTools(AgentMessagingTools pAgentMessagingTools)
The component that will build & send the AgentLogout message.
|
void |
setEnabled(boolean pEnabled)
boolean indicating if this component should do anything.
|
void |
setInternalUserItemDescriptorName(java.lang.String pInternalUserItemDescriptorName) |
void |
setProfilePath(java.lang.String pValue)
The full name of the Profile component for every request.
|
void |
setProfileRepository(Repository pProfileRepository)
Sets the repository in which user profiles are stored
|
void |
setSessionInfoPath(java.lang.String pValue)
The full name of the Profile component for every request.
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
nameContextElementUnbound
public void setEnabled(boolean pEnabled)
pEnabled
- boolean indicating if this component should do anything.public boolean isEnabled()
public void setAgentMessagingTools(AgentMessagingTools pAgentMessagingTools)
pAgentMessagingTools
- the component that will build & send the AgentLogout message.public AgentMessagingTools getAgentMessagingTools()
public void setAgentItemDescriptorName(java.lang.String pAgentItemDescriptorName)
public java.lang.String getAgentItemDescriptorName()
public java.lang.String getInternalUserItemDescriptorName()
public void setInternalUserItemDescriptorName(java.lang.String pInternalUserItemDescriptorName)
pInternalUserItemDescriptorName
- The internalUserItemDescriptorName to set.public void setProfileRepository(Repository pProfileRepository)
public Repository getProfileRepository()
public void setProfilePath(java.lang.String pValue)
public java.lang.String getProfilePath()
public void setSessionInfoPath(java.lang.String pValue)
public java.lang.String getSessionInfoPath()
public void nameContextElementBound(NameContextBindingEvent pEvent)
nameContextElementBound
in interface NameContextBindingListener
nameContextElementBound
in class GenericService
public void nameContextElementUnBound(NameContextBindingEvent pEvent)
public void nameContextElementPreBound(NameContextBindingEvent pEvent)
nameContextElementPreBound
in interface atg.naming.NameContextPreBindingListener
public void nameContextElementPreUnbound(NameContextBindingEvent pEvent)
nameContextElementPreUnbound
in interface atg.naming.NameContextPreBindingListener
protected atg.nucleus.NucleusNameResolver getNameResolver(NameContext pNameContext)
pSession
- the session NameContextprotected atg.nucleus.NucleusNameResolver getNameResolver(NameContext pNameContext, boolean pCreate)
protected atg.nucleus.NucleusNameResolver getNameResolverWithNucleusRoot(NameContext pNameContext, boolean pCreate)