Class ModelAdapter
java.lang.Object
org.exoplatform.portal.webui.application.ModelAdapter
- Version:
- $Revision$
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelAdapterabstract org.gatein.pc.api.StatefulPortletContext<org.exoplatform.portal.pc.ExoPortletState> getPortletContext(org.exoplatform.container.ExoContainer container, String applicationId, org.exoplatform.portal.config.model.ApplicationState applicationState) abstract org.gatein.pc.api.PortletContextgetProducerOfferedPortletContext(String applicationId) StatefulPortletContext returned by getPortletContext is actually of type PortletStateType.OPAQUE so that it can be properly handled in WSRP...abstract org.exoplatform.portal.pom.spi.portlet.PortletgetState(org.exoplatform.container.ExoContainer container, org.exoplatform.portal.config.model.ApplicationState applicationState) Returns the state of the gadget as preferences or null if the preferences cannot be edited as such.abstract org.exoplatform.portal.pc.ExoPortletStategetstateFromClonedContext(org.gatein.pc.api.PortletContext originalPortletContext, org.gatein.pc.api.PortletContext clonedPortletContext) Extracts the state based on what the current PortletContext is and the new cloned PortletContextabstract org.exoplatform.portal.pc.ExoPortletStategetStateFromModifiedContext(org.gatein.pc.api.PortletContext originalPortletContext, org.gatein.pc.api.PortletContext modifiedPortletContext) Extracts the state based on what the current PortletContext is and the new modified PortletContext.abstract org.exoplatform.portal.config.model.ApplicationStateupdate(org.exoplatform.container.ExoContainer container, org.exoplatform.portal.pc.ExoPortletState updateState, org.exoplatform.portal.config.model.ApplicationState applicationState)
-
Constructor Details
-
ModelAdapter
public ModelAdapter()
-
-
Method Details
-
getAdapter
-
getProducerOfferedPortletContext
public abstract org.gatein.pc.api.PortletContext getProducerOfferedPortletContext(String applicationId) StatefulPortletContext returned by getPortletContext is actually of type PortletStateType.OPAQUE so that it can be properly handled in WSRP... This model needs to be revisited if we want to properly support consumer-side state management. See GTNPORTAL-736. -
getPortletContext
public abstract org.gatein.pc.api.StatefulPortletContext<org.exoplatform.portal.pc.ExoPortletState> getPortletContext(org.exoplatform.container.ExoContainer container, String applicationId, org.exoplatform.portal.config.model.ApplicationState applicationState) throws Exception - Throws:
Exception
-
update
public abstract org.exoplatform.portal.config.model.ApplicationState update(org.exoplatform.container.ExoContainer container, org.exoplatform.portal.pc.ExoPortletState updateState, org.exoplatform.portal.config.model.ApplicationState applicationState) throws Exception - Throws:
Exception
-
getState
public abstract org.exoplatform.portal.pom.spi.portlet.Portlet getState(org.exoplatform.container.ExoContainer container, org.exoplatform.portal.config.model.ApplicationState applicationState) throws Exception Returns the state of the gadget as preferences or null if the preferences cannot be edited as such.- Parameters:
container- the containerapplicationState- the application state- Returns:
- the preferences
- Throws:
Exception- any exception
-
getStateFromModifiedContext
public abstract org.exoplatform.portal.pc.ExoPortletState getStateFromModifiedContext(org.gatein.pc.api.PortletContext originalPortletContext, org.gatein.pc.api.PortletContext modifiedPortletContext) Extracts the state based on what the current PortletContext is and the new modified PortletContext.- Parameters:
originalPortletContext- The current PortletContext for the PortletmodifiedPortletContext- The new modified PortletContext- Returns:
-
getstateFromClonedContext
public abstract org.exoplatform.portal.pc.ExoPortletState getstateFromClonedContext(org.gatein.pc.api.PortletContext originalPortletContext, org.gatein.pc.api.PortletContext clonedPortletContext) Extracts the state based on what the current PortletContext is and the new cloned PortletContext- Parameters:
originalPortletContext- The current PortletContext for the PortletclonedPortletContext- The new cloned PortletContext- Returns:
-