org.infoglue.cms.controllers.delivery.kernel.impl.simple
Class LanguageDeliveryController

java.lang.Object
  |
  +--org.infoglue.cms.controllers.delivery.kernel.impl.simple.LanguageDeliveryController

public class LanguageDeliveryController
extends java.lang.Object


Method Summary
 java.util.List getAvailableLanguages(java.lang.Integer siteNodeId)
          This method returns the languages assigned to a respository.
static LanguageDeliveryController getLanguageDeliveryController()
          Factory method
 org.infoglue.cms.entities.management.LanguageVO getLanguageIfRepositorySupportsIt(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.
 org.infoglue.cms.entities.management.LanguageVO getLanguageWithCode(java.lang.String languageCode)
          This method returns language with the languageCode sent in.
 org.infoglue.cms.entities.management.LanguageVO getLanguageVO(java.lang.Integer languageId)
          This method return a LanguageVO
 java.util.Locale getLocaleWithId(java.lang.Integer languageId)
          This method returns language with the languageCode sent in.
 org.infoglue.cms.entities.management.LanguageVO getMasterLanguage(java.lang.Integer siteNodeId)
          This method returns the master language.
 org.infoglue.cms.entities.management.LanguageVO getMasterLanguage(java.lang.String repositoryName)
          This method returns the master language.
 
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 org.infoglue.cms.entities.management.LanguageVO getLanguageVO(java.lang.Integer languageId)
                                                              throws org.infoglue.cms.exception.SystemException,
                                                                     java.lang.Exception
This method return a LanguageVO

org.infoglue.cms.exception.SystemException
java.lang.Exception

getAvailableLanguages

public java.util.List getAvailableLanguages(java.lang.Integer siteNodeId)
                                     throws org.infoglue.cms.exception.SystemException,
                                            java.lang.Exception
This method returns the languages assigned to a respository.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getMasterLanguage

public org.infoglue.cms.entities.management.LanguageVO getMasterLanguage(java.lang.String repositoryName)
                                                                  throws org.infoglue.cms.exception.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

org.infoglue.cms.exception.SystemException
java.lang.Exception

getMasterLanguage

public org.infoglue.cms.entities.management.LanguageVO getMasterLanguage(java.lang.Integer siteNodeId)
                                                                  throws org.infoglue.cms.exception.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

org.infoglue.cms.exception.SystemException
java.lang.Exception

getLocaleWithId

public java.util.Locale getLocaleWithId(java.lang.Integer languageId)
This method returns language with the languageCode sent in.


getLanguageWithCode

public org.infoglue.cms.entities.management.LanguageVO getLanguageWithCode(java.lang.String languageCode)
                                                                    throws org.infoglue.cms.exception.SystemException,
                                                                           java.lang.Exception
This method returns language with the languageCode sent in.

org.infoglue.cms.exception.SystemException
java.lang.Exception

getLanguageIfRepositorySupportsIt

public org.infoglue.cms.entities.management.LanguageVO getLanguageIfRepositorySupportsIt(java.lang.String languageCodes,
                                                                                         java.lang.Integer siteNodeId)
                                                                                  throws org.infoglue.cms.exception.SystemException,
                                                                                         java.lang.Exception
This method returns language with the languageCode sent in if it is allowed/supported in the current repository.

org.infoglue.cms.exception.SystemException
java.lang.Exception