|
© 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 SessionBean
EJBException
RemoteException
public void ejbPassivate() throws EJBException, RemoteException
ejbPassivate
in interface SessionBean
EJBException
RemoteException
public void ejbRemove() throws EJBException, RemoteException
ejbRemove
in interface SessionBean
EJBException
RemoteException
public void setSessionContext(SessionContext sessionContext) throws EJBException, RemoteException
setSessionContext
in interface SessionBean
EJBException
RemoteException
public LocalizationResourceView getLocalizationResourceView(CustomizationContext customizationContext, LocalizationIntersectionId localizationIntersectionId) throws RemoteException
ILocalizationManager
LocalizationIntersectionId
.
getLocalizationResourceView
in interface ILocalizationManager
customizationContext
- 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
ILocalizationManager
LocalizationIntersectionId
.
getLocalizationResources
in interface ILocalizationManager
localizationIntersectionId
- a unique identifier for any definition object. Example:
PortletDefinitionId, ShellDefinitionId, ...
RemoteException
public LocalizationResource[] getLocalizationResources() throws RemoteException
ILocalizationManager
getLocalizationResources
in interface ILocalizationManager
RemoteException
public LocalizationResource getLocalizationResource(CustomizationContext customizationContext, LocalizationIntersectionId localizationIntersectionId) throws RemoteException
ILocalizationManager
A single localization resource given the specified localization intersection id and the customization context.
getLocalizationResource
in interface ILocalizationManager
customizationContext
- contains the prefered locale.localizationIntersectionId
- the unique id of the definition object.
RemoteException
public LocalizationResource createLocalizationResource(LocalizationResource localizationResource) throws RemoteException, ObjectNotFoundException, MissingDataException
ILocalizationManager
Create a new localization resource (l10n label) from the supplied resource.
createLocalizationResource
in interface ILocalizationManager
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 LocalizationResource addLocalizationResource(LocalizationResource localizationResource, LocalizationIntersectionId localizationIntersectionId) throws RemoteException, ObjectNotFoundException, MissingDataException
ILocalizationManager
Add a new localization resource (l10n label) to the definition.
addLocalizationResource
in interface ILocalizationManager
localizationResource
- 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
ILocalizationManager
Update the localization definition with the new data.
updateLocalizationResource
in interface ILocalizationManager
localizationResource
- 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
ILocalizationManager
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.
deleteLocalizationResource
in interface ILocalizationManager
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[] getLocalizationLocales() throws RemoteException
ILocalizationManager
getLocalizationLocales
in interface ILocalizationManager
RemoteException
public Locale[] getMatchingSupportedLocales(Locale[] locales) throws RemoteException
ILocalizationManager
getMatchingSupportedLocales
in interface ILocalizationManager
locales
-
RemoteException
public LocalizationLocale getLocalizationLocale(Locale locale) throws RemoteException
getLocalizationLocale
in interface ILocalizationManager
RemoteException
public LocalizationLocale getLocalizationLocale(LocalizationLocaleId localizationLocaleId) throws RemoteException
getLocalizationLocale
in interface ILocalizationManager
RemoteException
public void deleteLocalizationLocale(LocalizationLocaleId localizationLocaleId) throws RemoteException, ObjectNotFoundException
ILocalizationManager
deleteLocalizationLocale
in interface ILocalizationManager
localizationLocaleId
-
ObjectNotFoundException
RemoteException
public void updateLocalizationLocale(LocalizationLocale localizationLocale) throws RemoteException, ObjectNotFoundException
updateLocalizationLocale
in interface ILocalizationManager
RemoteException
ObjectNotFoundException
public LocalizationLocale createLocalizationLocale(LocalizationLocale localizationLocale) throws RemoteException, MissingDataException
createLocalizationLocale
in interface ILocalizationManager
RemoteException
MissingDataException
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |