Class AbstractNavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext>
- java.lang.Object
-
- org.silverpeas.core.web.mvc.webcomponent.AbstractNavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT>
-
- All Implemented Interfaces:
EventListener
,NavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT>
public abstract class AbstractNavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext> extends Object implements NavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT>
-
-
Constructor Summary
Constructors Constructor Description AbstractNavigationContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
navigationContextCleared(NavigationContext<WEB_COMPONENT_REQUEST_CONTEXT> navigationContext)
Method called after navigation context is cleared.void
navigationStepContextIdentifierSet(NavigationContext.NavigationStep navigationStep, String oldContextIdentifier)
Method called after an identifier of the context of a navigation step is set.void
navigationStepCreated(NavigationContext<WEB_COMPONENT_REQUEST_CONTEXT> navigationContext)
Method called after a new navigation step is created.void
navigationStepLabelSet(NavigationContext.NavigationStep navigationStep, String oldLabel)
Method called after a label of a navigation step is set.void
navigationStepReset(NavigationContext<WEB_COMPONENT_REQUEST_CONTEXT> navigationContext)
Method called after an existing navigation step is reset.void
navigationStepTrashed(NavigationContext.NavigationStep trashedNavigationStep)
Method called for each navigation state trashed after an existing navigation step is reset.void
noNavigationStepPerformed(NavigationContext<WEB_COMPONENT_REQUEST_CONTEXT> navigationContext)
Method called after that no navigation step has been performed (created or reset).protected void
setSessionAttribute(WEB_COMPONENT_REQUEST_CONTEXT context, String name, Object value)
Sets an attribute into the session.
-
-
-
Method Detail
-
navigationContextCleared
public void navigationContextCleared(NavigationContext<WEB_COMPONENT_REQUEST_CONTEXT> navigationContext)
Description copied from interface:NavigationContextListener
Method called after navigation context is cleared.- Specified by:
navigationContextCleared
in interfaceNavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext>
-
navigationStepCreated
public void navigationStepCreated(NavigationContext<WEB_COMPONENT_REQUEST_CONTEXT> navigationContext)
Description copied from interface:NavigationContextListener
Method called after a new navigation step is created.- Specified by:
navigationStepCreated
in interfaceNavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext>
-
navigationStepReset
public void navigationStepReset(NavigationContext<WEB_COMPONENT_REQUEST_CONTEXT> navigationContext)
Description copied from interface:NavigationContextListener
Method called after an existing navigation step is reset.- Specified by:
navigationStepReset
in interfaceNavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext>
-
noNavigationStepPerformed
public void noNavigationStepPerformed(NavigationContext<WEB_COMPONENT_REQUEST_CONTEXT> navigationContext)
Description copied from interface:NavigationContextListener
Method called after that no navigation step has been performed (created or reset).- Specified by:
noNavigationStepPerformed
in interfaceNavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext>
-
navigationStepTrashed
public void navigationStepTrashed(NavigationContext.NavigationStep trashedNavigationStep)
Description copied from interface:NavigationContextListener
Method called for each navigation state trashed after an existing navigation step is reset.- Specified by:
navigationStepTrashed
in interfaceNavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext>
-
navigationStepContextIdentifierSet
public void navigationStepContextIdentifierSet(NavigationContext.NavigationStep navigationStep, String oldContextIdentifier)
Description copied from interface:NavigationContextListener
Method called after an identifier of the context of a navigation step is set.- Specified by:
navigationStepContextIdentifierSet
in interfaceNavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext>
-
navigationStepLabelSet
public void navigationStepLabelSet(NavigationContext.NavigationStep navigationStep, String oldLabel)
Description copied from interface:NavigationContextListener
Method called after a label of a navigation step is set.- Specified by:
navigationStepLabelSet
in interfaceNavigationContextListener<WEB_COMPONENT_REQUEST_CONTEXT extends WebComponentRequestContext>
-
setSessionAttribute
protected void setSessionAttribute(WEB_COMPONENT_REQUEST_CONTEXT context, String name, Object value)
Sets an attribute into the session.- Parameters:
context
-name
-value
-
-
-