Class CourseInputData
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.odfweb.inputdata.CourseInputData
- All Implemented Interfaces:
LogEnabled,InputData,Initializable,Contextualizable,Serviceable
public class CourseInputData
extends AbstractLogEnabled
implements InputData, Contextualizable, Initializable, Serviceable
InputData for SAXing the list of programs having the current course among their courseLists-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe ametys object resolver.protected ContextAvalon context.protected ODFHelperThe ODF helperprotected OdfPageHandlerThe root handlerprotected OdfReferenceTableHelperThe ODF reference table helperprotected SiteManagerCMS Sites manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(Context context) voidbooleanisCacheable(Site site, Page page) Returns true if thisInputDatais cacheable for the current site and if possible page.voidsaxProgram(Program program, ContentHandler contentHandler) SAX a program.voidservice(ServiceManager manager) voidtoSAX(ContentHandler handler) Generates SAX events for providing data.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.web.inputdata.InputData
shouldBeCached
-
Field Details
-
_context
Avalon context. -
_ametysResolver
The ametys object resolver. -
_siteManager
CMS Sites manager -
_odfPageHandler
The root handler -
_odfRefTableHelper
The ODF reference table helper -
_odfHelper
The ODF helper
-
-
Constructor Details
-
CourseInputData
public CourseInputData()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
initialize
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
isCacheable
Description copied from interface:InputDataReturns true if thisInputDatais cacheable for the current site and if possible page.- Specified by:
isCacheablein interfaceInputData- Parameters:
site- the currentSite.page- the currentPage. Can be null.- Returns:
- true if this
InputDatais cacheable for the current site or page.
-
toSAX
Description copied from interface:InputDataGenerates SAX events for providing data.- Specified by:
toSAXin interfaceInputData- Parameters:
handler- the content handler to SAX into.- Throws:
SAXException- if an error occurs while SAXing.ProcessingException- if an error occurs during processing.
-
saxProgram
public void saxProgram(Program program, ContentHandler contentHandler) throws SAXException, IOException SAX a program.- Parameters:
program- The program to SAX.contentHandler- the content handler- Throws:
SAXException- If an error occurs while SAXingIOException- If an error occurs while retrieving content.
-