info.magnolia.cms.taglibs
Class PublicOnly

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.jstl.core.ConditionalTagSupport
          extended by info.magnolia.cms.taglibs.PublicOnly
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class PublicOnly
extends javax.servlet.jsp.jstl.core.ConditionalTagSupport

Everything between publicOnly tags will only be shown on the public instance.

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
Sameer Charles, Fabrizio Giustina
See Also:
Serialized Form

Field Summary
 
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
 
Constructor Summary
PublicOnly()
           
 
Method Summary
protected  boolean condition()
           
 void release()
           
 void setShowInPreview(boolean showInPreview)
          Also show content in preview mode.
 
Methods inherited from class javax.servlet.jsp.jstl.core.ConditionalTagSupport
doStartTag, setScope, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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
 

Constructor Detail

PublicOnly

public PublicOnly()
Method Detail

setShowInPreview

public void setShowInPreview(boolean showInPreview)
Also show content in preview mode. Default is false.


condition

protected boolean condition()
Specified by:
condition in class javax.servlet.jsp.jstl.core.ConditionalTagSupport

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.jstl.core.ConditionalTagSupport


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.