public class CmsJspTagSearch extends CmsJspScopedVarBodyTagSuport implements I_CmsCollectorPublishListProvider
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONTENTINFO_ROWS
Default number of items which are checked for change for the "This page" publish dialog.
|
protected CmsObject |
m_cms
The CmsObject for the current user.
|
protected CmsFlexController |
m_controller
The FlexController for the current request.
|
| Constructor and Description |
|---|
CmsJspTagSearch()
Empty constructor, required for JSP tags.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag() |
java.lang.Object |
getConfigFile()
Get the value of the specified configuration file (given via the tag's "configFile" attribute).
|
java.lang.String |
getConfigString()
Getter for the "configString".
|
java.lang.String |
getFileFormat()
Get the value of the specified format of the configuration file (given via the tag's "fileFormat" attribute).
|
java.util.Set<CmsResource> |
getPublishResources(CmsObject cms,
I_CmsContentLoadCollectorInfo info)
Gets the publish list for the collector.
|
static java.util.Set<CmsResource> |
getPublishResourcesInternal(CmsObject cms,
I_CmsContentLoadCollectorInfo info) |
protected void |
init()
Initializes this formatter tag.
|
void |
release() |
void |
setAddContentInfo(java.lang.Boolean doAddInfo)
Setter for "addContentInfo", indicating if content information should be added.
|
void |
setConfigFile(java.lang.Object fileName)
Setter for the configuration file.
|
void |
setConfigString(java.lang.String configString)
Setter for the "configString".
|
void |
setContentInfoMaxItems(java.lang.Integer maxItems)
Setter for "contentInfoMaxItems".
|
void |
setFileFormat(java.lang.String fileFormat)
Setter for the file format.
|
getScope, getScopeAsInt, getScopeAsString, getScopeInt, getVar, isScopeVarSet, setScope, setVar, storeAttribute, storeAttributedoAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic static final int DEFAULT_CONTENTINFO_ROWS
protected CmsFlexController m_controller
public CmsJspTagSearch()
public static java.util.Set<CmsResource> getPublishResourcesInternal(CmsObject cms, I_CmsContentLoadCollectorInfo info) throws CmsException
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionBodyTagSupport.doEndTag()public int doStartTag() throws javax.servlet.jsp.JspException, CmsIllegalArgumentException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionCmsIllegalArgumentExceptionTag.doStartTag()public java.lang.Object getConfigFile()
public java.lang.String getConfigString()
public java.lang.String getFileFormat()
public java.util.Set<CmsResource> getPublishResources(CmsObject cms, I_CmsContentLoadCollectorInfo info) throws CmsException
I_CmsCollectorPublishListProvidergetPublishResources in interface I_CmsCollectorPublishListProvidercms - the CMS context to useinfo - the collector informationCmsException - if soemthing goes wrongI_CmsCollectorPublishListProvider.getPublishResources(org.opencms.file.CmsObject, org.opencms.gwt.shared.I_CmsContentLoadCollectorInfo)public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class CmsJspScopedVarBodyTagSuportTag.release()public void setAddContentInfo(java.lang.Boolean doAddInfo)
doAddInfo - The value of the "addContentInfo" attribute of the tagpublic void setConfigFile(java.lang.Object fileName)
fileName - Name of the configuration file to use for the search.public void setConfigString(java.lang.String configString)
configString - The "configString".public void setContentInfoMaxItems(java.lang.Integer maxItems)
maxItems - number of items to maximally check for alterations.public void setFileFormat(java.lang.String fileFormat)
fileFormat - File format the configuration file is in.protected void init() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - in case something goes wrong