Interface FederatingPortletInvoker

All Superinterfaces:
org.gatein.pc.api.PortletInvoker
All Known Implementing Classes:
FederatingPortletInvokerService

public interface FederatingPortletInvoker extends org.gatein.pc.api.PortletInvoker
A portlet invoker that federates other invokers.
  • Field Summary

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

    LOCAL_PORTLET_INVOKER_ID
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the registered FederatedPortletInvoker associated with the specified identifier, delegating to the PortletInvokerResolver specified using setPortletInvokerResolver(PortletInvokerResolver) if it's not initially resolved or returns null if a FederatedPortletInvoker is not found after going through the specified NullInvokerHandler resolution mechanism.
    Returns the known portlet invoker identifiers, including resolvable ones (though they might not have been already resolved).
    Set<org.gatein.pc.api.Portlet>
    Return only the portlets from local federated invokers.
    Set<org.gatein.pc.api.Portlet>
    Return only the portlets from remote federated invokers.
    Returns only the portlet invoker identifiers of the currently resolved invokers, which might be different from the set potentially resolvable invokers as returned by getFederatedInvokerIds().
    boolean
    isResolved(String federatedId)
    Determines whether the FederatedPortletInvoker with the specified identifier has already been resolved.
    registerInvoker(String federatedId, org.gatein.pc.api.PortletInvoker registeredInvoker)
    Registers an invoker.
    void
    Specifies which NullInvokerHandler to use to attempt retrieval of a federated invoker when default resolution mechanism cannot find an associated invoker.
    void
    Unregisters the invoker associated with the specified identifier.

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

    createClone, destroyClones, exportPortlet, getPortlet, getPortlets, getProperties, getProperties, getStatus, importPortlet, invoke, isActive, setProperties
  • Method Details

    • registerInvoker

      FederatedPortletInvoker registerInvoker(String federatedId, org.gatein.pc.api.PortletInvoker registeredInvoker) throws IllegalArgumentException
      Registers an invoker.
      Parameters:
      federatedId - the invoker id to register
      registeredInvoker - the invoker to register
      Throws:
      IllegalArgumentException - if the invoker is null or already registered
    • getFederatedInvoker

      FederatedPortletInvoker getFederatedInvoker(String federatedId) throws IllegalArgumentException
      Returns the registered FederatedPortletInvoker associated with the specified identifier, delegating to the PortletInvokerResolver specified using setPortletInvokerResolver(PortletInvokerResolver) if it's not initially resolved or returns null if a FederatedPortletInvoker is not found after going through the specified NullInvokerHandler resolution mechanism.
      Parameters:
      federatedId - the id
      Returns:
      the invoker
      Throws:
      IllegalArgumentException - if the id is null
    • getFederatedInvokerIds

      Collection<String> getFederatedInvokerIds()
      Returns the known portlet invoker identifiers, including resolvable ones (though they might not have been already resolved).
      Returns:
      a collection of all the resolvable portlet invoker identifiers
    • getResolvedInvokerIds

      Collection<String> getResolvedInvokerIds()
      Returns only the portlet invoker identifiers of the currently resolved invokers, which might be different from the set potentially resolvable invokers as returned by getFederatedInvokerIds().
      Returns:
      a collection of the currently resolved portlet invoker identifiers
    • isResolved

      boolean isResolved(String federatedId) throws IllegalArgumentException
      Determines whether the FederatedPortletInvoker with the specified identifier has already been resolved.
      Parameters:
      federatedId - the identifier of the FederatedPortletInvoker to test for resolution status
      Returns:
      true if the specified invoker is already resolved, false otherwise
      Throws:
      IllegalArgumentException - if the specified invoker identifier is not among the known resolvable identifiers as returned by getFederatedInvokerIds()
    • unregisterInvoker

      void unregisterInvoker(String federatedId)
      Unregisters the invoker associated with the specified identifier.
      Parameters:
      federatedId - the identifier of the invoker to unregister
      Throws:
      IllegalArgumentException - if the identifier is null or no invoker is registered with this identifier
      Since:
      2.6
    • getLocalPortlets

      Set<org.gatein.pc.api.Portlet> getLocalPortlets() throws org.gatein.pc.api.PortletInvokerException
      Return only the portlets from local federated invokers.
      Returns:
      a Set containing only the portlets from local federated invokers.
      Throws:
      org.gatein.pc.api.PortletInvokerException
    • getRemotePortlets

      Set<org.gatein.pc.api.Portlet> getRemotePortlets() throws org.gatein.pc.api.PortletInvokerException
      Return only the portlets from remote federated invokers.
      Returns:
      a Set containing only the portlets from remote federated invokers.
      Throws:
      org.gatein.pc.api.PortletInvokerException
    • setPortletInvokerResolver

      void setPortletInvokerResolver(PortletInvokerResolver portletResolver)
      Specifies which NullInvokerHandler to use to attempt retrieval of a federated invoker when default resolution mechanism cannot find an associated invoker.
      Parameters:
      portletResolver -