net.sf.jportlet.portlet.application
Class SecurityInterceptor

java.lang.Object
  |
  +--net.sf.jportlet.portlet.application.SecurityInterceptor
All Implemented Interfaces:
Interceptor

public class SecurityInterceptor
extends java.lang.Object
implements Interceptor

This interceptor make sure that the current user is allowed to access the portlet

Author:
Herve Tchepannou

Field Summary
 
Fields inherited from interface net.sf.jportlet.portlet.application.Interceptor
CONTINUE, SKIP
 
Constructor Summary
SecurityInterceptor()
           
 
Method Summary
 void afterActionPerformed(net.sf.jportlet.portlet.application.PortletProxy proxy, net.sf.jportlet.portlet.event.ActionEvent event)
          This method is called after the ActionListener#actionPerformed(net.sf.jportlet.portlet.event.ActionEvent)
 void afterService(net.sf.jportlet.portlet.application.PortletProxy proxy, net.sf.jportlet.portlet.PortletRequest request, net.sf.jportlet.portlet.PortletResponse response)
          This method is called after Portlet#service(net.sf.jportlet.portlet.PortletRequest, net.sf.jportlet.portlet.PortletResponse)
 int beforeActionPerformed(net.sf.jportlet.portlet.application.PortletProxy proxy, net.sf.jportlet.portlet.event.ActionEvent event)
          This method is called before the ActionListener#actionPerformed(net.sf.jportlet.portlet.event.ActionEvent) of a portlet is invoed
 int beforeService(net.sf.jportlet.portlet.application.PortletProxy proxy, net.sf.jportlet.portlet.PortletRequest request, net.sf.jportlet.portlet.PortletResponse response)
          This method is called before Portlet#service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityInterceptor

public SecurityInterceptor()
Method Detail

afterActionPerformed

public void afterActionPerformed(net.sf.jportlet.portlet.application.PortletProxy proxy,
                                 net.sf.jportlet.portlet.event.ActionEvent event)
                          throws PortletException
Description copied from interface: Interceptor
This method is called after the ActionListener#actionPerformed(net.sf.jportlet.portlet.event.ActionEvent)

Specified by:
afterActionPerformed in interface Interceptor
Parameters:
proxy - Portlet proxy
event - Action event to perform
Throws:
PortletException - if any error occurs
See Also:
net.sf.jportlet.portlet.application.Interceptor#afterActionPerformed(net.sf.jportlet.portlet.application.PortletProxy, net.sf.jportlet.portlet.PortletRequest, net.sf.jportlet.portlet.PortletResponse)

afterService

public void afterService(net.sf.jportlet.portlet.application.PortletProxy proxy,
                         net.sf.jportlet.portlet.PortletRequest request,
                         net.sf.jportlet.portlet.PortletResponse response)
                  throws PortletException,
                         java.io.IOException
Description copied from interface: Interceptor
This method is called after Portlet#service(net.sf.jportlet.portlet.PortletRequest, net.sf.jportlet.portlet.PortletResponse)

Specified by:
afterService in interface Interceptor
Parameters:
proxy - portlet proxy
request - portlet request
response - portlet response
Returns:
Interceptor.CONTINUE or Interceptor.SKIP
PortletException
java.io.IOException
See Also:
Interceptor.afterService(net.sf.jportlet.portlet.application.PortletProxy, net.sf.jportlet.portlet.PortletRequest, net.sf.jportlet.portlet.PortletResponse)

beforeActionPerformed

public int beforeActionPerformed(net.sf.jportlet.portlet.application.PortletProxy proxy,
                                 net.sf.jportlet.portlet.event.ActionEvent event)
                          throws PortletException
Description copied from interface: Interceptor
This method is called before the ActionListener#actionPerformed(net.sf.jportlet.portlet.event.ActionEvent) of a portlet is invoed

Specified by:
beforeActionPerformed in interface Interceptor
Parameters:
proxy - Portlet proxy
event - Action event to perform
Returns:
Interceptor.CONTINUE or Interceptor.SKIP
Throws:
PortletException - if any error occurs
See Also:
net.sf.jportlet.portlet.application.Interceptor#beforeActionPerformed(net.sf.jportlet.portlet.application.PortletProxy, net.sf.jportlet.portlet.PortletRequest, net.sf.jportlet.portlet.PortletResponse)

beforeService

public int beforeService(net.sf.jportlet.portlet.application.PortletProxy proxy,
                         net.sf.jportlet.portlet.PortletRequest request,
                         net.sf.jportlet.portlet.PortletResponse response)
                  throws PortletException,
                         java.io.IOException
Description copied from interface: Interceptor
This method is called before Portlet#service

Specified by:
beforeService in interface Interceptor
Parameters:
proxy - portlet proxy
request - portlet request
response - portlet response
PortletException
java.io.IOException
See Also:
Interceptor.beforeService(net.sf.jportlet.portlet.application.PortletProxy, net.sf.jportlet.portlet.PortletRequest, net.sf.jportlet.portlet.PortletResponse)


Copyright © 2002 Herve Tchepannou. All Rights Reserved.