Package lumis.portal.localization
Class CustomStringLocalizationDaoJdbc
- java.lang.Object
-
- lumis.portal.localization.CustomStringLocalizationDaoJdbc
-
- All Implemented Interfaces:
ICustomStringLocalizationDao
,IStringLocalizationDao
public class CustomStringLocalizationDaoJdbc extends Object implements ICustomStringLocalizationDao
DAO class that read custom strings from database- Since:
- 4.0.0
- Version:
- $Revision: 17606 $ $Date: 2015-07-24 10:56:40 -0300 (Fri, 24 Jul 2015) $
-
-
Constructor Summary
Constructors Constructor Description CustomStringLocalizationDaoJdbc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrUpdate(CustomStringConfig customStringConfig, ITransaction transaction)
Add or Update the specified custom stringvoid
delete(String customStringId, ITransaction transaction)
Delete CustomStringCustomStringConfig
get(String customStringId, ITransaction transaction)
Get the CustomString objectString
getIdByStringInfo(CustomStringConfig customStringConfig, ITransaction transaction)
Get CustomStringId from stringId, resourcePath and localeCodeMap<String,String>
getStringTable(String resourcePath, Locale locale, List<ITheme> themes)
Get the string table of the string localization.
-
-
-
Method Detail
-
getStringTable
public Map<String,String> getStringTable(String resourcePath, Locale locale, List<ITheme> themes) throws PortalException
Description copied from interface:IStringLocalizationDao
Get the string table of the string localization.- Specified by:
getStringTable
in interfaceIStringLocalizationDao
- Parameters:
resourcePath
- the path of the resources to search within for the stringslocale
- the locale to use when searching for the stringsthemes
- the themes to search within for strings, they are expected to be in the search order- Returns:
- the string table with all found localized strings
- Throws:
PortalException
-
addOrUpdate
public void addOrUpdate(CustomStringConfig customStringConfig, ITransaction transaction) throws PortalException
Description copied from interface:ICustomStringLocalizationDao
Add or Update the specified custom string- Specified by:
addOrUpdate
in interfaceICustomStringLocalizationDao
- Throws:
PortalException
-
get
public CustomStringConfig get(String customStringId, ITransaction transaction) throws PortalException
Description copied from interface:ICustomStringLocalizationDao
Get the CustomString object- Specified by:
get
in interfaceICustomStringLocalizationDao
- Returns:
- Throws:
PortalException
-
delete
public void delete(String customStringId, ITransaction transaction) throws PortalException
Description copied from interface:ICustomStringLocalizationDao
Delete CustomString- Specified by:
delete
in interfaceICustomStringLocalizationDao
- Throws:
PortalException
-
getIdByStringInfo
public String getIdByStringInfo(CustomStringConfig customStringConfig, ITransaction transaction) throws PortalException
Description copied from interface:ICustomStringLocalizationDao
Get CustomStringId from stringId, resourcePath and localeCode- Specified by:
getIdByStringInfo
in interfaceICustomStringLocalizationDao
- Returns:
- Throws:
PortalException
-
-