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
InputDatawhich generates the translations of program and course pages.
-
-
Field Summary
Fields Modifier and Type Field Description protected AmetysObjectResolver_ametysResolverThe ametys object resolver.protected Context_contextAvalon context.protected OdfPageResolver_odfPageResolverThe ODF page path resolver.
-
Constructor Summary
Constructors Constructor Description TranslationsInputData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextualize(Context context)booleanisCacheable(Site site, Page page)Returns true if thisInputDatais cacheable for the current site and if possible page.voidservice(ServiceManager manager)voidtoSAX(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 Detail
-
_ametysResolver
protected AmetysObjectResolver _ametysResolver
The ametys object resolver.
-
_odfPageResolver
protected OdfPageResolver _odfPageResolver
The ODF page path resolver.
-
-
Constructor Detail
-
TranslationsInputData
public TranslationsInputData()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
isCacheable
public boolean isCacheable(Site site, Page page)
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
public void toSAX(ContentHandler handler) throws SAXException, ProcessingException
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.
-
-