Package org.hippoecm.frontend.logout
Class CmsLogoutService
- java.lang.Object
-
- org.hippoecm.frontend.plugin.Plugin
-
- org.hippoecm.frontend.logout.CmsLogoutService
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.io.IClusterable
,IPlugin
,ILogoutService
public class CmsLogoutService extends Plugin implements ILogoutService
Logs the current user out of the CMS. This implementation performs the following tasks upon logout:- Remove the Hippo auto login cookie
- Save pending JCR changes
- Log out the user session
- Redirect to the login page
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.hippoecm.frontend.service.ILogoutService
SERVICE_ID
-
-
Constructor Summary
Constructors Constructor Description CmsLogoutService(IPluginContext context, IPluginConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearStates()
Clear any user states other than user session.void
logout()
Logs out from the current web application.protected void
logoutSession()
Log out user session.protected void
redirectPage()
Redirect it to (home)page-
Methods inherited from class org.hippoecm.frontend.plugin.Plugin
getPluginConfig, getPluginContext, start, stop
-
-
-
-
Constructor Detail
-
CmsLogoutService
public CmsLogoutService(IPluginContext context, IPluginConfig config)
-
-
Method Detail
-
logout
public void logout()
Description copied from interface:ILogoutService
Logs out from the current web application.- Specified by:
logout
in interfaceILogoutService
-
clearStates
protected void clearStates()
Clear any user states other than user session.
-
logoutSession
protected void logoutSession()
Log out user session.
-
redirectPage
protected void redirectPage()
Redirect it to (home)page
-
-