© 2003 BEA Systems, Inc.

com.bea.netuix.application.manager
Interface IBookInstanceManager

All Known Subinterfaces:
PortalCustomizationManager
All Known Implementing Classes:
PortalCustomizationManagerImpl

public interface IBookInstanceManager

This is the primary interface for performing persistent store operations on BookInstance objects. 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
 NavigableInstance addNavigable(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId, BookInstanceId bookInstanceId, NavigableDefinitionId navigableDefinitionId, int position, int align)
          Create an new instance of a NavigableView (BookView or PageView) from the supplied NavigableDefinition object.
 BookInstance getBookInstance(CustomizationContext customizationContext, BookInstanceId bookInstanceId)
          Getter for returning a BookInstance identified by the supplieed instance id.
 BookView getBookView(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId, BookInstanceId bookInstanceId)
          Getter for returning an immutable deep copy of a BookView.
 NavigableInstance moveNavigable(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId, BookInstanceId fromParentBookInstanceId, BookInstanceId toParentBookInstanceId, NavigableInstanceId navigableInstanceId, int position, int alignment)
          Relocate the navigable instance to a new location.
 void removeNavigable(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId, NavigableInstance navigableInstance)
          Remove a NavigableView (BookView or PageView) from the specified book.
 void setDefaultNavigable(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId, BookInstanceId bookInstanceId, NavigableInstanceId navigableInstanceId)
          Set the default navigable (page or book) on a page.
 BookInstance updateBookInstance(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId, BookInstance bookInstance)
          Update the persistent store for the supplied BookInstance.
 

Method Detail

getBookView

public BookView getBookView(CustomizationContext customizationContext,
                            DesktopDefinitionId desktopDefinitionId,
                            BookInstanceId bookInstanceId)
                     throws RemoteException

Getter for returning an immutable deep copy of a BookView. The BookView object, unlike the BookDefinition or the BookInstance objects contains a deep copy of all references to all child pages, books and so on. The BookView object however is immutable.

Parameters:
customizationContext - customization information such as prefered locales and desktopInstanceId returned.
bookInstanceId - the unique instance id of the book.
Returns:
an immutable deep copy BookView object if one exist, otherwise null.
RemoteException
See Also:
IBookDefinitionManager.getBookView(com.bea.netuix.application.manager.CustomizationContext, com.bea.netuix.application.identifier.BookDefinitionId)

getBookInstance

public BookInstance getBookInstance(CustomizationContext customizationContext,
                                    BookInstanceId bookInstanceId)
                             throws RemoteException

Getter for returning a BookInstance identified by the supplieed instance id.

Parameters:
customizationContext - customization information such as prefered locales and desktopInstanceId
bookInstanceId - the unique id of the instace to return
Returns:
a fully populated internationalized BookInstance objects if it exist, otherwisez null.
RemoteException

updateBookInstance

public BookInstance updateBookInstance(CustomizationContext customizationContext,
                                       DesktopDefinitionId desktopDefinitionId,
                                       BookInstance bookInstance)
                                throws RemoteException,
                                       ObjectNotFoundException,
                                       NotEntitledException

Update the persistent store for the supplied BookInstance. All attributes of the BookInstance are updated in persistent store.

Parameters:
desktopDefinitionId - the desktop context to which this update applies.
bookInstance - the book instance containing all the new data. reference the same book defnition.
Throws:
ObjectNotFoundException - the BookInstanceId specified in the bookInstance is bogus.
RemoteException
NotEntitledException

addNavigable

public NavigableInstance addNavigable(CustomizationContext customizationContext,
                                      DesktopDefinitionId desktopDefinitionId,
                                      BookInstanceId bookInstanceId,
                                      NavigableDefinitionId navigableDefinitionId,
                                      int position,
                                      int align)
                               throws RemoteException,
                                      ObjectNotFoundException,
                                      MissingDataException,
                                      NotEntitledException,
                                      IllegalDependencyException

Create an new instance of a NavigableView (BookView or PageView) from the supplied NavigableDefinition object.

Parameters:
desktopDefinitionId - the desktop context to which this update applies.
bookInstanceId - the book instance to add the navigable to.
navigableDefinitionId - the navigable defintion id from which to create the instance.
position - the position in the book (or menu) to insert this navigable (starts with 0)
align - position the page from the left (top) or right (bottom)
Returns:
the NavigableView instance which was created.
Throws:
ObjectNotFoundException - BookDefinitionId or the NavigableDefinition are bogus.
IllegalDependencyException - adding the Navigable to the BookInstance would cause a recursive dependancy
MissingDataException - missing vital data in the NavigableDefinition.
NotEntitledException - if the caller does not have the required permissions to delete this object.
RemoteException

moveNavigable

public NavigableInstance moveNavigable(CustomizationContext customizationContext,
                                       DesktopDefinitionId desktopDefinitionId,
                                       BookInstanceId fromParentBookInstanceId,
                                       BookInstanceId toParentBookInstanceId,
                                       NavigableInstanceId navigableInstanceId,
                                       int position,
                                       int alignment)
                                throws RemoteException,
                                       ObjectNotFoundException,
                                       NotEntitledException,
                                       IllegalDependencyException

Relocate the navigable instance to a new location.

Parameters:
desktopDefinitionId - the desktop context to which this update applies.
fromParentBookInstanceId - the parent book instance id we are moving this navigable from.
toParentBookInstanceId - the parent book instance to move the navigable instance to.
navigableInstanceId - the identifier identifying the instance to move.
position - the position in the book (or menu) to insert this navigable (starts with 0)
alignment - position the page from the left (top) or right (bottom) reference the same book defnition.
Returns:
a reference to the newly positioned navigableInstance
Throws:
ObjectNotFoundException - BookInstanceId or the NavigableInstanceId are bogus.
NotEntitledException - if the caller does not have the required permissions to delete this object.
IllegalDependencyException - if this move would cause an infinite loop condition
RemoteException

removeNavigable

public void removeNavigable(CustomizationContext customizationContext,
                            DesktopDefinitionId desktopDefinitionId,
                            NavigableInstance navigableInstance)
                     throws RemoteException,
                            ObjectNotFoundException,
                            MissingDataException,
                            NotEntitledException

Remove a NavigableView (BookView or PageView) from the specified book. This method does not delete the NavigableView it just removes it from the book.

Parameters:
desktopDefinitionId - the desktop context to which this update applies.
navigableInstance - the instance to be removed. reference the same book defnition.
Throws:
ObjectNotFoundException - BookInstanceId or the NavigableInstanceId are bogus.
NotEntitledException - if the caller does not have the required permissions to delete this object.
RemoteException
MissingDataException

setDefaultNavigable

public void setDefaultNavigable(CustomizationContext customizationContext,
                                DesktopDefinitionId desktopDefinitionId,
                                BookInstanceId bookInstanceId,
                                NavigableInstanceId navigableInstanceId)
                         throws RemoteException,
                                ObjectNotFoundException,
                                NotEntitledException

Set the default navigable (page or book) on a page.

Parameters:
desktopDefinitionId - the desktop context to which this update applies.
bookInstanceId - the parent book instance to set the default on.
navigableInstanceId - the navigable instance id of the child page/book to become the default
Throws:
ObjectNotFoundException - BookInstanceId or the NavigableInstanceId are bogus.
NotEntitledException - if the caller does not have the required permissions to delete this object.
RemoteException

© 2003 BEA Systems, Inc.

Copyright © 2003 BEA Systems, Inc. All Rights Reserved