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.
    Since:
    2.4
    Version:
    $Revision: 5687 $
    Author:
    Julien Viet
    • Method Detail

      • 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 -