Class TranslationPageDAO
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.translationflagging.TranslationPageDAO
- All Implemented Interfaces:
Component,LogEnabled,Serviceable
Translation page DAO
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_cleanPage(ModifiablePage page) Clean a page of its translations data.protected void_setTranslations(ModifiablePage page, Map<String, Page> pages) Set the translations of a page in its data.getTranslations(Page page) Get the translations of a given page.voidservice(ServiceManager smanager) setTranslations(String pageId, Map<String, Page> pages) Set the translations for a specific pageMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
TranslationPageDAO
public TranslationPageDAO()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
setTranslations
Set the translations for a specific page- Parameters:
pageId- The current page idpages- the map of translated page- Returns:
- The list of updated pages.
-
getTranslations
Get the translations of a given page.- Parameters:
page- the page.- Returns:
- the translated pages as a Map of pages, indexed by sitemap name (language).
-
_setTranslations
Set the translations of a page in its data.- Parameters:
page- the page.pages- the translated pages to set.
-
_cleanPage
Clean a page of its translations data.- Parameters:
page- the page to clean.
-