Class QuickSearchTagHelper
- java.lang.Object
-
- com.microstrategy.web.app.taglibs.CoreTagHelper
-
- com.microstrategy.web.app.taglibs.MstrPageTagHelper
-
- com.microstrategy.web.app.taglibs.AbstractNoBodyTagHelper
-
- com.microstrategy.web.app.taglibs.QuickSearchTagHelper
-
public class QuickSearchTagHelper extends AbstractNoBodyTagHelper
Helper for theQuickSearchTag
tag library.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.taglibs.MstrPageTagHelper
_mstrPage
-
-
Constructor Summary
Constructors Constructor Description QuickSearchTagHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanState()
Resets the state of the tag library, by cleaning the values of the properties initialized for this tag.MarkupOutput
getContent()
Obtains the contents to render based on the attributes that have been defined (if existing).protected java.lang.String
getObjectTypes()
Returns a comma separated list of object-types.protected java.lang.String
getPreferenceSharedReportsFolderID()
Returns the value of the admin preference for shared reports, or null if it has not been set.protected java.lang.String
getRootFolderId()
Returns the id of the folder to be used as root for searching.protected int
getSysFolder()
Returns the system folder name as defined inEnumDSSXMLFolderNames
to be used as root for searching.void
setObjectTypes(java.lang.String value)
Sets the list of object-types used for searching.void
setRootFolderId(java.lang.String value)
Sets the id of the folder to be used as root for searching.void
setSysFolder(java.lang.String sysFolder)
Sets the system folder name as defined inEnumDSSXMLFolderNames
to be used as root for searching.-
Methods inherited from class com.microstrategy.web.app.taglibs.MstrPageTagHelper
getContainerServices, newHiddenInputBuilder, newURIBuilder, resolveNumericAttribute, setPageComponent
-
Methods inherited from class com.microstrategy.web.app.taglibs.CoreTagHelper
getTagsFactory
-
-
-
-
Method Detail
-
cleanState
public void cleanState()
Resets the state of the tag library, by cleaning the values of the properties initialized for this tag.- Overrides:
cleanState
in classMstrPageTagHelper
- Since:
- MicroStrategy Web 9.0.0
-
getContent
public MarkupOutput getContent() throws java.io.IOException
Obtains the contents to render based on the attributes that have been defined (if existing).- Specified by:
getContent
in classAbstractNoBodyTagHelper
- Returns:
- a
MarkupOutput
instance initialized with the contents to display - Throws:
java.io.IOException
- if an error happens while getting the contents to render.
-
setObjectTypes
public void setObjectTypes(java.lang.String value)
Sets the list of object-types used for searching. This must be a comma separated list of object-types. Valid object types are those from theEnumDSSXMLObjectSubTypes
orEnumDSSXMLObjectTypes
enumerations.- Since:
- MicroStrategy Web 9.0.0
-
getObjectTypes
protected java.lang.String getObjectTypes()
Returns a comma separated list of object-types. If this parameter is not explicitly set, this method will return the default list of object types, that is: reports, documents and folders.- Since:
- MicroStrategy Web 9.0.0
-
setRootFolderId
public void setRootFolderId(java.lang.String value)
Sets the id of the folder to be used as root for searching. This must be a valid id of a folder existing in the md.- Since:
- MicroStrategy Web 9.0.0
-
getRootFolderId
protected java.lang.String getRootFolderId()
Returns the id of the folder to be used as root for searching. If this parameter has not been explicitly set, it will be calculated based on the application context.- Since:
- MicroStrategy Web 9.0.0
-
getSysFolder
protected int getSysFolder()
Returns the system folder name as defined inEnumDSSXMLFolderNames
to be used as root for searching. When a folder-id is also set, this method will return "0". If shared-reports has been set, this method might return "0" if the admin has configured a custom folder for shared reports.
If this parameter has not been explicitly set, it will be calculated based on the application context.- Since:
- MicroStrategy Web 9.0.0
-
setSysFolder
public void setSysFolder(java.lang.String sysFolder)
Sets the system folder name as defined inEnumDSSXMLFolderNames
to be used as root for searching. When a non-system folder should be used, this value must be set to "0". Assigning any other value will clear the root folder id parameter.- Since:
- MicroStrategy Web 9.0.0
- See Also:
getSysFolder()
-
getPreferenceSharedReportsFolderID
protected java.lang.String getPreferenceSharedReportsFolderID()
Returns the value of the admin preference for shared reports, or null if it has not been set.- Since:
- MicroStrategy Web 9.0.0
-
-