Class ModelAdapter

java.lang.Object
org.exoplatform.portal.webui.application.ModelAdapter

public abstract class ModelAdapter extends Object
Version:
$Revision$
Author:
Julien Viet
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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)
     
    abstract org.gatein.pc.api.PortletContext
    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.Portlet
    getState(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.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
    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.
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModelAdapter

      public ModelAdapter()
  • Method Details

    • getAdapter

      public static ModelAdapter 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 container
      applicationState - 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 Portlet
      modifiedPortletContext - 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 Portlet
      clonedPortletContext - The new cloned PortletContext
      Returns: