Class PortletInvokerInterceptor

java.lang.Object
org.gatein.pc.portlet.PortletInvokerInterceptor
All Implemented Interfaces:
org.gatein.pc.api.PortletInvoker
Direct Known Subclasses:
CCPPInterceptor, ConsumerCacheInterceptor, ConsumerPortletInvoker, ContainerPortletDispatcher, ContainerPortletInvoker, ContextDispatcherInterceptor, EventPayloadInterceptor, LocalInterceptor, PortletCustomizationInterceptor, ProducerCacheInterceptor, ProducerPortletInvoker, RequestAttributeConversationInterceptor, SecureTransportInterceptor, SessionInvalidatorInterceptor, ValveInterceptor

public class PortletInvokerInterceptor extends Object implements org.gatein.pc.api.PortletInvoker
A base class for PortletInvoker interface interceptors. The subclasses extends it and override the intercepted methods. The next interceptor in the chain is wired in the field next of the interceptor. When the interceptor wants to give control to the next interceptor, it must invoke the same method on the super class. If no next interceptor is configured the invocation of the parent method will throw an IllegalStateException.
Version:
$Revision: 630 $
Author:
Julien Viet
  • Field Summary

    Fields inherited from interface org.gatein.pc.api.PortletInvoker

    LOCAL_PORTLET_INVOKER_ID
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    PortletInvokerInterceptor(org.gatein.pc.api.PortletInvoker next)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    append(org.gatein.pc.api.PortletInvoker invoker)
     
    org.gatein.pc.api.PortletContext
    createClone(org.gatein.pc.api.PortletStateType stateType, org.gatein.pc.api.PortletContext portletContext)
     
    List<org.gatein.pc.api.state.DestroyCloneFailure>
    destroyClones(List<org.gatein.pc.api.PortletContext> portletContexts)
     
    org.gatein.pc.api.PortletContext
    exportPortlet(org.gatein.pc.api.PortletStateType stateType, org.gatein.pc.api.PortletContext originalPortletContext)
     
    org.gatein.pc.api.PortletInvoker
     
    org.gatein.pc.api.Portlet
    getPortlet(org.gatein.pc.api.PortletContext portletContext)
     
    Set<org.gatein.pc.api.Portlet>
     
    org.gatein.pc.api.state.PropertyMap
    getProperties(org.gatein.pc.api.PortletContext portletContext)
     
    org.gatein.pc.api.state.PropertyMap
    getProperties(org.gatein.pc.api.PortletContext portletContext, Set<String> keys)
     
    org.gatein.pc.api.PortletStatus
    getStatus(org.gatein.pc.api.PortletContext portletContext)
     
    org.gatein.pc.api.PortletContext
    importPortlet(org.gatein.pc.api.PortletStateType stateType, org.gatein.pc.api.PortletContext originalPortletContext)
     
    org.gatein.pc.api.invocation.response.PortletInvocationResponse
    invoke(org.gatein.pc.api.invocation.PortletInvocation invocation)
     
    boolean
     
    void
    setNext(org.gatein.pc.api.PortletInvoker next)
     
    org.gatein.pc.api.PortletContext
    setProperties(org.gatein.pc.api.PortletContext portletContext, org.gatein.pc.api.state.PropertyChange[] changes)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PortletInvokerInterceptor

      public PortletInvokerInterceptor()
    • PortletInvokerInterceptor

      public PortletInvokerInterceptor(org.gatein.pc.api.PortletInvoker next)
  • Method Details

    • getNext

      public org.gatein.pc.api.PortletInvoker getNext()
    • setNext

      public void setNext(org.gatein.pc.api.PortletInvoker next)
    • append

      public PortletInvokerInterceptor append(org.gatein.pc.api.PortletInvoker invoker)
    • getPortlets

      public Set<org.gatein.pc.api.Portlet> getPortlets() throws org.gatein.pc.api.PortletInvokerException
      Specified by:
      getPortlets in interface org.gatein.pc.api.PortletInvoker
      Throws:
      org.gatein.pc.api.PortletInvokerException
    • getPortlet

      public org.gatein.pc.api.Portlet getPortlet(org.gatein.pc.api.PortletContext portletContext) throws IllegalArgumentException, org.gatein.pc.api.PortletInvokerException
      Specified by:
      getPortlet in interface org.gatein.pc.api.PortletInvoker
      Throws:
      IllegalArgumentException
      org.gatein.pc.api.PortletInvokerException
    • getStatus

      public org.gatein.pc.api.PortletStatus getStatus(org.gatein.pc.api.PortletContext portletContext) throws IllegalArgumentException, org.gatein.pc.api.PortletInvokerException
      Specified by:
      getStatus in interface org.gatein.pc.api.PortletInvoker
      Throws:
      IllegalArgumentException
      org.gatein.pc.api.PortletInvokerException
    • invoke

      public org.gatein.pc.api.invocation.response.PortletInvocationResponse invoke(org.gatein.pc.api.invocation.PortletInvocation invocation) throws IllegalArgumentException, org.gatein.pc.api.PortletInvokerException
      Specified by:
      invoke in interface org.gatein.pc.api.PortletInvoker
      Throws:
      IllegalArgumentException
      org.gatein.pc.api.PortletInvokerException
    • createClone

      public org.gatein.pc.api.PortletContext createClone(org.gatein.pc.api.PortletStateType stateType, org.gatein.pc.api.PortletContext portletContext) throws IllegalArgumentException, org.gatein.pc.api.PortletInvokerException, UnsupportedOperationException
      Specified by:
      createClone in interface org.gatein.pc.api.PortletInvoker
      Throws:
      IllegalArgumentException
      org.gatein.pc.api.PortletInvokerException
      UnsupportedOperationException
    • destroyClones

      public List<org.gatein.pc.api.state.DestroyCloneFailure> destroyClones(List<org.gatein.pc.api.PortletContext> portletContexts) throws IllegalArgumentException, org.gatein.pc.api.PortletInvokerException, UnsupportedOperationException
      Specified by:
      destroyClones in interface org.gatein.pc.api.PortletInvoker
      Throws:
      IllegalArgumentException
      org.gatein.pc.api.PortletInvokerException
      UnsupportedOperationException
    • getProperties

      public org.gatein.pc.api.state.PropertyMap getProperties(org.gatein.pc.api.PortletContext portletContext, Set<String> keys) throws IllegalArgumentException, org.gatein.pc.api.PortletInvokerException, UnsupportedOperationException
      Specified by:
      getProperties in interface org.gatein.pc.api.PortletInvoker
      Throws:
      IllegalArgumentException
      org.gatein.pc.api.PortletInvokerException
      UnsupportedOperationException
    • getProperties

      public org.gatein.pc.api.state.PropertyMap getProperties(org.gatein.pc.api.PortletContext portletContext) throws IllegalArgumentException, org.gatein.pc.api.PortletInvokerException, UnsupportedOperationException
      Specified by:
      getProperties in interface org.gatein.pc.api.PortletInvoker
      Throws:
      IllegalArgumentException
      org.gatein.pc.api.PortletInvokerException
      UnsupportedOperationException
    • setProperties

      public org.gatein.pc.api.PortletContext setProperties(org.gatein.pc.api.PortletContext portletContext, org.gatein.pc.api.state.PropertyChange[] changes) throws IllegalArgumentException, org.gatein.pc.api.PortletInvokerException, UnsupportedOperationException
      Specified by:
      setProperties in interface org.gatein.pc.api.PortletInvoker
      Throws:
      IllegalArgumentException
      org.gatein.pc.api.PortletInvokerException
      UnsupportedOperationException
    • exportPortlet

      public org.gatein.pc.api.PortletContext exportPortlet(org.gatein.pc.api.PortletStateType stateType, org.gatein.pc.api.PortletContext originalPortletContext) throws org.gatein.pc.api.PortletInvokerException, IllegalArgumentException
      Specified by:
      exportPortlet in interface org.gatein.pc.api.PortletInvoker
      Throws:
      org.gatein.pc.api.PortletInvokerException
      IllegalArgumentException
    • importPortlet

      public org.gatein.pc.api.PortletContext importPortlet(org.gatein.pc.api.PortletStateType stateType, org.gatein.pc.api.PortletContext originalPortletContext) throws org.gatein.pc.api.PortletInvokerException, IllegalArgumentException
      Specified by:
      importPortlet in interface org.gatein.pc.api.PortletInvoker
      Throws:
      org.gatein.pc.api.PortletInvokerException
      IllegalArgumentException
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface org.gatein.pc.api.PortletInvoker