Package org.opencms.jsp.search.result
Class CmsSearchResourceBean
java.lang.Object
org.opencms.jsp.search.result.CmsSearchResourceBean
- All Implemented Interfaces:
I_CmsSearchResourceBean
JSP EL friendly wrapper class for a single search result (document).
-
Constructor Summary
ConstructorDescriptionCmsSearchResourceBean
(CmsSearchResource searchResource, CmsObject cms) Constructor taking the search resource to wrap. -
Method Summary
Modifier and TypeMethodDescriptionReturns the map from field names to field values for date fields.Returns the map from field names to field values for string fields.Returns the map from field names to field values for multi-valued (string) fields.Returns the wrapped CmsSearchResource (to access the CmsResource).Reads the resource and allows content access in the current request language - in case of an XML content.Reads the resource and allows content access in the specified language - in case of an XML content.
-
Constructor Details
-
CmsSearchResourceBean
Constructor taking the search resource to wrap.- Parameters:
searchResource
- The search resource to wrap.cms
- The Cms object, used to read resources.
-
-
Method Details
-
getDateFields
Description copied from interface:I_CmsSearchResourceBean
Returns the map from field names to field values for date fields.- Specified by:
getDateFields
in interfaceI_CmsSearchResourceBean
- Returns:
- The map from field names to field values for date fields.
- See Also:
-
getFields
Description copied from interface:I_CmsSearchResourceBean
Returns the map from field names to field values for string fields.- Specified by:
getFields
in interfaceI_CmsSearchResourceBean
- Returns:
- The map from field names to field values for string fields.
- See Also:
-
getMultiValuedFields
Description copied from interface:I_CmsSearchResourceBean
Returns the map from field names to field values for multi-valued (string) fields.- Specified by:
getMultiValuedFields
in interfaceI_CmsSearchResourceBean
- Returns:
- The map from field names to field values for multi-valued (string) fields.
- See Also:
-
getSearchResource
Description copied from interface:I_CmsSearchResourceBean
Returns the wrapped CmsSearchResource (to access the CmsResource).- Specified by:
getSearchResource
in interfaceI_CmsSearchResourceBean
- Returns:
- The wrapped CmsSearchResource.
- See Also:
-
getXmlContent
Description copied from interface:I_CmsSearchResourceBean
Reads the resource and allows content access in the current request language - in case of an XML content. If the resource is not an XML content, it returns null.- Specified by:
getXmlContent
in interfaceI_CmsSearchResourceBean
- Returns:
- The XML content or null.
- See Also:
-
getXmlContentInLocale
Description copied from interface:I_CmsSearchResourceBean
Reads the resource and allows content access in the specified language - in case of an XML content. If the resource is not an XML content, it returns null.- Specified by:
getXmlContentInLocale
in interfaceI_CmsSearchResourceBean
- Returns:
- The XML content or null.
- See Also:
-