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 int
Default number of items which are checked for change for the "This page" publish dialog.protected CmsObject
The CmsObject for the current user.protected CmsFlexController
The FlexController for the current request.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
Get 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 void
init()
Initializes this formatter tag.void
release()
void
setAddContentInfo
(Boolean doAddInfo) Setter for "addContentInfo", indicating if content information should be added.void
setConfigFile
(Object fileName) Setter for the configuration file.void
setConfigString
(String configString) Setter for the "configString".void
setContentInfoMaxItems
(Integer maxItems) Setter for "contentInfoMaxItems".void
setFileFormat
(String fileFormat) Setter for the file format.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:
-
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:
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
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:
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
-
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.
-
init
Initializes this formatter tag.- Throws:
javax.servlet.jsp.JspException
- in case something goes wrong