public interface WSRPConsumerSPI extends WSRPConsumer
| Modifier and Type | Method and Description |
|---|---|
MarkupService |
getMarkupService() |
WSRPPortletInfo |
getPortletInfo(org.gatein.pc.api.invocation.PortletInvocation invocation)
Retrieves the WSRP-specific
PortletInfo implementation for the portlet targeted by the specified invocation |
RegistrationContext |
getRegistrationContext()
Retrieves the current RegistrationContext if any
|
SessionHandler |
getSessionHandler()
Retrieves the SessionHandler associated with this consumer.
|
SessionRegistry |
getSessionRegistry()
Retrieves the SessionRegistry associated with this consumer.
|
UserContext |
getUserContextFrom(WSRPPortletInfo info,
org.gatein.pc.api.invocation.PortletInvocation invocation,
RuntimeContext runtimeContext)
Retrieves the user context if needed by the portlet from the invocation.
|
void |
handleInvalidRegistrationFault()
Performs required maintenance when the consumer receives an InvalidaRegistrationFault from the producer.
|
void |
handleModifyRegistrationRequiredFault()
Performs required operations when the consumer receives a ModifyRegistrationRequiredFault from the producer to get the consumer ready to call modifyRegistration.
|
void |
setTemplatesIfNeeded(WSRPPortletInfo info,
org.gatein.pc.api.invocation.PortletInvocation invocation,
RuntimeContext runtimeContext)
Adds templates (see http://docs.oasis-open.org/wsrp/v2/wsrp-2.0-spec-os-01.html#_Producer_URL_Writing) if required.
|
boolean |
supportsUserScope(String userScope)
Determines whether the specified user scope (for markup caching) is supported.
|
activate, deactivate, exportPortlets, getMigrationService, getProducerId, getProducerInfo, getProducerSessionInformationFrom, getProducerSessionInformationFrom, importPortlets, isImportExportSupported, isRefreshNeeded, isUsingWSRP2, refresh, refreshProducerInfo, releaseExport, releaseSessions, start, stopcreateClone, destroyClones, exportPortlet, getPortlet, getPortlets, getProperties, getProperties, getStatus, importPortlet, invoke, isActive, setPropertiesonSessionEventRegistrationContext getRegistrationContext() throws org.gatein.pc.api.PortletInvokerException
org.gatein.pc.api.PortletInvokerExceptionUserContext getUserContextFrom(WSRPPortletInfo info, org.gatein.pc.api.invocation.PortletInvocation invocation, RuntimeContext runtimeContext) throws org.gatein.pc.api.PortletInvokerException
info - the portlet information for the portlet being interacted with, specifically used to see if the portlet stores the user context in the sessioninvocation - the portlet invocationruntimeContext - the WSRP runtime context to check whether a session exists which would indicate that the user context is already in sessionnull if it's asserted that it's stored in the session so that it's not sent againorg.gatein.pc.api.PortletInvokerExceptionSessionHandler getSessionHandler()
void setTemplatesIfNeeded(WSRPPortletInfo info, org.gatein.pc.api.invocation.PortletInvocation invocation, RuntimeContext runtimeContext) throws org.gatein.pc.api.PortletInvokerException
info - the portlet information for the portlet being interacted with, to check if it requires templatesinvocation - the portlet invocationruntimeContext - the WSRP runtime context to which the templates need to be addedorg.gatein.pc.api.PortletInvokerExceptionvoid handleInvalidRegistrationFault()
throws org.gatein.pc.api.PortletInvokerException
org.gatein.pc.api.PortletInvokerExceptionMarkupService getMarkupService() throws org.gatein.pc.api.PortletInvokerException
org.gatein.pc.api.PortletInvokerExceptionboolean supportsUserScope(String userScope)
userScope - the user scope which support is to be determinedtrue if the given user scope is supported, false otherwiseWSRPPortletInfo getPortletInfo(org.gatein.pc.api.invocation.PortletInvocation invocation) throws org.gatein.pc.api.PortletInvokerException
PortletInfo implementation for the portlet targeted by the specified invocationinvocation - the invocation targeting the portlet we want info aboutPortletInfo implementation for the portlet targeted by the specified invocationorg.gatein.pc.api.PortletInvokerExceptionSessionRegistry getSessionRegistry()
void handleModifyRegistrationRequiredFault()
Copyright © 2006-2014 GateIn. All Rights Reserved.