Class CalendarContentSaxer
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.ContentSaxer
org.ametys.plugins.calendar.search.CalendarContentSaxer
- All Implemented Interfaces:
ReturnableSaxer
-
Field Summary
Fields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSaxer
_contentReturnable, _contentTypes, _cTypesHelper, _view
-
Constructor Summary
ConstructorDescriptionCalendarContentSaxer
(AbstractContentBasedReturnable contentReturnable, String view, ContentTypesHelper cTypesHelper, Collection<String> contentTypes) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected Locale
getDefaultLocale
(Request request, SearchComponentArguments args) Get the default localevoid
sax
(ContentHandler contentHandler, AmetysObject hit, Logger logger, SearchComponentArguments args) SAX the given search hitprotected void
saxHtmlView
(ContentHandler contentHandler, Content content, SearchComponentArguments args, Logger logger) SAX content html viewprotected void
saxTags
(Content content, ContentHandler contentHandler) Generates SAX events for tags.Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.ContentSaxer
canSax
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.web.frontoffice.search.metamodel.ReturnableSaxer
getIdentifier
-
Constructor Details
-
CalendarContentSaxer
public CalendarContentSaxer(AbstractContentBasedReturnable contentReturnable, String view, ContentTypesHelper cTypesHelper, Collection<String> contentTypes) Constructor- Parameters:
contentReturnable
- The associated returnable on contentsview
- The view for SAXing contentscTypesHelper
- theContentTypesHelper
contentTypes
- the allowed content types
-
-
Method Details
-
sax
public void sax(ContentHandler contentHandler, AmetysObject hit, Logger logger, SearchComponentArguments args) throws SAXException Description copied from interface:ReturnableSaxer
SAX the given search hit- Specified by:
sax
in interfaceReturnableSaxer
- Overrides:
sax
in classContentSaxer
- Parameters:
contentHandler
- The content handlerhit
- The search hitlogger
- A loggerargs
- The other arguments- Throws:
SAXException
- if a SAX error occured
-
getDefaultLocale
Get the default locale- Parameters:
request
- the requestargs
- the search arguments- Returns:
- the default locale
-
saxHtmlView
protected void saxHtmlView(ContentHandler contentHandler, Content content, SearchComponentArguments args, Logger logger) throws SAXException SAX content html view- Parameters:
contentHandler
- the content handlercontent
- the contentargs
- the search argumentslogger
- the logger- Throws:
SAXException
- if an error occurred while saxing
-
saxTags
Generates SAX events for tags.- Parameters:
content
- theWebContent
.contentHandler
- the ContentHandler receving SAX events.- Throws:
SAXException
- if an error occurs during the SAX events generation.
-