Package org.ametys.cms.search.cocoon
Class ContentResultSetHelper
java.lang.Object
org.ametys.cms.search.cocoon.ContentResultSetHelper
- All Implemented Interfaces:
Component
Helper to genrate SAX event for result of a search based on the requested result fields.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
saxResultFields
(ContentHandler contentHandler, Content content, Collection<? extends ResultField> fields, Locale defaultLocale) Deprecated.void
viewToSAX
(ContentHandler contentHandler, Content content, View view, Locale defaultLocale) Generates SAX events for the items in the content's view.
-
Field Details
-
ROLE
Avalon Role.
-
-
Constructor Details
-
ContentResultSetHelper
public ContentResultSetHelper()
-
-
Method Details
-
viewToSAX
public void viewToSAX(ContentHandler contentHandler, Content content, View view, Locale defaultLocale) throws AmetysRepositoryException, SAXException, IOException Generates SAX events for the items in the content's view. This method does not check rights.- Parameters:
contentHandler
- the content handler where to SAX into.content
- the content.view
- the view.defaultLocale
- The locale to use to sax localized values such as multilingual content or multilingual string. Only to be valued if initial content's language is null, otherwise set this parameter to null.- Throws:
AmetysRepositoryException
- if an error occurs.SAXException
- if an error occurs.IOException
- if an error occurs.
-
saxResultFields
@Deprecated public void saxResultFields(ContentHandler contentHandler, Content content, Collection<? extends ResultField> fields, Locale defaultLocale) throws AmetysRepositoryException, SAXException, IOException Deprecated.useviewToSAX(ContentHandler, Content, View, Locale)
insteadGenerates SAX events for the result fields of a content. This method does not check rights.- Parameters:
contentHandler
- the content handler where to SAX into.content
- the content.fields
- the result fields.defaultLocale
- The locale to use to sax localized values such as multilingual content or multilingual string. Only to be valued if initial content's language is null, otherwise set this parameter to null.- Throws:
AmetysRepositoryException
- if an error occurs.SAXException
- if an error occurs.IOException
- if an error occurs.
-
viewToSAX(ContentHandler, Content, View, Locale)
instead