Package org.opencms.jsp
Class CmsJspTagEnableAde
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.opencms.jsp.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
-
-
Constructor Summary
Constructors Constructor Description CmsJspTagEnableAde()
-
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
-
-
-
-
Constructor Detail
-
CmsJspTagEnableAde
public CmsJspTagEnableAde()
-
-
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 interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.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 interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Returns:
Tag.EVAL_BODY_INCLUDE
-
-