|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILocalizationManager
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 to the definition. |
LocalizationLocale |
createLocalizationLocale(LocalizationLocale localizationLocale)
Create the portal version of a locale. |
LocalizationResource |
createLocalizationResource(LocalizationResource localizationResource)
Create a new localization resource 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 (the table affected is L10N_RESOURCE). |
Locale[] |
getCachedMatchingSupportedLocales(Locale[] locales)
Used to get a cached version minimal set of locales based on the input array of locales that matches the supported locales. |
LocalizationLocale |
getLocalizationLocale(Locale locale)
Get the portal version of a locale. |
LocalizationLocale |
getLocalizationLocale(LocalizationLocaleId localizationLocaleId)
Get the portal version of a locale. |
LocalizationLocale[] |
getLocalizationLocales()
Return an array of all the available locales in the system. |
LocalizationResource |
getLocalizationResource(CustomizationContext customizationContext,
LocalizationIntersectionId localizationIntersectionId)
Retrieve a single localization resource given the specified localization intersection id and the customization context. |
LocalizationResource |
getLocalizationResource(CustomizationContext customizationContext,
LocalizationIntersectionId localizationIntersectionId,
String webappName)
Retrieve 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 a 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 |
prepopulateCaches()
This method loads all localization data in the database into p13n caches, subject to cache size. |
void |
updateLocalizationLocale(LocalizationLocale localizationLocale)
Update a locale. |
void |
updateLocalizationResource(LocalizationResource localizationResource)
Update the localization definition with the new data. |
Method Detail |
---|
LocalizationResourceView getLocalizationResourceView(CustomizationContext customizationContext, LocalizationIntersectionId localizationIntersectionId) throws RemoteException
LocalizationIntersectionId
.
customizationContext
- contains an ordered list of preferred locales.localizationIntersectionId
- the intersection Id for a portal object.
You can obtain this from the LocalizationResource attached to the Definition object.
RemoteException
LocalizationResource[] getLocalizationResources(LocalizationIntersectionId localizationIntersectionId) throws RemoteException
LocalizationIntersectionId
.
localizationIntersectionId
- the intersection Id for a portal object.
You can obtain this from the LocalizationResource attached to the Definition object.
RemoteException
LocalizationResource[] getLocalizationResources() throws RemoteException
RemoteException
LocalizationResource getLocalizationResource(CustomizationContext customizationContext, LocalizationIntersectionId localizationIntersectionId) throws RemoteException
Retrieve a single localization resource given the specified localization intersection id and the customization context.
customizationContext
- contains the preferred locale.localizationIntersectionId
- the intersection Id for a portal object.
You can obtain this from the LocalizationResource attached to the Definition object.
RemoteException
LocalizationResource getLocalizationResource(CustomizationContext customizationContext, LocalizationIntersectionId localizationIntersectionId, String webappName) throws RemoteException
Retrieve a single localization resource given the specified localization intersection id and the customization context. The parameter webappName is used to retrieve a default locale (set in netuix-config.xml) that will be used if none of the locales in the customization context match the languages of the localization resources in the database.
customizationContext
- contains the preferred locale.localizationIntersectionId
- the intersection Id for a portal object.
You can obtain this from the LocalizationResource attached to the Definition object.webappName
- for choosing the default locale
RemoteException
LocalizationResource createLocalizationResource(LocalizationResource localizationResource) throws RemoteException, ObjectNotFoundException, MissingDataException
Create a new localization resource 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
LocalizationResource addLocalizationResource(LocalizationResource localizationResource, LocalizationIntersectionId localizationIntersectionId) throws RemoteException, ObjectNotFoundException, MissingDataException
Add a new localization resource to the definition.
localizationResource
- the object containing all the new data for the new localization.localizationIntersectionId
- intersection id from the Definition object.
ObjectNotFoundException
- if the localizationIntersectionId is bogus.
MissingDataException
- if the supplied localizationResource is missing required fields.
RemoteException
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 LocalizationDefinition is bogus.
RemoteException
void deleteLocalizationResource(LocalizationLocaleId localizationLocaleId, LocalizationIntersectionId localizationIntersectionId) throws RemoteException, ObjectNotFoundException
Delete a single localization definition record (the table affected is 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 intersection Id for a portal object.
This is the second part of the primary key. You can obtain this from
the LocalizationResource attached to the Definition object.
ObjectNotFoundException
- if the LocalizationIntersectionId in the LocalizationDefinition is bogus.
RemoteException
Locale[] getCachedMatchingSupportedLocales(Locale[] locales) throws RemoteException
locales
-
RemoteException
Locale[] getMatchingSupportedLocales(Locale[] locales) throws RemoteException
locales
-
RemoteException
LocalizationLocale[] getLocalizationLocales() throws RemoteException
RemoteException
LocalizationLocale getLocalizationLocale(Locale locale) throws RemoteException
locale
-
RemoteException
LocalizationLocale getLocalizationLocale(LocalizationLocaleId localizationLocaleId) throws RemoteException
localizationLocaleId
- the LocalizationLocaleId
of the LocalizationLocale
RemoteException
void deleteLocalizationLocale(LocalizationLocaleId localizationLocaleId) throws RemoteException, ObjectNotFoundException
localizationLocaleId
- the LocalizationLocaleId
of the LocalizationLocale
You can obtain this from the LocalizationResource attached to the Definition object.
RemoteException
ObjectNotFoundException
void updateLocalizationLocale(LocalizationLocale localizationLocale) throws RemoteException, ObjectNotFoundException
RemoteException
ObjectNotFoundException
LocalizationLocale createLocalizationLocale(LocalizationLocale localizationLocale) throws RemoteException, MissingDataException
RemoteException
MissingDataException
void prepopulateCaches() throws RemoteException
RemoteException
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.4) E14255-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |