Class VelocityPortletStateAction

    • Constructor Detail

      • VelocityPortletStateAction

        public VelocityPortletStateAction()
    • Method Detail

      • getState

        protected ControllerState getState​(Context context,
                                           RunData rundata,
                                           Class stateClass)
        Get the proper state for this instance (if portlet is not known, only context).
        Parameters:
        context - The Template Context (it contains a reference to the portlet).
        rundata - The Jetspeed (Turbine) rundata associated with the request.
        stateClass - The Class of the ControllerState to find / create.
        Returns:
        The proper state object for this instance.
      • getState

        protected ControllerState getState​(VelocityPortlet portlet,
                                           RunData rundata,
                                           Class stateClass)
        Get the proper state for this instance (if portlet is known).
        Parameters:
        portlet - The portlet being rendered.
        rundata - The Jetspeed (Turbine) rundata associated with the request.
        stateClass - The Class of the ControllerState to find / create.
        Returns:
        The proper state object for this instance.
      • getState

        protected ControllerState getState​(String peid,
                                           RunData rundata,
                                           Class stateClass)
        Get the proper state for this instance (if portlet id is known).
        Parameters:
        peid - The portlet id.
        rundata - The Jetspeed (Turbine) rundata associated with the request.
        stateClass - The Class of the ControllerState to find / create.
        Returns:
        The proper state object for this instance.
      • releaseState

        protected void releaseState​(Context context,
                                    RunData rundata)
        Release the proper state for this instance (if portlet is not known, only context).
        Parameters:
        context - The Template Context (it contains a reference to the portlet).
        rundata - The Jetspeed (Turbine) rundata associated with the request.
      • releaseState

        protected void releaseState​(VelocityPortlet portlet,
                                    RunData rundata)
        Release the proper state for this instance (if portlet is known).
        Parameters:
        portlet - The portlet being rendered.
        rundata - The Jetspeed (Turbine) rundata associated with the request.
      • releaseState

        protected void releaseState​(String peid,
                                    RunData rundata)
        Release the proper state for this instance (if portlet id is known).
        Parameters:
        peid - The portlet id being rendered.
        rundata - The Jetspeed (Turbine) rundata associated with the request.