public interface FederatingPortletInvoker
extends org.gatein.pc.api.PortletInvoker
| Modifier and Type | Method and Description |
|---|---|
FederatedPortletInvoker |
getFederatedInvoker(String federatedId)
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. |
Collection<String> |
getFederatedInvokerIds()
Returns the known portlet invoker identifiers, including resolvable ones (though they might not have been already
resolved).
|
Set<org.gatein.pc.api.Portlet> |
getLocalPortlets()
Return only the portlets from local federated invokers.
|
Set<org.gatein.pc.api.Portlet> |
getRemotePortlets()
Return only the portlets from remote federated invokers.
|
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(). |
boolean |
isResolved(String federatedId)
Determines whether the FederatedPortletInvoker with the specified identifier has already been resolved.
|
FederatedPortletInvoker |
registerInvoker(String federatedId,
org.gatein.pc.api.PortletInvoker registeredInvoker)
Registers an invoker.
|
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.
|
void |
unregisterInvoker(String federatedId)
Unregisters the invoker associated with the specified identifier.
|
FederatedPortletInvoker registerInvoker(String federatedId, org.gatein.pc.api.PortletInvoker registeredInvoker) throws IllegalArgumentException
federatedId - the invoker id to registerregisteredInvoker - the invoker to registerIllegalArgumentException - if the invoker is null or already registeredFederatedPortletInvoker getFederatedInvoker(String federatedId) throws IllegalArgumentException
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.federatedId - the idIllegalArgumentException - if the id is nullCollection<String> getFederatedInvokerIds()
Collection<String> getResolvedInvokerIds()
getFederatedInvokerIds().boolean isResolved(String federatedId) throws IllegalArgumentException
federatedId - the identifier of the FederatedPortletInvoker to test for resolution statustrue if the specified invoker is already resolved, false otherwiseIllegalArgumentException - if the specified invoker identifier is not among the known resolvable
identifiers
as returned by getFederatedInvokerIds()void unregisterInvoker(String federatedId)
federatedId - the identifier of the invoker to unregisterIllegalArgumentException - if the identifier is null or no invoker is registered with this identifierSet<org.gatein.pc.api.Portlet> getLocalPortlets() throws org.gatein.pc.api.PortletInvokerException
org.gatein.pc.api.PortletInvokerExceptionSet<org.gatein.pc.api.Portlet> getRemotePortlets() throws org.gatein.pc.api.PortletInvokerException
org.gatein.pc.api.PortletInvokerExceptionvoid setPortletInvokerResolver(PortletInvokerResolver portletResolver)
portletResolver - Copyright © 2003-2019 GateIn. All Rights Reserved.