Class MainStringLocalizationDaoXml

  • All Implemented Interfaces:
    IStringLocalizationDao

    public class MainStringLocalizationDaoXml
    extends java.lang.Object
    implements IStringLocalizationDao
    Implementation of String Localization Dao that searches localization XML files for localized strings.
    Since:
    4.0.0
    Version:
    $Revision: 17606 $ $Date: 2015-07-24 10:56:40 -0300 (Fri, 24 Jul 2015) $
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MainStringLocalizationDaoXml

        public MainStringLocalizationDaoXml()
    • 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 interface IStringLocalizationDao
        Parameters:
        resourcePath - the path of the resources to search within for the strings
        locale - the locale to use when searching for the strings
        themes - 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