|
© 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 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 |
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.
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.bookInstanceId
- the unique instance id of the book.
RemoteException
IBookDefinitionManager.getBookView(com.bea.netuix.application.manager.CustomizationContext, com.bea.netuix.application.identifier.BookDefinitionId)
public BookInstance getBookInstance(CustomizationContext customizationContext, BookInstanceId bookInstanceId) throws RemoteException
Getter for returning a BookInstance
identified by the supplieed instance id.
customizationContext
- customization information such as prefered locales and desktopInstanceIdbookInstanceId
- the unique id of the instace to return
BookInstance
objects if it exist, otherwisez null.
RemoteException
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.
desktopDefinitionId
- the desktop context to which this update applies.bookInstance
- the book instance containing all the new data.
reference the same book defnition.
ObjectNotFoundException
- the BookInstanceId specified in the bookInstance is bogus.
RemoteException
NotEntitledException
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.
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)
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
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.
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.
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
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.
desktopDefinitionId
- the desktop context to which this update applies.navigableInstance
- the instance to be removed.
reference the same book defnition.
ObjectNotFoundException
- BookInstanceId or the NavigableInstanceId are bogus.
NotEntitledException
- if the caller does not have the required permissions to delete this object.
RemoteException
MissingDataException
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.
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
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. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |