Class FederatedPortletInvokerService

java.lang.Object
org.gatein.pc.federation.impl.FederatedPortletInvokerService
All Implemented Interfaces:
org.gatein.pc.api.PortletInvoker, FederatedPortletInvoker

public class FederatedPortletInvokerService extends Object implements FederatedPortletInvoker
Since:
2.4
Version:
$Revision: 5943 $
Author:
Julien Viet
  • Field Summary

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

    LOCAL_PORTLET_INVOKER_ID
  • Constructor Summary

    Constructors
    Constructor
    Description
    FederatedPortletInvokerService(FederatingPortletInvoker federatingPortletInvoker, String id, org.gatein.pc.api.PortletInvoker portletInvoker)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gatein.pc.api.PortletContext
    createClone(org.gatein.pc.api.PortletStateType stateType, org.gatein.pc.api.PortletContext compoundPortletContext)
     
    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 compoundPortletContext)
     
     
    Return the invoker id.
    org.gatein.pc.api.Portlet
    getPortlet(org.gatein.pc.api.PortletContext compoundPortletContext)
     
    org.gatein.pc.api.PortletInvoker
    Return the underlying portlet invoker.
    Set<org.gatein.pc.api.Portlet>
     
    org.gatein.pc.api.state.PropertyMap
    getProperties(org.gatein.pc.api.PortletContext compoundPortletContext)
     
    org.gatein.pc.api.state.PropertyMap
    getProperties(org.gatein.pc.api.PortletContext compoundPortletContext, 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 compoundPortletContext)
     
    org.gatein.pc.api.invocation.response.PortletInvocationResponse
    invoke(org.gatein.pc.api.invocation.PortletInvocation invocation)
     
    boolean
     
    org.gatein.pc.api.PortletContext
    setProperties(org.gatein.pc.api.PortletContext compoundPortletContext, 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

    • FederatedPortletInvokerService

      public FederatedPortletInvokerService(FederatingPortletInvoker federatingPortletInvoker, String id, org.gatein.pc.api.PortletInvoker portletInvoker)
  • Method Details

    • getPortletInvoker

      public org.gatein.pc.api.PortletInvoker getPortletInvoker()
      Description copied from interface: FederatedPortletInvoker
      Return the underlying portlet invoker.
      Specified by:
      getPortletInvoker in interface FederatedPortletInvoker
      Returns:
      the underlying portlet invoker
    • isActive

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

      public String getId()
      Description copied from interface: FederatedPortletInvoker
      Return the invoker id.
      Specified by:
      getId in interface FederatedPortletInvoker
      Returns:
      the invoker id
    • getFederatingPortletInvoker

      public FederatingPortletInvoker getFederatingPortletInvoker()
    • 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 compoundPortletContext) 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 org.gatein.pc.api.invocation.InvocationException, org.gatein.pc.api.PortletInvokerException
      Specified by:
      invoke in interface org.gatein.pc.api.PortletInvoker
      Throws:
      org.gatein.pc.api.invocation.InvocationException
      org.gatein.pc.api.PortletInvokerException
    • createClone

      public org.gatein.pc.api.PortletContext createClone(org.gatein.pc.api.PortletStateType stateType, org.gatein.pc.api.PortletContext compoundPortletContext) throws org.gatein.pc.api.PortletInvokerException
      Specified by:
      createClone in interface org.gatein.pc.api.PortletInvoker
      Throws:
      org.gatein.pc.api.PortletInvokerException
    • 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 compoundPortletContext) throws org.gatein.pc.api.PortletInvokerException
      Specified by:
      getProperties in interface org.gatein.pc.api.PortletInvoker
      Throws:
      org.gatein.pc.api.PortletInvokerException
    • getProperties

      public org.gatein.pc.api.state.PropertyMap getProperties(org.gatein.pc.api.PortletContext compoundPortletContext, 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
    • setProperties

      public org.gatein.pc.api.PortletContext setProperties(org.gatein.pc.api.PortletContext compoundPortletContext, 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 compoundPortletContext) throws org.gatein.pc.api.PortletInvokerException
      Specified by:
      exportPortlet in interface org.gatein.pc.api.PortletInvoker
      Throws:
      org.gatein.pc.api.PortletInvokerException
    • importPortlet

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