Class CmsJspTagEnableAde

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class CmsJspTagEnableAde
    extends javax.servlet.jsp.tagext.BodyTagSupport
    Implementation of the <enable-ade/> tag.

    Since:
    7.6
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport

        bodyContent
      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.BodyTag

        EVAL_BODY_BUFFERED, EVAL_BODY_TAG
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int doEndTag()
      Close the direct edit tag, also prints the direct edit HTML to the current page.
      int doStartTag()
      Opens the direct edit tag, if manual mode is set then the next start HTML for the direct edit buttons is printed to the page.
      static void enableAdeTagAction​(javax.servlet.jsp.PageContext context)
      Enable-ade action method.
      static boolean isDirectEditDisabled​(javax.servlet.ServletRequest request)
      Returns if direct edit is disabled for the current request.
      static void removeDirectEditFlagFromSession​(javax.servlet.http.HttpSession session)
      Removes the direct edit flag from session, turning the preview mode off.
      static void updateDirectEditFlagInSession​(javax.servlet.ServletRequest request)
      Updates the direct edit flag in the session and also storing the button left info if available.
      • Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport

        doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
      • Methods inherited from class javax.servlet.jsp.tagext.TagSupport

        findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.servlet.jsp.tagext.Tag

        getParent, setPageContext, setParent
    • Method Detail

      • enableAdeTagAction

        public static void enableAdeTagAction​(javax.servlet.jsp.PageContext context)
                                       throws javax.servlet.jsp.JspException
        Enable-ade action method.

        Parameters:
        context - the current JSP page context
        Throws:
        javax.servlet.jsp.JspException - in case something goes wrong
      • isDirectEditDisabled

        public static boolean isDirectEditDisabled​(javax.servlet.ServletRequest request)
        Returns if direct edit is disabled for the current request.

        Parameters:
        request - the servlet request
        Returns:
        true if direct edit is disabled for the current request
      • removeDirectEditFlagFromSession

        public static void removeDirectEditFlagFromSession​(javax.servlet.http.HttpSession session)
        Removes the direct edit flag from session, turning the preview mode off.

        Parameters:
        session - the session
      • updateDirectEditFlagInSession

        public static void updateDirectEditFlagInSession​(javax.servlet.ServletRequest request)
        Updates the direct edit flag in the session and also storing the button left info if available.

        Parameters:
        request - the request
      • doEndTag

        public int doEndTag()
                     throws javax.servlet.jsp.JspException
        Close the direct edit tag, also prints the direct edit HTML to the current page.

        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
        Returns:
        Tag.EVAL_PAGE
        Throws:
        javax.servlet.jsp.JspException - in case something goes wrong
      • doStartTag

        public int doStartTag()
        Opens the direct edit tag, if manual mode is set then the next start HTML for the direct edit buttons is printed to the page.

        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
        Returns:
        Tag.EVAL_BODY_INCLUDE