|
© 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 PageDefinitions
. 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 | |
PlaceableInstance |
addPlaceable(CustomizationContext customizationContext,
DesktopDefinitionId desktopDefinitionId,
PageInstanceId pageInstanceId,
PlaceableDefinitionId placeableDefinitionId,
PlaceholderDefinitionId placeholderDefinitionId,
int position)
Create a new instance of a placeable (PortletView or BookView) by placing the definition in a placeholder. |
PageInstance |
getPageInstance(CustomizationContext customizationContext,
PageInstanceId pageInstanceId)
Getter for returning a single PageInstance . |
PageView |
getPageView(CustomizationContext customizationContext,
DesktopDefinitionId desktopDefinitionId,
PageInstanceId pageInstanceId)
Getter for returning an immutable deep copy of a PageView. |
void |
movePlaceable(CustomizationContext customizationContext,
DesktopDefinitionId desktopDefinitionId,
PlacementId placementId,
PageInstanceId toPageInstanceId,
PlaceholderDefinitionId placeholderDefinitionId,
int position)
Move a placeable instance from one placeholder to another. |
void |
removePlaceable(CustomizationContext customizationContext,
DesktopDefinitionId desktopDefinitionId,
PlaceableInstance placeableInstance)
Remove a placeable from a page's placeholder. |
PageInstance |
updatePageInstance(CustomizationContext customizationContext,
DesktopDefinitionId desktopDefinitionId,
PageInstance pageInstance)
Update the page instance with the new data. |
Method Detail |
public PageView getPageView(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId, PageInstanceId pageInstanceId) throws RemoteException
Getter for returning an immutable deep copy of a PageView. The PageView
object, unlike the PageDefinition
or the PageInstance
objects
contains a full set of references to all child pages, pages and so on. The
PageView
object however is immutable.
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.desktopDefinitionId
- the desktop definition it this page is placed inpageInstanceId
- the unique pageInstanceId.
RemoteException
public PageInstance getPageInstance(CustomizationContext customizationContext, PageInstanceId pageInstanceId) throws RemoteException
Getter for returning a single PageInstance
.
customizationContext
- customization information such as prefered locales and desktopInstanceId
returned.
RemoteException
PageDefinition
public PageInstance updatePageInstance(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId, PageInstance pageInstance) throws RemoteException, ObjectNotFoundException, NotEntitledException
Update the page instance with the new data.
desktopDefinitionId
- the desktop this instance is associated withpageInstance
- the page definition containing the new data
ObjectNotFoundException
- if the LocalizationIntersectionId in the LocalizationResource is bogus.
RemoteException
NotEntitledException
public PlaceableInstance addPlaceable(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId, PageInstanceId pageInstanceId, PlaceableDefinitionId placeableDefinitionId, PlaceholderDefinitionId placeholderDefinitionId, int position) throws RemoteException, ObjectNotFoundException, MissingDataException, NotEntitledException, IllegalDependencyException
customizationContext
- customization information such as prefered locales.desktopDefinitionId
- context of the desktop to which this appliespageInstanceId
- the page instance id of the page to add the placeable.placeableDefinitionId
- the abstract definition id of the placeableplaceholderDefinitionId
- the placehoder to place this placeable in.position
- the position in the placeholder to insert the placeholder.
ObjectNotFoundException
- if the PageDefinitionId or the PlaceholderDefinition Id are bogus
IllegalDependencyException
- adding the Placeable to the PageInstance would cause a recursive dependancy
MissingDataException
- the placeableDefinition is missing some vital data.
NotEntitledException
- the caller is not entitled to perform this action
RemoteException
public void movePlaceable(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId, PlacementId placementId, PageInstanceId toPageInstanceId, PlaceholderDefinitionId placeholderDefinitionId, int position) throws RemoteException, ObjectNotFoundException, NotEntitledException, IllegalDependencyException
customizationContext
- customization information such as prefered locales.desktopDefinitionId
- context of the desktop to which this appliesplacementId
- the placement id of the placeables current placement within the pagetoPageInstanceId
- the id of the page to move the placeable to.placeholderDefinitionId
- the new placehoder to place this placeable in.position
- the position in the placeholder to insert the placeholder.
ObjectNotFoundException
- if the PageDefinitionId or the PlaceholderDefinition Id are bogus
NotEntitledException
- the caller is not entitled to perform this action
RemoteException
IllegalDependencyException
public void removePlaceable(CustomizationContext customizationContext, DesktopDefinitionId desktopDefinitionId, PlaceableInstance placeableInstance) throws RemoteException, ObjectNotFoundException, MissingDataException, NotEntitledException
customizationContext
- customization information such as prefered locales.desktopDefinitionId
- context of the desktop to which this appliesplaceableInstance
- the instance to be removed
ObjectNotFoundException
- If the padeDefinitionId or the placeableInstanceId are bogus
definition is in use by other instance.
NotEntitledException
- the caller is not entitled to perform this action
RemoteException
MissingDataException
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |