com.nurelm.nucontent.controller
Class TagHead
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.nurelm.nucontent.controller.TagHead
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class TagHead
- extends javax.servlet.jsp.tagext.TagSupport
This tag is required before any other NuContent tags. It does the following:
- Performs page-level authorization
- Sets default template ID. All tags will accept a templateId parameter,
but will revert to the default template ID set here.
- Adds Page object to request object to be accessed later by other
tags
- Adds various useful variables to the current
pageContext,
which are described below
The followng variables are set in the current pageContext.
The boolean variables start with "pageIs..." and are either set to "1" if
they are true, or not set (null) if false:
pageIsEditable is true if the current user has
permission to edit the page. Note that it is still true if the user
is currently locked out of editing.
pageIsLockable is true if locking is active for the
page, either by setting this tag's lockable property to
"true" or if the site property requireLocking is set to
"true"
pageIsLocked is true if the current page is lockable,
the current user has permission to edit it, and if it is actually locked
by someone.
pageIsLockedByCurrentUser is true if the current page is
lockable, and locked by the current user.
userVO represents the current user.
- See Also:
- Serialized Form
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| 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 |
int |
doEndTag()
Evaluate rest of page. |
int |
doStartTag()
If a pageId exists in the request object, then we use it to obtain the
page data. |
java.lang.String |
getId()
|
java.lang.String |
getLockable()
|
void |
setId(java.lang.String id)
|
void |
setLockable(java.lang.String lockable)
|
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TagHead
public TagHead()
setId
public void setId(java.lang.String id)
getId
public java.lang.String getId()
setLockable
public void setLockable(java.lang.String lockable)
getLockable
public java.lang.String getLockable()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- If a pageId exists in the request object, then we use it to obtain the
page data. If not, we obtain the root page for the contentGroupId.
If the current page is locked to the current user, then place the
working copy of the page in the request object.
- Returns:
- Always returns SKIP_BODY since this is a bodyless tag.
- Throws:
javax.servlet.jsp.JspException - Thrown by implemented class.
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Evaluate rest of page.
- Returns:
- Always return EVAL_PAGE.
- Throws:
javax.servlet.jsp.JspException - Thrown by implmented class.