org.mentawai.action
Class LogoutAction

java.lang.Object
  extended by org.mentawai.core.BaseAction
      extended by org.mentawai.action.LogoutAction
All Implemented Interfaces:
Action, StickyAction, AuthenticationFree

public class LogoutAction
extends BaseAction
implements AuthenticationFree

A simple Logout action that can be used fot user logout. This action just calls the session reset() method, to clear the session.

Author:
Sergio Oliveira

Field Summary
 
Fields inherited from class org.mentawai.core.BaseAction
application, cookies, input, loc, msgContext, output, session
 
Fields inherited from interface org.mentawai.core.Action
ACCESSDENIED, ADD, AJAX, ALREADY, BACK, BLOCKED, CREATED, EDIT, ERROR, EXCEPTION, HTML, INDEX, JSON, JSP, LIST, LOGIN, MAIN, NEXT, NOT_FOUND, NULL, REMOVED, SHOW, STREAM, SUCCESS, TEST, UPDATED, XML
 
Constructor Summary
LogoutAction()
           
 
Method Summary
 boolean bypassAuthentication(String innerAction)
           
 String execute()
           
protected  void logout()
          Implements the actual logout.
 
Methods inherited from class org.mentawai.core.BaseAction
addError, addError, addError, addError, addError, addError, addError, addError, addError, addError, addError, addError, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, addMessage, adhere, ajax, application, commit, commit, cookies, disjoin, findValue, findValue, getApplication, getContextPath, getCookies, getError, getInput, getLocale, getLocalizedText, getLocalizedText, getMessageTokens, getMessageTokens, getOutput, getPrettyURL, getSession, getSessionLocale, getSessionObj, getUserLocale, getUserSession, hasError, init, init, input, isAjaxRequest, isAjaxRequest, isEmpty, isGet, isGet, isLogged, isPost, isPost, isPrettyURL, loc, onRemoved, output, redir, replaceSessionObj, replaceUserSession, rollback, rollback, session, setApplication, setCookies, setInput, setLocale, setMessageContext, setOutput, setSession, setSessionGroup, setSessionGroup, setSessionGroups, setSessionGroups, setSessionLocale, setSessionLocale, setSessionObj, setSessionUser, setUserSession, stream, stream, stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogoutAction

public LogoutAction()
Method Detail

logout

protected void logout()
Implements the actual logout. This method simply calls the session reset() method, to clean the session. You may override this method if you want to do other operations when the user logs out.


execute

public String execute()
               throws Exception
Overrides:
execute in class BaseAction
Throws:
Exception

bypassAuthentication

public boolean bypassAuthentication(String innerAction)
Specified by:
bypassAuthentication in interface AuthenticationFree


Copyright © 2013. All Rights Reserved.