public class CourseInputData extends AbstractLogEnabled implements InputData, Contextualizable, Initializable, Serviceable
InputData
for SAXing the list of programs having the current course among their courseListsModifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_ametysResolver
The ametys object resolver.
|
protected Context |
_context
Avalon context.
|
private boolean |
_isActive
Configuration boolean to active or not the inputdata
|
protected OdfPageHandler |
_odfPageHandler
The root handler
|
protected OdfReferenceTableHelper |
_odfRefTableHelper
The ODF reference table helper
|
protected SiteManager |
_siteManager
CMS Sites manager
|
Constructor and Description |
---|
CourseInputData() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(Context context) |
void |
initialize() |
boolean |
isCacheable(Site site,
Page page)
Returns true if this
InputData is cacheable for the current site and if possible page. |
void |
saxProgram(Program program,
ContentHandler contentHandler)
SAX a program.
|
void |
service(ServiceManager manager) |
void |
toSAX(ContentHandler handler)
Generates SAX events for providing data.
|
getLogger, setLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldBeCached
protected AmetysObjectResolver _ametysResolver
protected SiteManager _siteManager
protected OdfPageHandler _odfPageHandler
protected OdfReferenceTableHelper _odfRefTableHelper
private boolean _isActive
public CourseInputData()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public boolean isCacheable(Site site, Page page)
InputData
InputData
is cacheable for the current site and if possible page.isCacheable
in interface InputData
site
- the current Site
.page
- the current Page
. Can be null.InputData
is cacheable for the current site or page.public void toSAX(ContentHandler handler) throws SAXException, ProcessingException
InputData
toSAX
in interface InputData
handler
- the content handler to SAX into.SAXException
- if an error occurs while SAXing.ProcessingException
- if an error occurs during processing.public void saxProgram(Program program, ContentHandler contentHandler) throws SAXException, IOException
program
- The program to SAX.contentHandler
- the content handlerSAXException
- If an error occurs while SAXingIOException
- If an error occurs while retrieving content.