Class LanguageManager
- java.lang.Object
-
- com.microstrategy.web.objects.localization.LanguageManager
-
public class LanguageManager extends java.lang.Object
Interface for creating new Locale objects, setting/updating project level data and metadata locale configurations
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
createEnvLanguage(WebObjectsFactory factory, int baselcid, java.lang.String languageName)
Creates a new environment language.static java.lang.String
createEnvLanguageLinkedToInterfaceLanguage(WebObjectsFactory factory, int baselcid, java.lang.String languageName, java.lang.String interfaceLanguageId)
Creates a new environment language linked to interface language.static WebLocaleObjectInfo
getLanguage(WebObjectSource objectSource, java.lang.String languageId)
static java.lang.String
manipulateLocaleLinkedToInterfaceLanguage(WebObjectSource objectSource, int baselcid, java.lang.String languageName, java.lang.String interfaceLanguageId)
static void
update(WebObjectsFactory factory, java.lang.String projectId, XMLProjectLocaleUpdateModel xmlProjectLocaleUpdateModel)
Gets configuration server and updates project locales
-
-
-
Method Detail
-
update
public static void update(WebObjectsFactory factory, java.lang.String projectId, XMLProjectLocaleUpdateModel xmlProjectLocaleUpdateModel) throws MSTRWebAPIException, WebObjectsException
Gets configuration server and updates project locales- Parameters:
factory
-projectId
-xmlProjectLocaleUpdateModel
- model with updates to be made- Throws:
MSTRWebAPIException
WebObjectsException
-
createEnvLanguage
public static java.lang.String createEnvLanguage(WebObjectsFactory factory, int baselcid, java.lang.String languageName) throws WebObjectsException
Creates a new environment language.- Parameters:
factory
-baselcid
- Base locale idlanguageName
- Language name- Returns:
- New locale object id
- Throws:
WebObjectsException
-
createEnvLanguageLinkedToInterfaceLanguage
public static java.lang.String createEnvLanguageLinkedToInterfaceLanguage(WebObjectsFactory factory, int baselcid, java.lang.String languageName, java.lang.String interfaceLanguageId) throws WebObjectsException
Creates a new environment language linked to interface language.- Parameters:
factory
-baselcid
- Base locale idlanguageName
- Language nameinterfaceLanguageId
- interface language id- Returns:
- New locale object id
- Throws:
WebObjectsException
-
manipulateLocaleLinkedToInterfaceLanguage
public static java.lang.String manipulateLocaleLinkedToInterfaceLanguage(WebObjectSource objectSource, int baselcid, java.lang.String languageName, java.lang.String interfaceLanguageId) throws WebObjectsException
- Throws:
WebObjectsException
-
getLanguage
public static WebLocaleObjectInfo getLanguage(WebObjectSource objectSource, java.lang.String languageId) throws WebObjectsException
- Throws:
WebObjectsException
-
-