fr.ifremer.echobase.ui.interceptors
Class CheckLogguedInterceptor

java.lang.Object
  extended by com.opensymphony.xwork2.interceptor.AbstractInterceptor
      extended by fr.ifremer.echobase.ui.interceptors.AbstractCheckInterceptor
          extended by fr.ifremer.echobase.ui.interceptors.CheckLogguedInterceptor
All Implemented Interfaces:
com.opensymphony.xwork2.interceptor.Interceptor, Serializable

public class CheckLogguedInterceptor
extends AbstractCheckInterceptor

To check user is loggued. If not, then redirect to the loginAction.

Since:
0.1
Author:
tchemit
See Also:
Serialized Form

Field Summary
protected  String loginAction
          Where to redirect if user is not authenticated.
protected static String URL_PATTERN
           
 
Fields inherited from class fr.ifremer.echobase.ui.interceptors.AbstractCheckInterceptor
redirectAction
 
Constructor Summary
CheckLogguedInterceptor()
           
 
Method Summary
protected  boolean doCheck(com.opensymphony.xwork2.ActionInvocation invocation)
           
protected  String getRedirectUrl()
           
 void setLoginAction(String loginAction)
           
 
Methods inherited from class fr.ifremer.echobase.ui.interceptors.AbstractCheckInterceptor
intercept, redirect, setRedirectAction
 
Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor
destroy, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loginAction

protected String loginAction
Where to redirect if user is not authenticated.


URL_PATTERN

protected static final String URL_PATTERN
See Also:
Constant Field Values
Constructor Detail

CheckLogguedInterceptor

public CheckLogguedInterceptor()
Method Detail

setLoginAction

public void setLoginAction(String loginAction)

doCheck

protected boolean doCheck(com.opensymphony.xwork2.ActionInvocation invocation)
Specified by:
doCheck in class AbstractCheckInterceptor

getRedirectUrl

protected String getRedirectUrl()
Overrides:
getRedirectUrl in class AbstractCheckInterceptor


Copyright © 2011 Ifremer. All Rights Reserved.