Class PageSaxer
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.PageSaxer
- All Implemented Interfaces:
ReturnableSaxer
- Direct Known Subclasses:
CourseSaxer
,ProgramSaxer
,UserPageReturnable.UserSaxer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSax
(AmetysObject hit, Logger logger, SearchComponentArguments args) Returnstrue
if this saxer is able to SAX the given search hitvoid
sax
(ContentHandler contentHandler, AmetysObject hit, Logger logger, SearchComponentArguments args) SAX the given search hitprotected void
saxContent
(Content content, String viewName, Locale defaultLocale, ContentHandler contentHandler, Logger logger) SAX the view of a content if existsprotected void
saxRichTextExcerpt
(String path, String contentId, Object richText, ContentHandler contentHandler, Logger logger) SAX excerpt for rich textMethods 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
-
Field Details
-
_pageReturnable
The associated returnable on pages
-
-
Constructor Details
-
PageSaxer
Constructor- Parameters:
pageReturnable
- The associated returnable on pages
-
-
Method Details
-
canSax
Description copied from interface:ReturnableSaxer
Returnstrue
if this saxer is able to SAX the given search hit- Specified by:
canSax
in interfaceReturnableSaxer
- Parameters:
hit
- The search hitlogger
- A loggerargs
- The other arguments- Returns:
true
if this saxer is able to SAX the given search hit
-
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
- Parameters:
contentHandler
- The content handlerhit
- The search hitlogger
- A loggerargs
- The other arguments- Throws:
SAXException
- if a SAX error occured
-
saxContent
protected void saxContent(Content content, String viewName, Locale defaultLocale, ContentHandler contentHandler, Logger logger) throws SAXException SAX the view of a content if exists- Parameters:
content
- the contentviewName
- The name of view to saxdefaultLocale
- The locale to use to sax localized values such as multilingual content or multilingual string. Only use if initial content's language is not null.contentHandler
- The content handlerlogger
- The logger- Throws:
SAXException
- if an exception occurs while saxing
-
saxRichTextExcerpt
protected void saxRichTextExcerpt(String path, String contentId, Object richText, ContentHandler contentHandler, Logger logger) SAX excerpt for rich text- Parameters:
path
- The richText pathcontentId
- The content idrichText
- The rich textcontentHandler
- The content handlerlogger
- The logger
-