|
© 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.manager.persistence.jdbc.LookAndFeelDefinitionManagerImpl
Field Summary | |
protected static Debug |
debug
|
Constructor Summary | |
LookAndFeelDefinitionManagerImpl()
|
Method Summary | |
LookAndFeelDefinition |
createLookAndFeelDefinition(CustomizationContext customizationContext,
LookAndFeelDefinition lookAndFeelDefinition)
Creates a new LookAndFeelView Definition. |
ThemeDefinition |
createThemeDefinition(CustomizationContext customizationContext,
ThemeDefinition themeDefinition)
Creates a new ThemeView Definition with its placeholders. |
void |
deleteLookAndFeelDefinition(CustomizationContext customizationContext,
LookAndFeelDefinitionId lookAndFeelDefinitionId)
Delete a lookAndFeel definition. |
void |
deleteLookAndFeelDefinitionWithReplacement(CustomizationContext customizationContext,
LookAndFeelDefinitionId deleteLookAndFeelDefinitionId,
LookAndFeelDefinitionId replacementLookAndFeelDefinitionId)
Delete a lookAndFeel definition (and its skins, skeletons and themes) and replace any uses of that lookAndFeel with a replacement lookAndFeel. |
void |
deleteThemeDefinition(CustomizationContext customizationContext,
ThemeDefinitionId themeDefinitionId)
Delete a theme definition that is not in use. |
void |
deleteThemeDefinitionWithCascade(CustomizationContext customizationContext,
ThemeDefinitionId themeDefinitionId)
Delete a theme definition and remove anrefernces to it from book, pages or portlets This method is useful for deleting a theme that is in use by book, pages or portlets. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
LookAndFeelDefinition |
getLookAndFeelDefinition(CustomizationContext customizationContext,
LookAndFeelDefinitionId lookAndFeelDefinitionId)
Getter for returning a single LookAndFeelDefinition object given a supplied lookAndFeel
definition identifier. |
LookAndFeelDefinition |
getLookAndFeelDefinitionFromFile(CustomizationContext customizationContext,
String lookAndFeelFile,
String webAppName)
Getter for returning a single LookAndFeelDefinition object given a supplied lookAndFeel
file name. |
LookAndFeelDefinitionId |
getLookAndFeelDefinitionId(CustomizationContext customizationContext,
String markupName,
String webAppName)
Getter for returning a single LookAndFeelDefinitionId object given a supplied lookAndFeel
markup name and webapp. |
LookAndFeelDefinition[] |
getLookAndFeelDefinitions(CustomizationContext customizationContext,
String webapp)
Getter for returning a list of all LookAndFeelDefinitions scoped to the supplied webapp. |
LookAndFeelView |
getLookAndFeelView(CustomizationContext customizationContext,
LookAndFeelDefinitionId lookAndFeelDefinitionId)
Getter for returning an immutable deep copy of a LookAndFeelView. |
ThemeDefinition |
getThemeDefinition(CustomizationContext customizationContext,
ThemeDefinitionId themeDefinitionId)
Getter for returning a single ThemeDefinition object given a supplied theme
definition identifier. |
ThemeDefinition |
getThemeDefinitionFromFile(CustomizationContext customizationContext,
String themeFile,
String webAppName)
Getter for returning a single ThemeDefinition object given a supplied theme
file name. |
ThemeDefinitionId |
getThemeDefinitionId(CustomizationContext customizationContext,
String markupName,
String webAppName)
Getter for returning a single ThemeDefinitionId object given a supplied theme
markup name and webapp. |
ThemeDefinition[] |
getThemeDefinitions(CustomizationContext customizationContext,
String webapp)
Getter for returning a list of all ThemeDefinitions scoped to the supplied webapp. |
ThemeView |
getThemeView(CustomizationContext customizationContext,
ThemeDefinitionId themeDefinitionId)
Getter for returning an immutable deep copy of a ThemeView. |
void |
setSessionContext(SessionContext sessionContext)
|
void |
updateLookAndFeelDefinition(CustomizationContext customizationContext,
LookAndFeelDefinition lookAndFeelDefinition)
Update the lookAndFeel definition with the new data. |
void |
updateThemeDefinition(CustomizationContext customizationContext,
ThemeDefinition themeDefinition)
Update the theme 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 LookAndFeelDefinitionManagerImpl()
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 LookAndFeelView getLookAndFeelView(CustomizationContext customizationContext, LookAndFeelDefinitionId lookAndFeelDefinitionId)
ILookAndFeelDefinitionManager
Getter for returning an immutable deep copy of a LookAndFeelView. The LookAndFeelView
object, unlike the LookAndFeelDefinition
or the LookAndFeelInstance
objects
contains a full set of references to all child pages, lookAndFeels and so on. The
LookAndFeelView
object however is immutable.
getLookAndFeelView
in interface ILookAndFeelDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.lookAndFeelDefinitionId
- the unique lookAndFeelDefinitionId.
public LookAndFeelDefinition[] getLookAndFeelDefinitions(CustomizationContext customizationContext, String webapp) throws RemoteException
ILookAndFeelDefinitionManager
Getter for returning a list of all LookAndFeelDefinitions
scoped to the supplied webapp.
getLookAndFeelDefinitions
in interface ILookAndFeelDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.webapp
- the web application these lookAndFeel definitions are scoped to.
LookAndFeelDefinition
objects if they exist, otherwise, an empty array.
RemoteException
LookAndFeelDefinition
public LookAndFeelDefinition getLookAndFeelDefinition(CustomizationContext customizationContext, LookAndFeelDefinitionId lookAndFeelDefinitionId) throws RemoteException
ILookAndFeelDefinitionManager
Getter for returning a single LookAndFeelDefinition
object given a supplied lookAndFeel
definition identifier.
getLookAndFeelDefinition
in interface ILookAndFeelDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.lookAndFeelDefinitionId
- the unique lookAndFeel definition identifier.
LookAndFeelDefinition
object fully populated and internationalized, otherwise,
null>/code> if the object does not exist.
RemoteException
- See Also:
LookAndFeelDefinition
public LookAndFeelDefinition getLookAndFeelDefinitionFromFile(CustomizationContext customizationContext, String lookAndFeelFile, String webAppName) throws RemoteException
ILookAndFeelDefinitionManager
Getter for returning a single LookAndFeelDefinition
object given a supplied lookAndFeel
file name.
getLookAndFeelDefinitionFromFile
in interface ILookAndFeelDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.lookAndFeelFile
- the unique lookAndFeel definition identifier.
LookAndFeelDefinition
object fully populated and internationalized, otherwise,
null>/code> if the object does not exist.
RemoteException
- See Also:
LookAndFeelDefinition
public LookAndFeelDefinition createLookAndFeelDefinition(CustomizationContext customizationContext, LookAndFeelDefinition lookAndFeelDefinition) throws RemoteException, MissingDataException, NotEntitledException
ILookAndFeelDefinitionManager
Creates a new LookAndFeelView Definition. While look and feels can be created by this method they should be created via a .laf file. The .laf file may be located anywhere in the webap pdirectory and immediately gets picked up by the system.
createLookAndFeelDefinition
in interface ILookAndFeelDefinitionManager
customizationContext
- customization information such as prefered locales and http request.lookAndFeelDefinition
- the lookAndFeel data and associated placeholders
NotEntitledException
- the caller is not entitled to create a new lookAndFeel.
MissingDataException
- the lookAndFeelDefiniiton supplied as an argument is missing some vital data.
RemoteException
public void updateLookAndFeelDefinition(CustomizationContext customizationContext, LookAndFeelDefinition lookAndFeelDefinition) throws RemoteException, ObjectNotFoundException, NotEntitledException, MissingDataException
ILookAndFeelDefinitionManager
Update the lookAndFeel definition with the new data.
updateLookAndFeelDefinition
in interface ILookAndFeelDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.lookAndFeelDefinition
- the lookAndFeeldefinition containing the new data
MissingDataException
- if the LookAndFeelDefinition or any of the ThemeDefinitions are missing non
nullable data.
ObjectNotFoundException
- if the LocalizationIntersectionId in the LocalizationDefnition is bogus.
RemoteException
NotEntitledException
public void deleteLookAndFeelDefinition(CustomizationContext customizationContext, LookAndFeelDefinitionId lookAndFeelDefinitionId) throws RemoteException, ObjectNotFoundException, ObjectInUseException, NotEntitledException
ILookAndFeelDefinitionManager
Delete a lookAndFeel definition. Note if the .laf file still exist the look and feel will get recreated. This method is for deleting a look and feel after the .laf file has been deleted.
deleteLookAndFeelDefinition
in interface ILookAndFeelDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.lookAndFeelDefinitionId
- the id of the lookAndFeel definition to delete.
ObjectInUseException
- if page instances are currently using this lookAndFeel
NotEntitledException
- the caller is not entitled to perform this operation.
ObjectNotFoundException
- if the lookAndFeelDefinitionId is bogus
RemoteException
ILookAndFeelDefinitionManager.deleteLookAndFeelDefinitionWithReplacement(com.bea.netuix.application.manager.CustomizationContext, com.bea.netuix.application.identifier.LookAndFeelDefinitionId, com.bea.netuix.application.identifier.LookAndFeelDefinitionId)
public void deleteLookAndFeelDefinitionWithReplacement(CustomizationContext customizationContext, LookAndFeelDefinitionId deleteLookAndFeelDefinitionId, LookAndFeelDefinitionId replacementLookAndFeelDefinitionId) throws RemoteException, ObjectNotFoundException, NotEntitledException
ILookAndFeelDefinitionManager
Delete a lookAndFeel definition (and its skins, skeletons and themes) and replace any uses of that lookAndFeel with a replacement lookAndFeel. This method is useful for deleting a lookAndFeel that is in use by desktop instances and not having to delete those dektopinstances instances. Note if the .laf file still exist the look and feel will get recreated. This method is for deleting a look and feel after the .laf file has been deleted.
deleteLookAndFeelDefinitionWithReplacement
in interface ILookAndFeelDefinitionManager
customizationContext
- customization information such as prefered locales and request.deleteLookAndFeelDefinitionId
- the id of the lookAndFeel definition to delete.replacementLookAndFeelDefinitionId
- the id of the replacement lookAndFeel
NotEntitledException
- the caller is not entitled to perform this operation.
ObjectNotFoundException
- if either of the lookAndFeelDefinitionIds are bogus
RemoteException
ILookAndFeelDefinitionManager.deleteLookAndFeelDefinition(com.bea.netuix.application.manager.CustomizationContext, com.bea.netuix.application.identifier.LookAndFeelDefinitionId)
public LookAndFeelDefinitionId getLookAndFeelDefinitionId(CustomizationContext customizationContext, String markupName, String webAppName) throws RemoteException
ILookAndFeelDefinitionManager
Getter for returning a single LookAndFeelDefinitionId
object given a supplied lookAndFeel
markup name and webapp.
getLookAndFeelDefinitionId
in interface ILookAndFeelDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.markupName
- the markup name attribute supplied on the tag in the .laf filewebAppName
- as defined in the config.xml
RemoteException
public ThemeView getThemeView(CustomizationContext customizationContext, ThemeDefinitionId themeDefinitionId) throws RemoteException
IThemeDefinitionManager
Getter for returning an immutable deep copy of a ThemeView. The ThemeView
object, unlike the ThemeDefinition
or the ThemeInstance
objects
contains a full set of references to all child pages, themes and so on. The
ThemeView
object however is immutable.
getThemeView
in interface IThemeDefinitionManager
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.themeDefinitionId
- the unique themeDefinitionId.
RemoteException
public ThemeDefinition[] getThemeDefinitions(CustomizationContext customizationContext, String webapp) throws RemoteException
IThemeDefinitionManager
Getter for returning a list of all ThemeDefinitions
scoped to the supplied webapp.
getThemeDefinitions
in interface IThemeDefinitionManager
customizationContext
- customization information such as prefered locales and http request.webapp
- the web application these theme definitions are scoped to.
ThemeDefinition
objects if they exist, otherwise, an empty array.
RemoteException
ThemeDefinition
public ThemeDefinition getThemeDefinition(CustomizationContext customizationContext, ThemeDefinitionId themeDefinitionId) throws RemoteException
IThemeDefinitionManager
Getter for returning a single ThemeDefinition
object given a supplied theme
definition identifier.
getThemeDefinition
in interface IThemeDefinitionManager
customizationContext
- customization information such as prefered locales and http request.themeDefinitionId
- the unique theme definition identifier.
ThemeDefinition
object fully populated and internationalized, otherwise,
null>/code> if the object does not exist.
RemoteException
- See Also:
ThemeDefinition
public ThemeDefinition getThemeDefinitionFromFile(CustomizationContext customizationContext, String themeFile, String webAppName) throws RemoteException
IThemeDefinitionManager
Getter for returning a single ThemeDefinition
object given a supplied theme
file name.
getThemeDefinitionFromFile
in interface IThemeDefinitionManager
customizationContext
- customization information such as prefered locales and http request.themeFile
- the unique theme definition identifier.
ThemeDefinition
object fully populated and internationalized, otherwise,
null>/code> if the object does not exist.
RemoteException
- See Also:
ThemeDefinition
public ThemeDefinition createThemeDefinition(CustomizationContext customizationContext, ThemeDefinition themeDefinition) throws RemoteException, MissingDataException, NotEntitledException
IThemeDefinitionManager
Creates a new ThemeView Definition with its placeholders. Note, while themes can be created via this method they should be created via a .theme file located anywhere in the webapp directory. Once the file is created it will be immediately be picked up by the system.
createThemeDefinition
in interface IThemeDefinitionManager
customizationContext
- customization information such as prefered locales and http request.themeDefinition
- the theme data and associated placeholders
NotEntitledException
- the caller is not entitled to create a new theme.
MissingDataException
- the themeDefiniiton supplied as an argument is missing some vital data.
RemoteException
public void updateThemeDefinition(CustomizationContext customizationContext, ThemeDefinition themeDefinition) throws RemoteException, ObjectNotFoundException, NotEntitledException
IThemeDefinitionManager
Update the theme definition with the new data.
updateThemeDefinition
in interface IThemeDefinitionManager
customizationContext
- customization information such as prefered locales and http request.themeDefinition
- the themedefinition containing the new data
ObjectNotFoundException
- if the LocalizationIntersectionId in the LocalizationDefnition is bogus.
RemoteException
NotEntitledException
public void deleteThemeDefinition(CustomizationContext customizationContext, ThemeDefinitionId themeDefinitionId) throws RemoteException, ObjectNotFoundException, ObjectInUseException, NotEntitledException
IThemeDefinitionManager
Delete a theme definition that is not in use.
deleteThemeDefinition
in interface IThemeDefinitionManager
customizationContext
- customization information such as prefered locales and http requestthemeDefinitionId
- the id of the theme definition to delete.
ObjectNotFoundException
- if the themeDefinitionId is bogus
ObjectInUseException
- if pages,book or portlet instances are currently using this theme.
NotEntitledException
- the caller is not entitled to perform this operation.
RemoteException
IThemeDefinitionManager.deleteThemeDefinitionWithCascade(com.bea.netuix.application.manager.CustomizationContext, com.bea.netuix.application.identifier.ThemeDefinitionId)
public void deleteThemeDefinitionWithCascade(CustomizationContext customizationContext, ThemeDefinitionId themeDefinitionId) throws RemoteException, ObjectNotFoundException, NotEntitledException
IThemeDefinitionManager
Delete a theme definition and remove anrefernces to it from book, pages or portlets This method is useful for deleting a theme that is in use by book, pages or portlets.
deleteThemeDefinitionWithCascade
in interface IThemeDefinitionManager
customizationContext
- customization information such as prefered locales and http request.themeDefinitionId
- the id of the theme definition to delete.
NotEntitledException
- the caller is not entitled to perform this operation.
ObjectNotFoundException
- if either of the themeDefinitionIds are bogus
RemoteException
IThemeDefinitionManager.deleteThemeDefinition(com.bea.netuix.application.manager.CustomizationContext, com.bea.netuix.application.identifier.ThemeDefinitionId)
public ThemeDefinitionId getThemeDefinitionId(CustomizationContext customizationContext, String markupName, String webAppName) throws RemoteException
IThemeDefinitionManager
Getter for returning a single ThemeDefinitionId
object given a supplied theme
markup name and webapp.
getThemeDefinitionId
in interface IThemeDefinitionManager
customizationContext
- customization information such as prefered locales and http request.markupName
- the markup name attribute supplied on the tag in the .laf filewebAppName
- as defined in the config.xml
RemoteException
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |