|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the primary interface for performing persistent store operations on localizations.
Method Summary | |
LocalizationResource |
addLocalizationResource(LocalizationResource localizationResource,
LocalizationIntersectionId localizationIntersectionId)
Add a new localization resource (l10n label) to the definition. |
LocalizationLocale |
createLocalizationLocale(LocalizationLocale localizationLocale)
|
LocalizationResource |
createLocalizationResource(LocalizationResource localizationResource)
Create a new localization resource (l10n label) from the supplied resource. |
void |
deleteLocalizationLocale(LocalizationLocaleId localizationLocaleId)
Delete a LocalizationLocale record and all LocalizationResources associated to this locale. |
void |
deleteLocalizationResource(LocalizationLocaleId localizationLocaleId,
LocalizationIntersectionId localizationIntersectionId)
Delete a single localization definition record (table effected L10N_RESOURCE). |
LocalizationLocale |
getLocalizationLocale(Locale locale)
|
LocalizationLocale |
getLocalizationLocale(LocalizationLocaleId localizationLocaleId)
|
LocalizationLocale[] |
getLocalizationLocales()
Return an array of all the available locales in the system. |
LocalizationResource |
getLocalizationResource(CustomizationContext customizationContext,
LocalizationIntersectionId localizationIntersectionId)
A single localization resource given the specified localization intersection id and the customization context. |
LocalizationResource[] |
getLocalizationResources()
Retrurn a list of all the localization resources in the system |
LocalizationResource[] |
getLocalizationResources(LocalizationIntersectionId localizationIntersectionId)
Retrieve an array of LocalizationResourceView definitions for the specified abstract LocalizationIntersectionId . |
LocalizationResourceView |
getLocalizationResourceView(CustomizationContext customizationContext,
LocalizationIntersectionId localizationIntersectionId)
Retrieve an array of LocalizationResourceView for the supplied LocalizationIntersectionId . |
Locale[] |
getMatchingSupportedLocales(Locale[] locales)
Used to get a minimal set of Locales based on the input array of Locales that matches supported Locales. |
void |
updateLocalizationLocale(LocalizationLocale localizationLocale)
|
void |
updateLocalizationResource(LocalizationResource localizationResource)
Update the localization definition with the new data. |
Method Detail |
public LocalizationResource addLocalizationResource(LocalizationResource localizationResource, LocalizationIntersectionId localizationIntersectionId) throws RemoteException, ObjectNotFoundException, MissingDataException
Add a new localization resource (l10n label) to the definition.
localizationResource
- the object containing all the new data for the new localization.localizationIntersectionId
- intersection id from the Defintiion object.
ObjectNotFoundException
- if the localizationIntersectionId is bogus.
MissingDataException
- if the supplied localizationResource is missing required fields.
RemoteException
public LocalizationLocale createLocalizationLocale(LocalizationLocale localizationLocale) throws RemoteException, MissingDataException
RemoteException
MissingDataException
public LocalizationResource createLocalizationResource(LocalizationResource localizationResource) throws RemoteException, ObjectNotFoundException, MissingDataException
Create a new localization resource (l10n label) from the supplied resource.
localizationResource
- the object containing all the new data for the new localization.
ObjectNotFoundException
- if the localizationIntersectionId is bogus.
MissingDataException
- if the supplied localizationResource is missing required fields.
RemoteException
public void deleteLocalizationLocale(LocalizationLocaleId localizationLocaleId) throws RemoteException, ObjectNotFoundException
localizationLocaleId
-
RemoteException
ObjectNotFoundException
public void deleteLocalizationResource(LocalizationLocaleId localizationLocaleId, LocalizationIntersectionId localizationIntersectionId) throws RemoteException, ObjectNotFoundException
Delete a single localization definition record (table effected L10N_RESOURCE). Note, this method does not delete any records in the L10N_INTERSECTION table, as this would cause the definition record to be deleted as well.
localizationLocaleId
- the first part of the primary keylocalizationIntersectionId
- the second part of the primary key of the localization resord to delete.
ObjectNotFoundException
- if the LocalizationIntersectionId in the LocalizationDefnition is bogus.
RemoteException
public LocalizationLocale getLocalizationLocale(Locale locale) throws RemoteException
RemoteException
public LocalizationLocale getLocalizationLocale(LocalizationLocaleId localizationLocaleId) throws RemoteException
RemoteException
public LocalizationLocale[] getLocalizationLocales() throws RemoteException
RemoteException
public LocalizationResource getLocalizationResource(CustomizationContext customizationContext, LocalizationIntersectionId localizationIntersectionId) throws RemoteException
A single localization resource given the specified localization intersection id and the customization context.
customizationContext
- contains the prefered locale.localizationIntersectionId
- the unique id of the definition object.
RemoteException
public LocalizationResource[] getLocalizationResources() throws RemoteException
RemoteException
public LocalizationResource[] getLocalizationResources(LocalizationIntersectionId localizationIntersectionId) throws RemoteException
LocalizationIntersectionId
.
localizationIntersectionId
- a unique identifier for any definition object. Example:
PortletDefinitionId, ShellDefinitionId, ...
RemoteException
public LocalizationResourceView getLocalizationResourceView(CustomizationContext customizationContext, LocalizationIntersectionId localizationIntersectionId) throws RemoteException
LocalizationIntersectionId
.
customizationContext
- contains an in order list of predered locales.localizationIntersectionId
- a unique identifier for any definition object. Example:
PortletDefinitionId, ShellDefinitionId, ...
RemoteException
public Locale[] getMatchingSupportedLocales(Locale[] locales) throws RemoteException
locales
-
RemoteException
public void updateLocalizationLocale(LocalizationLocale localizationLocale) throws RemoteException, ObjectNotFoundException
RemoteException
ObjectNotFoundException
public void updateLocalizationResource(LocalizationResource localizationResource) throws RemoteException, ObjectNotFoundException
Update the localization definition with the new data.
localizationResource
- the localizationdefinition containing the new data
ObjectNotFoundException
- if the LocalizationIntersectionId in the LocalizationDefnition is bogus.
RemoteException
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |