Class TranslationsInputData
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.odfweb.inputdata.TranslationsInputData
- All Implemented Interfaces:
LogEnabled
,InputData
,Contextualizable
,Serviceable
public class TranslationsInputData
extends AbstractLogEnabled
implements InputData, Serviceable, Contextualizable
InputData
which generates the translations of program and course pages.-
Field Summary
Modifier and TypeFieldDescriptionprotected AmetysObjectResolver
The ametys object resolver.protected Context
Avalon context.protected OdfPageResolver
The ODF page path resolver. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) boolean
isCacheable
(Site site, Page page) Returns true if thisInputData
is cacheable for the current site and if possible page.void
service
(ServiceManager manager) void
toSAX
(ContentHandler handler) Generates SAX events for providing data.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
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.inputdata.InputData
shouldBeCached
-
Field Details
-
_context
Avalon context. -
_ametysResolver
The ametys object resolver. -
_odfPageResolver
The ODF page path resolver.
-
-
Constructor Details
-
TranslationsInputData
public TranslationsInputData()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
isCacheable
Description copied from interface:InputData
Returns true if thisInputData
is cacheable for the current site and if possible page.- Specified by:
isCacheable
in interfaceInputData
- Parameters:
site
- the currentSite
.page
- the currentPage
. Can be null.- Returns:
- true if this
InputData
is cacheable for the current site or page.
-
toSAX
Description copied from interface:InputData
Generates SAX events for providing data.- Specified by:
toSAX
in interfaceInputData
- Parameters:
handler
- the content handler to SAX into.- Throws:
SAXException
- if an error occurs while SAXing.ProcessingException
- if an error occurs during processing.
-