Ontimize 5.2072EN

com.ontimize.gui.i18n
Interface IDatabaseBundleManager

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
DatabaseBundleManager

public interface IDatabaseBundleManager
extends java.rmi.Remote


Method Summary
 java.util.Hashtable getAllResourceBundles(java.util.Locale l, int sessionId)
          Get a hashtable with all the available bundles in the database for the specified locale
 DatabaseBundleDescriptor[] getAvailableBundles(int sessionId)
          Get a list with all the available bundle classes
 java.lang.String[] getAvailableLocales(int sessionId)
          Get a list with the suffix of the available locales in the database
 java.util.ResourceBundle getBundle(java.lang.String baseName, java.util.Locale l, int sessionId)
          Get the resource bundle for the specified name and locale
 java.util.Hashtable getBundles(java.util.List baseNames, java.util.Locale l, int sessionId)
          Get all the resources for the specified locale and different names
 void updateBundleValues(DatabaseBundleValues values, int sessionId)
          Update the specified values in the database bundle
 

Method Detail

getAvailableBundles

public DatabaseBundleDescriptor[] getAvailableBundles(int sessionId)
                                               throws java.lang.Exception
Get a list with all the available bundle classes

Parameters:
sessionId -
Returns:
Throws:
java.lang.Exception

getBundle

public java.util.ResourceBundle getBundle(java.lang.String baseName,
                                          java.util.Locale l,
                                          int sessionId)
                                   throws java.lang.Exception
Get the resource bundle for the specified name and locale

Parameters:
baseName -
l -
sessionId -
Returns:
Throws:
java.lang.Exception

getBundles

public java.util.Hashtable getBundles(java.util.List baseNames,
                                      java.util.Locale l,
                                      int sessionId)
                               throws java.lang.Exception
Get all the resources for the specified locale and different names

Parameters:
baseNames - A list of String objects with the names of the resources to query
l - Locale
sessionId -
Returns:
Throws:
java.lang.Exception

getAllResourceBundles

public java.util.Hashtable getAllResourceBundles(java.util.Locale l,
                                                 int sessionId)
                                          throws java.lang.Exception
Get a hashtable with all the available bundles in the database for the specified locale

Parameters:
l - Locale
sessionId -
Returns:
The keys of the object are Strings with the bundle class name (for example com.ontimize.gui.i18m.bundle) and each value is the ResourceBundle object
Throws:
java.lang.Exception

getAvailableLocales

public java.lang.String[] getAvailableLocales(int sessionId)
                                       throws java.lang.Exception
Get a list with the suffix of the available locales in the database

Parameters:
sessionId -
Returns:
Throws:
java.lang.Exception

updateBundleValues

public void updateBundleValues(DatabaseBundleValues values,
                               int sessionId)
                        throws java.lang.Exception
Update the specified values in the database bundle

Parameters:
values -
sessionId -
Throws:
java.lang.Exception

Ontimize