Class CourseSaxer
- java.lang.Object
-
- org.ametys.web.frontoffice.search.metamodel.impl.PageSaxer
-
- org.ametys.plugins.odfweb.service.search.CourseSaxer
-
- All Implemented Interfaces:
ReturnableSaxer
public class CourseSaxer extends PageSaxer
ReturnableSaxer
forCourseReturnable
Note for developpers: This Saxer extends PageSaxer to have access to its protected method #saxContent()
-
-
Field Summary
Fields Modifier and Type Field Description private CourseReturnable
_courseReturnable
-
Fields inherited from class org.ametys.web.frontoffice.search.metamodel.impl.PageSaxer
_pageReturnable
-
-
Constructor Summary
Constructors Constructor Description CourseSaxer(PageReturnable pageReturnable, CourseReturnable courseReturnable)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Optional<CoursePage>
_resolveCoursePage(Course course, Site currentSite)
private void
_saxCourseContent(ContentHandler contentHandler, Course course, org.slf4j.Logger logger, SearchComponentArguments args)
private void
_saxCoursePages(ContentHandler contentHandler, Course course)
private void
_saxCoursePath(ContentHandler contentHandler, List<ProgramItem> coursePath)
boolean
canSax(AmetysObject hit, org.slf4j.Logger logger, SearchComponentArguments args)
Returnstrue
if this saxer is able to SAX the given search hitvoid
sax(ContentHandler contentHandler, AmetysObject hit, org.slf4j.Logger logger, SearchComponentArguments args)
SAX the given search hit-
Methods inherited from class org.ametys.web.frontoffice.search.metamodel.impl.PageSaxer
saxContent, saxRichTextExcerpt
-
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
-
-
-
-
Field Detail
-
_courseReturnable
private CourseReturnable _courseReturnable
-
-
Constructor Detail
-
CourseSaxer
public CourseSaxer(PageReturnable pageReturnable, CourseReturnable courseReturnable)
Constructor- Parameters:
pageReturnable
- The course returnable (needed for superclass)courseReturnable
- The associated returnable on courses
-
-
Method Detail
-
canSax
public boolean canSax(AmetysObject hit, org.slf4j.Logger logger, SearchComponentArguments args)
Description copied from interface:ReturnableSaxer
Returnstrue
if this saxer is able to SAX the given search hit- Specified by:
canSax
in interfaceReturnableSaxer
- Overrides:
canSax
in classPageSaxer
- 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, org.slf4j.Logger logger, SearchComponentArguments args) throws SAXException
Description copied from interface:ReturnableSaxer
SAX the given search hit- Specified by:
sax
in interfaceReturnableSaxer
- Overrides:
sax
in classPageSaxer
- Parameters:
contentHandler
- The content handlerhit
- The search hitlogger
- A loggerargs
- The other arguments- Throws:
SAXException
- if a SAX error occured
-
_resolveCoursePage
private Optional<CoursePage> _resolveCoursePage(Course course, Site currentSite)
-
_saxCourseContent
private void _saxCourseContent(ContentHandler contentHandler, Course course, org.slf4j.Logger logger, SearchComponentArguments args) throws SAXException
- Throws:
SAXException
-
_saxCoursePages
private void _saxCoursePages(ContentHandler contentHandler, Course course) throws SAXException
- Throws:
SAXException
-
_saxCoursePath
private void _saxCoursePath(ContentHandler contentHandler, List<ProgramItem> coursePath) throws SAXException
- Throws:
SAXException
-
-