public class TranslationsInputData extends AbstractLogEnabled implements InputData, Serviceable, Contextualizable
InputData
which generates the translations of program and course pages.Modifier and Type | Field and Description |
---|---|
protected AmetysObjectResolver |
_ametysResolver
The ametys object resolver.
|
protected Context |
_context
Avalon context.
|
protected OdfPageResolver |
_odfPageResolver
The ODF page path resolver.
|
Constructor and Description |
---|
TranslationsInputData() |
Modifier and Type | Method and Description |
---|---|
private void |
_saxTranslations(ContentHandler contentHandler,
Map<String,String> translations) |
void |
contextualize(Context context) |
boolean |
isCacheable(Site site,
Page page)
Returns true if this
InputData is cacheable for the current site and if possible page. |
void |
service(ServiceManager manager) |
void |
toSAX(ContentHandler handler)
Generates SAX events for providing data.
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
protected AmetysObjectResolver _ametysResolver
protected OdfPageResolver _odfPageResolver
public TranslationsInputData()
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 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.private void _saxTranslations(ContentHandler contentHandler, Map<String,String> translations) throws SAXException
SAXException