Package org.opencms.jsp
Class CmsJspTagSimpleSearch
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opencms.jsp.CmsJspScopedVarBodyTagSuport
org.opencms.jsp.CmsJspTagSimpleSearch
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
,I_CmsCollectorPublishListProvider
public class CmsJspTagSimpleSearch
extends CmsJspScopedVarBodyTagSuport
implements I_CmsCollectorPublishListProvider
This tag is used to easily create a search form for a Solr search within a JSP.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Default number of items which are checked for change for the "This page" publish dialog.Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
int
Returns the value of the specified configuration file (given via the tag's "configFile" attribute).Returns the "configString".Gets the publish list for the collector.static Set<CmsResource>
void
release()
void
setAddContentInfo
(Boolean doAddInfo) Setter for "addContentInfo", indicating if content information should be added.void
setAdditionalConfigs
(Object additionalConfigs) Setter for the "additionalConfigs".void
setConfigFile
(String fileName) Setter for the configuration file.void
setConfigString
(String configString) Setter for the "configString".void
setContentInfoMaxItems
(Integer maxItems) Setter for "contentInfoMaxItems".Methods inherited from class org.opencms.jsp.CmsJspScopedVarBodyTagSuport
getScope, getScopeAsInt, getScopeAsString, getScopeInt, getVar, isScopeVarSet, setScope, setVar, storeAttribute, storeAttribute
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Field Details
-
DEFAULT_CONTENTINFO_ROWS
Default number of items which are checked for change for the "This page" publish dialog.- See Also:
-
-
Constructor Details
-
CmsJspTagSimpleSearch
public CmsJspTagSimpleSearch()
-
-
Method Details
-
doEndTag
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
- See Also:
-
BodyTagSupport.doEndTag()
-
doStartTag
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
CmsIllegalArgumentException
- See Also:
-
Tag.doStartTag()
-
getConfigFile
Returns the value of the specified configuration file (given via the tag's "configFile" attribute).- Returns:
- the config file
-
getConfigString
Returns the "configString".- Returns:
- the "configString"
-
release
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classCmsJspScopedVarBodyTagSuport
- See Also:
-
Tag.release()
-
setAddContentInfo
Setter for "addContentInfo", indicating if content information should be added.- Parameters:
doAddInfo
- The value of the "addContentInfo" attribute of the tag
-
setAdditionalConfigs
Setter for the "additionalConfigs".- Parameters:
additionalConfigs
- The "additionalConfigs".
-
setConfigFile
Setter for the configuration file.- Parameters:
fileName
- Name of the configuration file to use for the search.
-
setConfigString
Setter for the "configString".- Parameters:
configString
- The "configString".
-
setContentInfoMaxItems
Setter for "contentInfoMaxItems".- Parameters:
maxItems
- number of items to maximally check for alterations.