org.infoglue.deliver.controllers.kernel.impl.simple
Class LanguageDeliveryController

java.lang.Object
  |
  +--org.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
        |
        +--org.infoglue.deliver.controllers.kernel.impl.simple.LanguageDeliveryController

public class LanguageDeliveryController
extends BaseDeliveryController


Method Summary
 java.util.List getAvailableLanguages(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns the languages assigned to a respository.
 java.util.List getAvailableLanguagesForRepository(org.exolab.castor.jdo.Database db, java.lang.Integer repositoryId)
          This method returns all languages for a certain repository.
static LanguageDeliveryController getLanguageDeliveryController()
          Factory method
 LanguageVO getLanguageIfRepositorySupportsIt(org.exolab.castor.jdo.Database db, java.lang.String languageCodes, java.lang.Integer siteNodeId)
          This method returns language with the languageCode sent in if it is allowed/supported in the current repository.
 LanguageVO getLanguageWithCode(org.exolab.castor.jdo.Database db, java.lang.String languageCode)
          This method returns language with the languageCode sent in.
 LanguageVO getLanguageVO(org.exolab.castor.jdo.Database db, java.lang.Integer languageId)
          This method return a LanguageVO
 java.util.Locale getLocaleWithId(org.exolab.castor.jdo.Database db, java.lang.Integer languageId)
          This method returns language with the languageCode sent in.
 LanguageVO getMasterLanguage(org.exolab.castor.jdo.Database db, java.lang.String repositoryName)
          This method returns the master language.
 LanguageVO getMasterLanguageForRepository(org.exolab.castor.jdo.Database db, java.lang.Integer repositoryId)
          This method returns the master language.
 LanguageVO getMasterLanguageForRepository(java.lang.Integer repositoryId, org.exolab.castor.jdo.Database db)
          This method returns the master language.
 LanguageVO getMasterLanguageForSiteNode(org.exolab.castor.jdo.Database db, java.lang.Integer siteNodeId)
          This method returns the master language.
 
Methods inherited from class org.infoglue.deliver.controllers.kernel.impl.simple.BaseDeliveryController
beginTransaction, closeDatabase, closeTransaction, commitTransaction, getAllVOObjects, getAllVOObjects, rollbackTransaction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLanguageDeliveryController

public static LanguageDeliveryController getLanguageDeliveryController()
Factory method


getLanguageVO

public LanguageVO getLanguageVO(org.exolab.castor.jdo.Database db,
                                java.lang.Integer languageId)
                         throws SystemException,
                                java.lang.Exception
This method return a LanguageVO

SystemException
java.lang.Exception

getAvailableLanguagesForRepository

public java.util.List getAvailableLanguagesForRepository(org.exolab.castor.jdo.Database db,
                                                         java.lang.Integer repositoryId)
                                                  throws SystemException,
                                                         java.lang.Exception
This method returns all languages for a certain repository.

Parameters:
repositoryId -
Returns:
Throws:
SystemException
java.lang.Exception

getAvailableLanguages

public java.util.List getAvailableLanguages(org.exolab.castor.jdo.Database db,
                                            java.lang.Integer siteNodeId)
                                     throws SystemException,
                                            java.lang.Exception
This method returns the languages assigned to a respository.

SystemException
java.lang.Exception

getMasterLanguage

public LanguageVO getMasterLanguage(org.exolab.castor.jdo.Database db,
                                    java.lang.String repositoryName)
                             throws SystemException,
                                    java.lang.Exception
This method returns the master language. todo - add attribute on repositoryLanguage to be able to sort them... and then fetch the first

SystemException
java.lang.Exception

getMasterLanguageForRepository

public LanguageVO getMasterLanguageForRepository(org.exolab.castor.jdo.Database db,
                                                 java.lang.Integer repositoryId)
                                          throws SystemException,
                                                 java.lang.Exception
This method returns the master language. todo - add attribute on repositoryLanguage to be able to sort them... and then fetch the first

SystemException
java.lang.Exception

getMasterLanguageForRepository

public LanguageVO getMasterLanguageForRepository(java.lang.Integer repositoryId,
                                                 org.exolab.castor.jdo.Database db)
                                          throws SystemException,
                                                 java.lang.Exception
This method returns the master language. todo - add attribute on repositoryLanguage to be able to sort them... and then fetch the first

SystemException
java.lang.Exception

getMasterLanguageForSiteNode

public LanguageVO getMasterLanguageForSiteNode(org.exolab.castor.jdo.Database db,
                                               java.lang.Integer siteNodeId)
                                        throws SystemException,
                                               java.lang.Exception
This method returns the master language. todo - add attribute on repositoryLanguage to be able to sort them... and then fetch the first

SystemException
java.lang.Exception

getLocaleWithId

public java.util.Locale getLocaleWithId(org.exolab.castor.jdo.Database db,
                                        java.lang.Integer languageId)
This method returns language with the languageCode sent in.


getLanguageWithCode

public LanguageVO getLanguageWithCode(org.exolab.castor.jdo.Database db,
                                      java.lang.String languageCode)
                               throws SystemException,
                                      java.lang.Exception
This method returns language with the languageCode sent in.

SystemException
java.lang.Exception

getLanguageIfRepositorySupportsIt

public LanguageVO getLanguageIfRepositorySupportsIt(org.exolab.castor.jdo.Database db,
                                                    java.lang.String languageCodes,
                                                    java.lang.Integer siteNodeId)
                                             throws SystemException,
                                                    java.lang.Exception
This method returns language with the languageCode sent in if it is allowed/supported in the current repository.

SystemException
java.lang.Exception