Package org.opencms.jsp
Class CmsJspTagSearch
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opencms.jsp.CmsJspScopedVarBodyTagSuport
org.opencms.jsp.CmsJspTagSearch
- 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 CmsJspTagSearch
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 intDefault number of items which are checked for change for the "This page" publish dialog.protected CmsObjectThe CmsObject for the current user.protected CmsFlexControllerThe FlexController for the current request.Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()intGet the value of the specified configuration file (given via the tag's "configFile" attribute).Getter for the "configString".Get the value of the specified format of the configuration file (given via the tag's "fileFormat" attribute).Gets the publish list for the collector.static Set<CmsResource> protected voidinit()Initializes this formatter tag.voidrelease()voidsetAddContentInfo(Boolean doAddInfo) Setter for "addContentInfo", indicating if content information should be added.voidsetConfigFile(Object fileName) Setter for the configuration file.voidsetConfigString(String configString) Setter for the "configString".voidsetContentInfoMaxItems(Integer maxItems) Setter for "contentInfoMaxItems".voidsetFileFormat(String fileFormat) Setter for the file format.voidsetIgnoreSearchExclude(Boolean ignoreSearchExclude) Setter for the "ignoreSearchExclude".Methods inherited from class org.opencms.jsp.CmsJspScopedVarBodyTagSuport
getScope, getScopeAsInt, getScopeAsString, getScopeInt, getVar, isScopeVarSet, setScope, setVar, storeAttribute, storeAttributeMethods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentMethods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
-
m_cms
The CmsObject for the current user. -
m_controller
The FlexController for the current request.
-
-
Constructor Details
-
CmsJspTagSearch
public CmsJspTagSearch()Empty constructor, required for JSP tags.
-
-
Method Details
-
doEndTag
- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
javax.servlet.jsp.JspException- See Also:
-
doStartTag
- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
javax.servlet.jsp.JspExceptionCmsIllegalArgumentException- See Also:
-
getConfigFile
Get the value of the specified configuration file (given via the tag's "configFile" attribute).- Returns:
- The config file.
-
getConfigString
Getter for the "configString".- Returns:
- The "configString".
-
getFileFormat
Get the value of the specified format of the configuration file (given via the tag's "fileFormat" attribute).- Returns:
- The file format.
-
release
- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classCmsJspScopedVarBodyTagSuport- See Also:
-
setAddContentInfo
Setter for "addContentInfo", indicating if content information should be added.- Parameters:
doAddInfo- The value of the "addContentInfo" attribute of the tag
-
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.
-
setFileFormat
Setter for the file format.- Parameters:
fileFormat- File format the configuration file is in.
-
setIgnoreSearchExclude
Setter for the "ignoreSearchExclude".- Parameters:
ignoreSearchExclude- The "ignoreSearchExclude".
-
init
Initializes this formatter tag.- Throws:
javax.servlet.jsp.JspException- in case something goes wrong