Interface EditContext

  • All Known Implementing Classes:
    EditContextImpl

    public interface EditContext
    Representation of the EditContext. The edit context provides the context in which webmanager jsps are executed and provides access to lots of information.
    • Field Detail

      • EDIT_CONTEXT_KEY

        static final String EDIT_CONTEXT_KEY
        The default location for the edit context in the http request.
        See Also:
        Constant Field Values
    • Method Detail

      • push

        void push​(Object activeObject)
        Add an object and a presentation to the stack.
        Parameters:
        activeObject -
      • pushModel

        void pushModel​(Map<String,​Object> activeModel)
        Add a model and a presentation to the stack.
        Parameters:
        activeModel -
      • pop

        void pop()
        Pop the top object and presentation.
      • popModel

        void popModel()
        Pop the top model.
      • getBaseObject

        Object getBaseObject()
        Return object at the top of the stack.
        Returns:
        object at the top of the stack.
      • getBaseModel

        Object getBaseModel()
        Return model at the top of the stack.
        Returns:
        model at the top of the stack.
      • getFirstObject

        Object getFirstObject()
        Returns the first component in the the stack.
        Returns:
        the first component in the the stack.
      • addModelAndView

        void addModelAndView​(Object object,
                             org.springframework.web.servlet.ModelAndView mv)
        Adds a model and view to the edit context. The RenderTag will load the View to be rendered from the EditContext.
        Parameters:
        object - Object (form backing object or business object) for which the View should be set
        mv - The ModelAndView to add to the EditContext
      • getModelAndView

        org.springframework.web.servlet.ModelAndView getModelAndView​(Object object)
        Returns the ModelAndView for the given object. The RenderTag will load the View to be rendered from the EditContext.
        Parameters:
        object - Object (form backing object or business object) for which the View should be retrieved
        Returns:
        The ModelAndView for the object
      • getWebsite

        Website getWebsite()
        Retrieve the website from the user session
        Returns:
        The website