public class TranslationUtility
extends java.lang.Object
Constructor and Description |
---|
TranslationUtility() |
Modifier and Type | Method and Description |
---|---|
static void |
addPageDescriptionEntryInTranslationBundle(java.lang.String id,
java.lang.String name,
oracle.webcenter.framework.service.Scope scope,
java.lang.String updatedDesc,
oracle.webcenter.framework.translations.TranslationsManager transMgr)
Add the description of the page into the translation file
|
static void |
addPageTitleEntryInTranslationBundle(java.lang.String id,
java.lang.String name,
oracle.webcenter.framework.service.Scope scope,
java.lang.String title,
oracle.webcenter.framework.translations.TranslationsManager transMgr)
Add the tile of the page into the translation XLF file for translation
|
static void |
deleteEntriesFromTranslationBundle(java.lang.String id,
java.lang.String name,
oracle.webcenter.framework.service.Scope scope)
Deletes the title and description entry for the page object in the scope
translation file
|
static java.lang.String |
getPagesMetadataDescriptionString(java.lang.String id,
java.lang.String name,
java.lang.String scopeGuid)
Retrieves the value for the description key for a page.
|
static java.lang.String |
getPagesMetadataTitleString(java.lang.String id,
java.lang.String name,
java.lang.String scopeGuid)
Retrieves the value for the title key for a page.
|
static oracle.webcenter.framework.service.Scope |
getScope(java.lang.String scopeGUID)
Gets the scope for a portal
|
static oracle.webcenter.framework.translations.TranslationsManager |
getTranslationManagerForGivenScope(java.lang.String scopeGUID)
Get the translation manager for the passed in scope
|
public static final java.lang.String getPagesMetadataTitleString(java.lang.String id, java.lang.String name, java.lang.String scopeGuid)
public static final java.lang.String getPagesMetadataDescriptionString(java.lang.String id, java.lang.String name, java.lang.String scopeGuid)
public static void addPageTitleEntryInTranslationBundle(java.lang.String id, java.lang.String name, oracle.webcenter.framework.service.Scope scope, java.lang.String title, oracle.webcenter.framework.translations.TranslationsManager transMgr)
id
- name
- scope
- title
- public static void addPageDescriptionEntryInTranslationBundle(java.lang.String id, java.lang.String name, oracle.webcenter.framework.service.Scope scope, java.lang.String updatedDesc, oracle.webcenter.framework.translations.TranslationsManager transMgr)
id
- name
- scope
- updatedDesc
- public static oracle.webcenter.framework.service.Scope getScope(java.lang.String scopeGUID)
portal
- the portalpublic static oracle.webcenter.framework.translations.TranslationsManager getTranslationManagerForGivenScope(java.lang.String scopeGUID)
scopeGUID
- public static void deleteEntriesFromTranslationBundle(java.lang.String id, java.lang.String name, oracle.webcenter.framework.service.Scope scope)
id
- name
- scope
-