|
© 2003 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.bea.netuix.application.localization.manager.persistence.jdbc.LocalizationManagerImpl
| Field Summary | |
protected static Debug |
debug
|
| Constructor Summary | |
LocalizationManagerImpl()
|
|
| 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). |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
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 |
setSessionContext(SessionContext sessionContext)
|
void |
updateLocalizationLocale(LocalizationLocale localizationLocale)
|
void |
updateLocalizationResource(LocalizationResource localizationResource)
Update the localization definition with the new data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Debug debug
| Constructor Detail |
public LocalizationManagerImpl()
| Method Detail |
public void ejbCreate()
throws CreateException,
RemoteException
CreateException
RemoteException
public void ejbActivate()
throws EJBException,
RemoteException
ejbActivate in interface SessionBeanEJBException
RemoteException
public void ejbPassivate()
throws EJBException,
RemoteException
ejbPassivate in interface SessionBeanEJBException
RemoteException
public void ejbRemove()
throws EJBException,
RemoteException
ejbRemove in interface SessionBeanEJBException
RemoteException
public void setSessionContext(SessionContext sessionContext)
throws EJBException,
RemoteException
setSessionContext in interface SessionBeanEJBException
RemoteException
public LocalizationResourceView getLocalizationResourceView(CustomizationContext customizationContext,
LocalizationIntersectionId localizationIntersectionId)
throws RemoteException
ILocalizationManagerLocalizationIntersectionId.
getLocalizationResourceView in interface ILocalizationManagercustomizationContext - contains an in order list of predered locales.localizationIntersectionId - a unique identifier for any definition object. Example:
PortletDefinitionId, ShellDefinitionId, ...
RemoteException
public LocalizationResource[] getLocalizationResources(LocalizationIntersectionId localizationIntersectionId)
throws RemoteException
ILocalizationManagerLocalizationIntersectionId.
getLocalizationResources in interface ILocalizationManagerlocalizationIntersectionId - a unique identifier for any definition object. Example:
PortletDefinitionId, ShellDefinitionId, ...
RemoteException
public LocalizationResource[] getLocalizationResources()
throws RemoteException
ILocalizationManager
getLocalizationResources in interface ILocalizationManagerRemoteException
public LocalizationResource getLocalizationResource(CustomizationContext customizationContext,
LocalizationIntersectionId localizationIntersectionId)
throws RemoteException
ILocalizationManagerA single localization resource given the specified localization intersection id and the customization context.
getLocalizationResource in interface ILocalizationManagercustomizationContext - contains the prefered locale.localizationIntersectionId - the unique id of the definition object.
RemoteException
public LocalizationResource createLocalizationResource(LocalizationResource localizationResource)
throws RemoteException,
ObjectNotFoundException,
MissingDataException
ILocalizationManagerCreate a new localization resource (l10n label) from the supplied resource.
createLocalizationResource in interface ILocalizationManagerlocalizationResource - 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 LocalizationResource addLocalizationResource(LocalizationResource localizationResource,
LocalizationIntersectionId localizationIntersectionId)
throws RemoteException,
ObjectNotFoundException,
MissingDataException
ILocalizationManagerAdd a new localization resource (l10n label) to the definition.
addLocalizationResource in interface ILocalizationManagerlocalizationResource - the object containing all the new data for the new localization.localizationIntersectionId - intersection id from the Defintiion object.
MissingDataException - if the supplied localizationResource is missing required fields.
ObjectNotFoundException - if the localizationIntersectionId is bogus.
RemoteException
public void updateLocalizationResource(LocalizationResource localizationResource)
throws RemoteException,
ObjectNotFoundException
ILocalizationManagerUpdate the localization definition with the new data.
updateLocalizationResource in interface ILocalizationManagerlocalizationResource - the localizationdefinition containing the new data
ObjectNotFoundException - if the LocalizationIntersectionId in the LocalizationDefnition is bogus.
RemoteException
public void deleteLocalizationResource(LocalizationLocaleId localizationLocaleId,
LocalizationIntersectionId localizationIntersectionId)
throws RemoteException,
ObjectNotFoundException
ILocalizationManagerDelete 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.
deleteLocalizationResource in interface ILocalizationManagerlocalizationLocaleId - 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[] getLocalizationLocales()
throws RemoteException
ILocalizationManager
getLocalizationLocales in interface ILocalizationManagerRemoteException
public Locale[] getMatchingSupportedLocales(Locale[] locales)
throws RemoteException
ILocalizationManager
getMatchingSupportedLocales in interface ILocalizationManagerlocales -
RemoteException
public LocalizationLocale getLocalizationLocale(Locale locale)
throws RemoteException
getLocalizationLocale in interface ILocalizationManagerRemoteException
public LocalizationLocale getLocalizationLocale(LocalizationLocaleId localizationLocaleId)
throws RemoteException
getLocalizationLocale in interface ILocalizationManagerRemoteException
public void deleteLocalizationLocale(LocalizationLocaleId localizationLocaleId)
throws RemoteException,
ObjectNotFoundException
ILocalizationManager
deleteLocalizationLocale in interface ILocalizationManagerlocalizationLocaleId -
ObjectNotFoundException
RemoteException
public void updateLocalizationLocale(LocalizationLocale localizationLocale)
throws RemoteException,
ObjectNotFoundException
updateLocalizationLocale in interface ILocalizationManagerRemoteException
ObjectNotFoundException
public LocalizationLocale createLocalizationLocale(LocalizationLocale localizationLocale)
throws RemoteException,
MissingDataException
createLocalizationLocale in interface ILocalizationManagerRemoteException
MissingDataException
|
© 2003 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||