org.infoglue.deliver.taglib.content
Class ContentVersionParameterTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.infoglue.deliver.taglib.AbstractTag
          extended by org.infoglue.deliver.taglib.content.ContentVersionParameterTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, ContentVersionParameterInterface

public class ContentVersionParameterTag
extends AbstractTag
implements ContentVersionParameterInterface

This class implements the <common:parameter> tag, which adds a parameter to the parameters of the parent tag. Note! This tag must have a <common:urlBuilder> ancestor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
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
ContentVersionParameterTag()
          Default constructor.
 
Method Summary
protected  void addContentVersion()
          Adds the content version to the ancestor tag.
 void addContentVersionAttribute(java.lang.String name, java.lang.String value)
          Adds the content version attribute to the contentVersion Value.
 void addDigitalAsset(RemoteAttachment remoteAttachment)
          Adds the content version attribute to the contentVersion Value.
 int doEndTag()
          Adds a parameter with the specified name and value to the parameters of the parent tag.
 int doStartTag()
          Initializes the parameters to make it accessible for the children tags (if any).
 void setAllowExternalLinks(java.lang.String allowExternalLinks)
           
 void setAllowHTMLContent(java.lang.String allowHTMLContent)
           
 void setLanguageId(java.lang.String languageId)
           
 void setStateId(java.lang.String stateId)
           
 
Methods inherited from class org.infoglue.deliver.taglib.AbstractTag
evaluate, evaluateCollection, evaluateInteger, evaluateList, evaluateString, produceResult, setId, setResultAttribute, write
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, 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
 

Constructor Detail

ContentVersionParameterTag

public ContentVersionParameterTag()
Default constructor.

Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Initializes the parameters to make it accessible for the children tags (if any).

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
indication of whether to evaluate the body or not.
Throws:
javax.servlet.jsp.JspException - if an error occurred while processing this tag.

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Adds a parameter with the specified name and value to the parameters of the parent tag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
indication of whether to continue evaluating the JSP page.
Throws:
javax.servlet.jsp.JspException - if an error occurred while processing this tag.

addContentVersion

protected void addContentVersion()
                          throws javax.servlet.jsp.JspException
Adds the content version to the ancestor tag.

Throws:
javax.servlet.jsp.JspException - if the ancestor tag isn't a url tag.

addContentVersionAttribute

public void addContentVersionAttribute(java.lang.String name,
                                       java.lang.String value)
                                throws javax.servlet.jsp.JspException
Adds the content version attribute to the contentVersion Value.

Specified by:
addContentVersionAttribute in interface ContentVersionParameterInterface
Throws:
javax.servlet.jsp.JspException - if the ancestor tag isn't a url tag.

addDigitalAsset

public void addDigitalAsset(RemoteAttachment remoteAttachment)
                     throws javax.servlet.jsp.JspException
Adds the content version attribute to the contentVersion Value.

Specified by:
addDigitalAsset in interface ContentVersionParameterInterface
Throws:
javax.servlet.jsp.JspException - if the ancestor tag isn't a url tag.

setLanguageId

public void setLanguageId(java.lang.String languageId)
                   throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setStateId

public void setStateId(java.lang.String stateId)
                throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setAllowHTMLContent

public void setAllowHTMLContent(java.lang.String allowHTMLContent)
                         throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setAllowExternalLinks

public void setAllowExternalLinks(java.lang.String allowExternalLinks)
                           throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException


Copyright © 2005 InfoGlue.org All Rights Reserved.