org.infoglue.deliver.taglib.content
Class ContentParameterTag

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

public class ContentParameterTag
extends AbstractTag

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
ContentParameterTag()
          Default constructor.
 
Method Summary
protected  void addContentMap()
          Adds the parameter to the ancestor tag.
 void addContentVersion(java.util.Map contentVersion)
          Add the contentVersion the child tag generated to the list of contentVersions that are to be persisted.
 void clear()
           
 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 setContentPath(java.lang.String contentPath)
          Sets the contentPath attribute.
 void setContentTypeDefinitionId(java.lang.String contentTypeDefinitionId)
          Sets the contentTypeDefinitionId attribute.
 void setName(java.lang.String name)
          Sets the name attribute.
 void setParentContentId(java.lang.String parentContentId)
          Sets the parentContentId attribute.
 void setRepositoryId(java.lang.String repositoryId)
          Sets the repositoryId attribute.
 
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

ContentParameterTag

public ContentParameterTag()
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.

addContentMap

protected void addContentMap()
                      throws javax.servlet.jsp.JspException
Adds the parameter to the ancestor tag.

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

setName

public void setName(java.lang.String name)
             throws javax.servlet.jsp.JspException
Sets the name attribute.

Parameters:
name - the name to use.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating name parameter.

setRepositoryId

public void setRepositoryId(java.lang.String repositoryId)
                     throws javax.servlet.jsp.JspException
Sets the repositoryId attribute.

Parameters:
repositoryId - the repositoryId the content will belong to.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating name parameter.

setParentContentId

public void setParentContentId(java.lang.String parentContentId)
                        throws javax.servlet.jsp.JspException
Sets the parentContentId attribute.

Parameters:
repositoryId - the parentContentId the content the new content will be placed under.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating name parameter.

setContentPath

public void setContentPath(java.lang.String contentPath)
                    throws javax.servlet.jsp.JspException
Sets the contentPath attribute. If the parentContentId is set the path is relative to that. Otherwise calculated from root.

Parameters:
contentPath - the path the new content will be placed under.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating name parameter.

setContentTypeDefinitionId

public void setContentTypeDefinitionId(java.lang.String contentTypeDefinitionId)
                                throws javax.servlet.jsp.JspException
Sets the contentTypeDefinitionId attribute.

Parameters:
contentTypeDefinitionId - the contentTypeDefinitionId the content will be based on.
Throws:
javax.servlet.jsp.JspException - if an error occurs while evaluating name parameter.

addContentVersion

public void addContentVersion(java.util.Map contentVersion)
Add the contentVersion the child tag generated to the list of contentVersions that are to be persisted.


clear

public void clear()


Copyright © 2005 InfoGlue.org All Rights Reserved.