|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.agent.events.AgentSessionEndListener
public class AgentSessionEndListener
This class sends and AgentSessionEndEvent when a session ends.
This class must be added to the SessionManager's list of nameContextBindingListeners in order for it to know when sessions are destroyed.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
AgentSessionEndListener()
Empty constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface atg.naming.NameContextBindingListener |
---|
nameContextElementUnbound |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public AgentSessionEndListener()
Method Detail |
---|
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 NameContext
protected atg.nucleus.NucleusNameResolver getNameResolver(NameContext pNameContext, boolean pCreate)
protected atg.nucleus.NucleusNameResolver getNameResolverWithNucleusRoot(NameContext pNameContext, boolean pCreate)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |