Package lumis.portal.localization
Class CustomStringLocalizationDaoJdbc
- java.lang.Object
-
- lumis.portal.localization.CustomStringLocalizationDaoJdbc
-
- All Implemented Interfaces:
ICustomStringLocalizationDao
,IStringLocalizationDao
public class CustomStringLocalizationDaoJdbc extends java.lang.Object implements ICustomStringLocalizationDao
DAO class that read custom strings from database- Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
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(java.lang.String customStringId, ITransaction transaction)
Delete CustomStringCustomStringConfig
get(java.lang.String customStringId, ITransaction transaction)
Get the CustomString objectjava.lang.String
getIdByStringInfo(CustomStringConfig customStringConfig, ITransaction transaction)
Get CustomStringId from stringId, resourcePath and localeCodejava.util.Map<java.lang.String,java.lang.String>
getStringTable(java.lang.String resourcePath, java.util.Locale locale, java.util.List<ITheme> themes)
Get the string table of the string localization.
-
-
-
Method Detail
-
getStringTable
public java.util.Map<java.lang.String,java.lang.String> getStringTable(java.lang.String resourcePath, java.util.Locale locale, java.util.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(java.lang.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(java.lang.String customStringId, ITransaction transaction) throws PortalException
Description copied from interface:ICustomStringLocalizationDao
Delete CustomString- Specified by:
delete
in interfaceICustomStringLocalizationDao
- Throws:
PortalException
-
getIdByStringInfo
public java.lang.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
-
-