|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ControlInterface
public interface BookDefinitionControl
A custom control interface used to interact with BookDefinitions.
Method Summary | |
---|---|
void |
addNavigable(NavigableDefinitionId navigableToAddId, int position, BookDefinitionId parentBookId, ResourceContext context) Adds a child page or book (a navigable) to the specified book. |
BookDefinition |
createBookDefinition(String title, String description, MenuDefinitionId menuDefinitionId, boolean isHidden, boolean isPublic, String webApp, ResourceContext context) Creates a new BookDefinition based off the supplied parameters. |
BookDefinition |
createBookDefinition(String title, String description, MenuDefinitionId menuDefinitionId, boolean isPublic, String webApp, ResourceContext context) Creates a new BookDefinition based off the supplied parameters. |
void |
deleteBookDefinition(BookDefinitionId id, boolean cascadeDelete, ResourceContext context) Deletes the specified BookDefinition . |
BookDefinition |
getBookDefinition(BookDefinitionId id, ResourceContext context) Returns the BookDefinition of the specified book definition id. |
BookDefinition |
getBookDefinition(String definitionLabel, String webAppName, ResourceContext context) Getter for returning a single BookDefinition object given a supplied book definition label. |
SortableFilterablePagedResult<BookDefinition> |
getBookDefinitions(int pageSize, BookSearchCriteria criteria, ResourceContext context) Returns a list of all the book definitions scoped to the web app. |
BookView |
getBookView(BookDefinitionId id, ResourceContext context) Returns the BookView of the specified book. |
BookView |
getBookView(String definitionLabel, String webAppName, ResourceContext context) Returns the BookView of the specified book. |
BookView |
getBookViewFromBookFile(String path, ResourceContext context) |
void |
moveNavigable(NavigableDefinitionId navigableToMoveId, int position, BookDefinitionId parentBookId, ResourceContext context) Moves a child book or page (a navigable) within the specified book. |
void |
removeNavigable(NavigableDefinitionId navigableToRemoveId, BookDefinitionId parentBookId, ResourceContext context) Removes a child book or page (a navigable) from the specified book. |
void |
setDefaultNavigable(NavigableDefinitionId navigableId, BookDefinitionId bookId, ResourceContext context) Sets the default navigable for a book. |
void |
setTitleAndDescription(String title, String description, BookDefinitionId id, ResourceContext context) Set the title and / or description for the specified book. |
BookDefinitionId |
updateThemeAndMenu(MenuDefinitionId menuId, ThemeDefinitionId themeId, BookDefinitionId bookId, boolean isHidden, ResourceContext context) Updates the appearance of a book. |
BookDefinitionId |
updateThemeAndMenu(MenuDefinitionId menuId, ThemeDefinitionId themeId, BookDefinitionId bookId, ResourceContext context) Updates the appearance of a book. |
Method Detail |
---|
BookView getBookView(BookDefinitionId id, ResourceContext context) throws ToolsException
BookView
of the specified book. BookView's include the object's children unlike instances and definitions.id
- the ID of the book to retrieve the view for.context
- the resource context.ToolsException
BookView getBookView(String definitionLabel, String webAppName, ResourceContext context) throws ToolsException
BookView
of the specified book. BookView's include the object's children unlike instances and definitions.definitionLabel
- the unique book definition identifier.webAppName
- the webapp this book is scoped to.context
- the resource context.ToolsException
void addNavigable(NavigableDefinitionId navigableToAddId, int position, BookDefinitionId parentBookId, ResourceContext context) throws ToolsException, NotEntitledException, ObjectNotFoundException, MissingDataException, DuplicateObjectException, IllegalDependencyException
navigableToAddId
- the id of the page or book to addposition
- the position of the child within the bookparentBookId
- the ID of the book to add the navigable tocontext
- the resource context.ToolsException
NotEntitledException
ObjectNotFoundException
MissingDataException
DuplicateObjectException
IllegalDependencyException
void moveNavigable(NavigableDefinitionId navigableToMoveId, int position, BookDefinitionId parentBookId, ResourceContext context) throws ToolsException, NotEntitledException, ObjectNotFoundException, IllegalDependencyException
navigableToMoveId
- the id of the page or book to moveposition
- the new position of the child within the bookparentBookId
- the ID of the book to move the navigable incontext
- the resource context.ToolsException
NotEntitledException
ObjectNotFoundException
IllegalDependencyException
void removeNavigable(NavigableDefinitionId navigableToRemoveId, BookDefinitionId parentBookId, ResourceContext context) throws ToolsException, NotEntitledException, ObjectNotFoundException, MissingDataException
navigableToRemoveId
- the id of the page or book to removeparentBookId
- the ID of the book to remove the navigable fromcontext
- the resource context.ToolsException
NotEntitledException
ObjectNotFoundException
MissingDataException
void setDefaultNavigable(NavigableDefinitionId navigableId, BookDefinitionId bookId, ResourceContext context) throws ToolsException, NotEntitledException, ObjectNotFoundException
navigableId
- the id of the page or book that will be the defaultbookId
- the id of the book to set the default navigable for.context
- the resource contextToolsException
NotEntitledException
ObjectNotFoundException
BookDefinitionId updateThemeAndMenu(MenuDefinitionId menuId, ThemeDefinitionId themeId, BookDefinitionId bookId, ResourceContext context) throws ToolsException, NotEntitledException, ObjectNotFoundException
menuId
- the id of the menu to associate with the book. If null
, no menu is associated with the book.themeId
- the id of the theme to associate with the book. If null
, no theme is associated with the book.bookId
- the id of the book to updatecontext
- the resource contextToolsException
NotEntitledException
ObjectNotFoundException
BookDefinitionId updateThemeAndMenu(MenuDefinitionId menuId, ThemeDefinitionId themeId, BookDefinitionId bookId, boolean isHidden, ResourceContext context) throws ToolsException, NotEntitledException, ObjectNotFoundException
menuId
- the id of the menu to associate with the book. If null
, no menu is associated with the book.themeId
- the id of the theme to associate with the book. If null
, no theme is associated with the book.bookId
- the id of the book to updateisHidden
- flag to hide the bookcontext
- the resource contextToolsException
NotEntitledException
ObjectNotFoundException
SortableFilterablePagedResult<BookDefinition> getBookDefinitions(int pageSize, BookSearchCriteria criteria, ResourceContext context) throws ToolsException
pageSize
- The page size for a page element inside the page iterator.criteria
- the criteria to use in the search.context
- the resource context.ToolsException
BookDefinition getBookDefinition(BookDefinitionId id, ResourceContext context) throws ToolsException
BookDefinition
of the specified book definition id.id
- the ID of the book to retrieve.context
- the resource context.BookDefintion
object.ToolsException
BookDefinition getBookDefinition(String definitionLabel, String webAppName, ResourceContext context) throws ToolsException
Getter for returning a single BookDefinition
object given a supplied book definition label.
definitionLabel
- the unique book definition identifier.webAppName
- the webapp this book is scoped to.context
- the resource context.BookDefinition
object fully populated and internationalized, otherwise, null>/code> if the object does not exist.
Throws
ToolsException
BookDefinition
void deleteBookDefinition(BookDefinitionId id, boolean cascadeDelete, ResourceContext context) throws ToolsException, ObjectInUseException, NotEntitledException, ObjectNotFoundException
BookDefinition
. Use the cascadeDelete parameter to either delete just the definition (false), or to delete the defintions and all instances of in any desktops (true). This method attempts to clean up all related security policies on the deleted Book. To achieve this, the current web app MUST be set in the ResourceContext
via the setWebApp() method, otherwise a NoWebAppFoundException
is thrown.id
- the ID of the book to delete.cascadeDelete
- if true
, all instances in any desktops of the specified definition are also deleted. If false
, only the definition is deleted.context
- the resource context.ToolsException
ObjectInUseException
NotEntitledException
ObjectNotFoundException
BookDefinition createBookDefinition(String title, String description, MenuDefinitionId menuDefinitionId, boolean isPublic, String webApp, ResourceContext context) throws ToolsException, NotEntitledException, MissingDataException
BookDefinition
based off the supplied parameters. You may specify whether the book will be public or not. Public books will be available to visitors via the visitor tools.title
- the title of the BookDefinition
description
- the description of the BookDefinition
menuDefinitionId
- the menu to use for the BookDefinition
. Pass in null
for no menu.isPublic
- whether or not to create the book as public.webApp
- the web application this book definition will be scoped to.context
- the resource context.ToolsException
NotEntitledException
MissingDataException
BookDefinition createBookDefinition(String title, String description, MenuDefinitionId menuDefinitionId, boolean isHidden, boolean isPublic, String webApp, ResourceContext context) throws ToolsException, NotEntitledException, MissingDataException
BookDefinition
based off the supplied parameters. You may specify whether the book will be public or not. Public books will be available to visitors via the visitor tools.title
- the title of the BookDefinition
description
- the description of the BookDefinition
menuDefinitionId
- the menu to use for the BookDefinition
. Pass in null
for no menu.isHidden
- whether or not book is viewableisPublic
- whether or not to create the book as public.webApp
- the web application this book definition will be scoped to.context
- the resource context.ToolsException
NotEntitledException
MissingDataException
void setTitleAndDescription(String title, String description, BookDefinitionId id, ResourceContext context) throws ToolsException, MissingDataException, ObjectNotFoundException
title
- The new title for the book definiton, or null
if the title should remain unaltered.description
- the new description for the book definition, or null
if the description should remain unaltered.id
- the ID of the book to update.context
- the resource context.ToolsException
MissingDataException
ObjectNotFoundException
BookView getBookViewFromBookFile(String path, ResourceContext context) throws IOException, XmlDisassemblerException, FileNotFoundException, ToolsException
path
- the .book or .pinc file.context
- the resource contextIOException
XmlDisassemblerException
FileNotFoundException
ToolsException
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.