|
© 2003 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 ShellDefinitions
. In general this interface provides coarse grain
getters and fine grain setters.
It is important to note that all methods on this interface are fully internationalized and entitled. All titles and descriptions on the objects returned by these methods are internationalized to the prefered locale. Also, all methods are entitled, meaning if the caller does not have the required credentials the method may return a subset of the actual list or be unable to perform the specified function.
Method Summary | |
ShellDefinition |
createShellDefinition(CustomizationContext customizationContext,
ShellDefinition shellDefinition)
Creates a new ShellView Definition with its placeholders. |
void |
deleteShellDefinition(CustomizationContext customizationContext,
ShellDefinitionId shellDefinitionId)
Delete a shell definition. |
void |
deleteShellDefinitionWithReplacement(CustomizationContext customizationContext,
ShellDefinitionId deleteShellDefinitionId,
ShellDefinitionId replacementShellDefinitionId)
Delete a shell definition and replace any uses of that shell with a replacement shell. |
ShellDefinition |
getShellDefinition(CustomizationContext customizationContext,
ShellDefinitionId shellDefinitionId)
Getter for returning a single ShellDefinition object given a supplied shell
definition identifier. |
ShellDefinition |
getShellDefinitionFromFile(CustomizationContext customizationContext,
String shellFile,
String webAppName)
Return a shel definition with the shellFile equal to the supplied filePath. |
ShellDefinitionId |
getShellDefinitionId(CustomizationContext customizationContext,
String markupName,
String webAppName)
Getter for returning a single ShellDefinitionId object given a supplied shell
markup name. |
ShellDefinition[] |
getShellDefinitions(CustomizationContext customizationContext,
String webapp)
Getter for returning a list of all ShellDefinitions scoped to the supplied webapp. |
ShellView |
getShellView(CustomizationContext customizationContext,
ShellDefinitionId shellDefinitionId)
Getter for returning an immutable deep copy of a ShellView. |
void |
updateShellDefinition(CustomizationContext customizationContext,
ShellDefinition shellDefinition)
Update the shell definition with the new data. |
Method Detail |
public ShellView getShellView(CustomizationContext customizationContext, ShellDefinitionId shellDefinitionId) throws RemoteException
Getter for returning an immutable deep copy of a ShellView. The ShellView
object, unlike the ShellDefinition
or the ShellInstance
objects
contains a full set of references to all child pages, shells and so on. The
ShellView
object however is immutable.
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.shellDefinitionId
- the unique shellDefinitionId.
RemoteException
public ShellDefinition[] getShellDefinitions(CustomizationContext customizationContext, String webapp) throws RemoteException
Getter for returning a list of all ShellDefinitions
scoped to the supplied webapp.
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.webapp
- the web application these shell definitions are scoped to.
RemoteException
ShellDefinition
public ShellDefinition getShellDefinition(CustomizationContext customizationContext, ShellDefinitionId shellDefinitionId) throws RemoteException
Getter for returning a single ShellDefinition
object given a supplied shell
definition identifier.
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.shellDefinitionId
- the unique shell definition identifier.
ShellDefinition
object fully populated and internationalized, otherwise,
null>/code> if the object does not exist.
RemoteException
- See Also:
ShellDefinition
public ShellDefinition createShellDefinition(CustomizationContext customizationContext, ShellDefinition shellDefinition) throws MissingDataException, NotEntitledException, RemoteException
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.shellDefinition
- the shell data and associated placeholders
MissingDataException
- the shellDefiniiton supplied as an argument is missing some vital data.
NotEntitledException
- the caller is not entitled to create a new shell.
RemoteException
public void updateShellDefinition(CustomizationContext customizationContext, ShellDefinition shellDefinition) throws ObjectNotFoundException, NotEntitledException, RemoteException
Update the shell definition with the new data.
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.shellDefinition
- the shell definition containing the new data
ObjectNotFoundException
- if the LocalizationIntersectionId in the LocalizationResource is bogus.
NotEntitledException
RemoteException
public void deleteShellDefinition(CustomizationContext customizationContext, ShellDefinitionId shellDefinitionId) throws ObjectNotFoundException, ObjectInUseException, NotEntitledException, RemoteException
Delete a shell definition.
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.shellDefinitionId
- the id of the shell definition to delete.
ObjectNotFoundException
- if the shellDefinitionId is bogus
ObjectInUseException
- if page instances are currently using this shell
NotEntitledException
- the caller is not entitled to perform this operation.
RemoteException
deleteShellDefinitionWithReplacement(com.bea.netuix.application.manager.CustomizationContext, com.bea.netuix.application.identifier.ShellDefinitionId, com.bea.netuix.application.identifier.ShellDefinitionId)
public void deleteShellDefinitionWithReplacement(CustomizationContext customizationContext, ShellDefinitionId deleteShellDefinitionId, ShellDefinitionId replacementShellDefinitionId) throws ObjectNotFoundException, NotEntitledException, RemoteException
Delete a shell definition and replace any uses of that shell with a replacement shell. This method is useful for deleting a shell that is in use by book instances and not having to delete those book instances.
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.deleteShellDefinitionId
- the id of the shell definition to delete.replacementShellDefinitionId
- the id of the replacement shell
ObjectNotFoundException
- if either of the shellDefinitionIds are bogus
NotEntitledException
- the caller is not entitled to perform this operation.
RemoteException
deleteShellDefinition(com.bea.netuix.application.manager.CustomizationContext, com.bea.netuix.application.identifier.ShellDefinitionId)
public ShellDefinitionId getShellDefinitionId(CustomizationContext customizationContext, String markupName, String webAppName) throws RemoteException
Getter for returning a single ShellDefinitionId
object given a supplied shell
markup name.
customizationContext
- customization information such as prefered locales and desktopInstanceId.markupName
- the markup name attribute supplied on the tag,webAppName
- as defined in the config.xml
RemoteException
public ShellDefinition getShellDefinitionFromFile(CustomizationContext customizationContext, String shellFile, String webAppName) throws RemoteException
Return a shel definition with the shellFile equal to the supplied filePath. The webAppName name is the deployed name of the module, and is often the name of the WAR file or directory, although this is not always the case. This name is that name given in config.xml as the Name of the WebAppComponent element (and thus WebAppComponentMBean's Name attribute). Note that this name is not the name of the URL context root.
customizationContext
- shellFile
- the relative path to the shell file from the webapp directory example "/framework/makrup/headfooter.shell"webAppName
- 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 |