# com.bea.netuix.application.localization.manager.persistence.jdbc
LocalizationDelegate Class

public class LocalizationDelegate
extends `Object`

Hierarchy
  `Object`
  `LocalizationDelegate`

## Field Summary

`protected static `Debug`` | `debug` Debug
`protected static `Debug`` | `localeCacheDebug` Debug
`protected static `Debug`` | `localizationResourceCacheDebug` Debug

## Constructor Summary

LocalizationDelegate()

## Method Summary

`public static `LocalizationResource`` | `addLocalizationResource`(`Connection` connection, `LocalizationResource` localizationResource, `LocalizationIntersectionId` localizationIntersectionId)
`public static `LocalizationResource`` | `cloneLocalizationResource`(`Connection` connection, `LocalizationIntersectionId` localizationIntersectionId) For every localization resource associated to this intersection id (one for each locale) create a copy with the title slightly mutated ("_" + original)
`public static `LocalizationLocale`` | `createLocalizationLocale`(`Connection` connection, `LocalizationLocale` localizationLocale)
`public static `LocalizationResource`` | `createLocalizationResource`(`Connection` connection, `LocalizationResource` localizationResource)
`public static `LocalizationResource`` | `createLocalizationResource`(`Connection` connection, `LocalizationResource` localizationResource, boolean getOrCreate) Create a new localization resource.
`public static void` | `deleteLocalizationLocale`(`Connection` connection, `LocalizationLocaleId` localizationLocaleId)
`public static void` | `deleteLocalizationResource`(`Connection` connection, `LocalizationLocaleId` localizationLocaleId, `LocalizationIntersectionId` localizationIntersectionId)
`public static `LocalizationLocale`` | `findBestMatch`(`Locale` locale, `LocalizationLocale`[] localizationCandidates)
`public static `LocalizationLocale`` | `getCreateLocalizationLocale`(`Connection` connection, `Locale` locale, `String` encoding)
`public static `DesktopDefinitionId`` | `getDesktopDefinitionId`(`Connection` connection, `LocalizationIntersectionId` lid)
`public static `LocalizationLocale`` | `getLocalizationLocale`(`Connection` connection, `CustomizationContext` customizationContext)
`public static `LocalizationLocale`` | `getLocalizationLocale`(`Connection` connection, `Locale` locale)
`public static `LocalizationLocale`` | `getLocalizationLocale`(`Connection` connection, `LocalizationLocaleId` localizationLocaleId)
`public static `LocalizationLocale`` | `getLocalizationLocaleExact`(`Connection` connection, `Locale` locale)
`public static `LocalizationLocale`[]` | `getLocalizationLocales`(`Connection` connection)
`public static `LocalizationResource`` | `getLocalizationResource`(`Connection` connection, `CustomizationContext` customizationContext, `LocalizationIntersectionId` localizationIntersectionId)
`public static `LocalizationResource`[]` | `getLocalizationResources`(`Connection` connection, `LocalizationIntersectionId` localizationIntersectionId)
`public static `LocalizationResource`[]` | `getLocalizationResources`(`Connection` connection)
`public static `LocalizationResource`[]` | `getLocalizationResources`(`Connection` connection, `LocalizationLocaleId` llId)
`public static `String`` | `getLocalizationResourceType`(`Connection` connection, `LocalizationIntersectionId` liId)
`public static `LocalizationResourceView`` | `getLocalizationResourceView`(`Connection` connection, `CustomizationContext` customizationContext, `LocalizationIntersectionId` intersectionId)
`public static `Locale`[]` | `getMatchingSupportedLocales`(`Connection` connection, `Locale`[] locales)
`public static `PortalDefinition`` | `getPortal`(`Connection` connection, `LocalizationIntersectionId` lid)
`public static `PortalDefinition`` | `getPortalDefinition`(`Connection` connection, `String` webAppName, `PortalPath` portalPath)
`public static `String`` | `getWebAppNameForBook`(`Connection` connection, `LocalizationIntersectionId` localizationIntersectionId)
`public static `String`` | `getWebAppNameForLayout`(`Connection` connection, `LocalizationIntersectionId` localizationIntersectionId)
`public static `String`` | `getWebAppNameForLookAndFeel`(`Connection` connection, `LocalizationIntersectionId` localizationIntersectionId)
`public static `String`` | `getWebAppNameForMenu`(`Connection` connection, `LocalizationIntersectionId` localizationIntersectionId)
`public static `String`` | `getWebAppNameForPage`(`Connection` connection, `LocalizationIntersectionId` localizationIntersectionId)
`public static `String`` | `getWebAppNameForPortlet`(`Connection` connection, `LocalizationIntersectionId` localizationIntersectionId)
`public static `String`` | `getWebAppNameForShell`(`Connection` connection, `LocalizationIntersectionId` localizationIntersectionId)
`public static void` | `smartUpdateLocalizationResource`(`Connection` connection, `LocalizationResource` oldLocalizationResource, `LocalizationResource` newLocalizationResource)
`public static `LocalizationResource`` | `updateChangeLocalizationResource`(`Connection` connection, `LocalizationResource` localizationResource)
`public static void` | `updateLocalizationLocale`(`Connection` connection, `LocalizationLocale` localizationLocale)
`public static void` | `updateLocalizationResource`(`Connection` connection, `LocalizationResource` localizationResource)

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Field Detail

### debug

    protected static Debug debug

### localeCacheDebug

    protected static Debug localeCacheDebug

### localizationResourceCacheDebug

    protected static Debug localizationResourceCacheDebug

## Constructor Detail

### LocalizationDelegate

    public LocalizationDelegate()

## Method Detail

### addLocalizationResource(Connection, LocalizationResource, LocalizationIntersectionId) Method

    public static LocalizationResource addLocalizationResource(Connection connection,
                                                               LocalizationResource localizationResource,
                                                               LocalizationIntersectionId localizationIntersectionId)
         throws MissingDataException

#### Exceptions

``MissingDataException``

### cloneLocalizationResource(Connection, LocalizationIntersectionId) Method

    public static LocalizationResource cloneLocalizationResource(Connection connection,
                                                                 LocalizationIntersectionId localizationIntersectionId)

For every localization resource associated to this intersection id (one for each locale) create a copy with the title slightly mutated ("_" + original)

#### Returns

the new localization resource with the ne intersection id

### createLocalizationLocale(Connection, LocalizationLocale) Method

    public static LocalizationLocale createLocalizationLocale(Connection connection,
                                                              LocalizationLocale localizationLocale)
         throws MissingDataException

#### Exceptions

``MissingDataException``

### createLocalizationResource(Connection, LocalizationResource) Method

    public static LocalizationResource createLocalizationResource(Connection connection,
                                                                  LocalizationResource localizationResource)
         throws MissingDataException

#### Exceptions

``MissingDataException``

### createLocalizationResource(Connection, LocalizationResource, boolean) Method

    public static LocalizationResource createLocalizationResource(Connection connection,
                                                                  LocalizationResource localizationResource,
                                                                  boolean getOrCreate)
         throws MissingDataException

Create a new localization resource. Since the primary key for the localization resource is made of the locale_id and the intersection_id, this method will generate at leeast a new one of these.

#### Returns

a reference the LocalizationResource

#### Exceptions

``MissingDataException``

### deleteLocalizationLocale(Connection, LocalizationLocaleId) Method

    public static void deleteLocalizationLocale(Connection connection,
                                                LocalizationLocaleId localizationLocaleId)
         throws ObjectNotFoundException

#### Exceptions

``ObjectNotFoundException``

### deleteLocalizationResource(Connection, LocalizationLocaleId, LocalizationIntersectionId) Method

    public static void deleteLocalizationResource(Connection connection,
                                                  LocalizationLocaleId localizationLocaleId,
                                                  LocalizationIntersectionId localizationIntersectionId)
         throws ObjectNotFoundException

#### Exceptions

``ObjectNotFoundException``

### findBestMatch(Locale, LocalizationLocale[]) Method

    public static LocalizationLocale findBestMatch(Locale locale,
                                                   LocalizationLocale[] localizationCandidates)

### getCreateLocalizationLocale(Connection, Locale, String) Method

    public static LocalizationLocale getCreateLocalizationLocale(Connection connection,
                                                                 Locale locale,
                                                                 String encoding)

### getDesktopDefinitionId(Connection, LocalizationIntersectionId) Method

    public static DesktopDefinitionId getDesktopDefinitionId(Connection connection,
                                                             LocalizationIntersectionId lid)

### getLocalizationLocale(Connection, CustomizationContext) Method

    public static LocalizationLocale getLocalizationLocale(Connection connection,
                                                           CustomizationContext customizationContext)

### getLocalizationLocale(Connection, Locale) Method

    public static LocalizationLocale getLocalizationLocale(Connection connection,
                                                           Locale locale)

### getLocalizationLocale(Connection, LocalizationLocaleId) Method

    public static LocalizationLocale getLocalizationLocale(Connection connection,
                                                           LocalizationLocaleId localizationLocaleId)

### getLocalizationLocaleExact(Connection, Locale) Method

    public static LocalizationLocale getLocalizationLocaleExact(Connection connection,
                                                                Locale locale)

### getLocalizationLocales(Connection) Method

    public static LocalizationLocale[] getLocalizationLocales(Connection connection)

### getLocalizationResource(Connection, CustomizationContext, LocalizationIntersectionId) Method

    public static LocalizationResource getLocalizationResource(Connection connection,
                                                               CustomizationContext customizationContext,
                                                               LocalizationIntersectionId localizationIntersectionId)

### getLocalizationResources(Connection, LocalizationIntersectionId) Method

    public static LocalizationResource[] getLocalizationResources(Connection connection,
                                                                LocalizationIntersectionId localizationIntersectionId)

### getLocalizationResources(Connection) Method

    public static LocalizationResource[] getLocalizationResources(Connection connection)

### getLocalizationResources(Connection, LocalizationLocaleId) Method

    public static LocalizationResource[] getLocalizationResources(Connection connection,
                                                                LocalizationLocaleId llId)

### getLocalizationResourceType(Connection, LocalizationIntersectionId) Method

    public static String getLocalizationResourceType(Connection connection,
                                                     LocalizationIntersectionId liId)

### getLocalizationResourceView(Connection, CustomizationContext, LocalizationIntersectionId) Method

    public static LocalizationResourceView getLocalizationResourceView(Connection connection,
                                                                       CustomizationContext customizationContext,
                                                                       LocalizationIntersectionId intersectionId)

### getMatchingSupportedLocales(Connection, Locale[]) Method

    public static Locale[] getMatchingSupportedLocales(Connection connection,
                                                     Locale[] locales)

### getPortal(Connection, LocalizationIntersectionId) Method

    public static PortalDefinition getPortal(Connection connection,
                                             LocalizationIntersectionId lid)

### getPortalDefinition(Connection, String, PortalPath) Method

    public static PortalDefinition getPortalDefinition(Connection connection,
                                                       String webAppName,
                                                       PortalPath portalPath)

### getWebAppNameForBook(Connection, LocalizationIntersectionId) Method

    public static String getWebAppNameForBook(Connection connection,
                                              LocalizationIntersectionId localizationIntersectionId)

### getWebAppNameForLayout(Connection, LocalizationIntersectionId) Method

    public static String getWebAppNameForLayout(Connection connection,
                                                LocalizationIntersectionId localizationIntersectionId)

### getWebAppNameForLookAndFeel(Connection, LocalizationIntersectionId) Method

    public static String getWebAppNameForLookAndFeel(Connection connection,
                                                     LocalizationIntersectionId localizationIntersectionId)

### getWebAppNameForMenu(Connection, LocalizationIntersectionId) Method

    public static String getWebAppNameForMenu(Connection connection,
                                              LocalizationIntersectionId localizationIntersectionId)

### getWebAppNameForPage(Connection, LocalizationIntersectionId) Method

    public static String getWebAppNameForPage(Connection connection,
                                              LocalizationIntersectionId localizationIntersectionId)

### getWebAppNameForPortlet(Connection, LocalizationIntersectionId) Method

    public static String getWebAppNameForPortlet(Connection connection,
                                                 LocalizationIntersectionId localizationIntersectionId)

### getWebAppNameForShell(Connection, LocalizationIntersectionId) Method

    public static String getWebAppNameForShell(Connection connection,
                                               LocalizationIntersectionId localizationIntersectionId)

### smartUpdateLocalizationResource(Connection, LocalizationResource, LocalizationResource) Method

    public static void smartUpdateLocalizationResource(Connection connection,
                                                       LocalizationResource oldLocalizationResource,
                                                       LocalizationResource newLocalizationResource)

### updateChangeLocalizationResource(Connection, LocalizationResource) Method

    public static LocalizationResource updateChangeLocalizationResource(Connection connection,
                                                                        LocalizationResource localizationResource)
         throws MissingDataException

#### Exceptions

``MissingDataException``

### updateLocalizationLocale(Connection, LocalizationLocale) Method

    public static void updateLocalizationLocale(Connection connection,
                                                LocalizationLocale localizationLocale)

### updateLocalizationResource(Connection, LocalizationResource) Method

    public static void updateLocalizationResource(Connection connection,
                                                  LocalizationResource localizationResource)