fr.ifremer.echobase.ui.interceptors
Class AbstractCheckInterceptor

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

public abstract class AbstractCheckInterceptor
extends com.opensymphony.xwork2.interceptor.AbstractInterceptor

Abstract check interceptor.

Since:
0.1
Author:
tchemit
See Also:
Serialized Form

Field Summary
protected  String redirectAction
          Where to redirect where user is loggued
 
Constructor Summary
AbstractCheckInterceptor()
           
 
Method Summary
protected abstract  boolean doCheck(com.opensymphony.xwork2.ActionInvocation invocation)
           
protected  String getRedirectUrl()
           
 String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
           
protected  void redirect(String url)
           
 void setRedirectAction(String redirectAction)
           
 
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

redirectAction

protected String redirectAction
Where to redirect where user is loggued

Constructor Detail

AbstractCheckInterceptor

public AbstractCheckInterceptor()
Method Detail

setRedirectAction

public void setRedirectAction(String redirectAction)

doCheck

protected abstract boolean doCheck(com.opensymphony.xwork2.ActionInvocation invocation)

intercept

public String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
                 throws Exception
Specified by:
intercept in interface com.opensymphony.xwork2.interceptor.Interceptor
Specified by:
intercept in class com.opensymphony.xwork2.interceptor.AbstractInterceptor
Throws:
Exception

getRedirectUrl

protected String getRedirectUrl()

redirect

protected void redirect(String url)
                 throws Exception
Throws:
Exception


Copyright © 2011-2012 Ifremer. All Rights Reserved.