|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines methods to manage a hierarchy of PortalDefinitions.
Assumes that the hierarchy is a top down tree with each portal having
only one parent portal. However, the same PortalDefinition
can reside under multiple portals.
Imposes only a one level hierarchy of PortalDefinitions i.e. all
PortalDefinitionss have to be first level children of the root
PortalDefinition and cannot have chidren of their own. Also
disallows the root PortalDefinition to have any
DesktopDefinitions categorized under it.
"Definitions" can be thought of as objects in the Library. Objects in the library are not associated to
any one Desktop. In other words definitions can be placed on zero or more desktops and changes
made in the Library (to the definitions) are cascaded down to object on the desktops. If you are
only interested in effecting a single desktop then use the PortalCustomizationManager and
make changes to the "Instances".
| Method Summary | |
PortalDefinition |
createPortalDefinition(CustomizationContext customizationContext,
PortalDefinition pd)
Creates a persistent version of a PortalDefinition
from the provided PortalDefinition. |
int |
deletePortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
Deletes a PortalDefinition. |
DefinitionCount |
getDefinitionCount(CustomizationContext customizationContext,
boolean _public)
Return a count of all the definitions in the system. |
DefinitionCount |
getDefinitionCount(CustomizationContext customizationContext,
String webapp,
boolean _public)
Return a count of all the definitions scoped to a webapp. |
int |
getDesktopDefinitionCount(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
Returns the number of DesktopDefinitions under
portal portalPath. |
PortalPath[] |
getDesktopDefinitionPortals(CustomizationContext customizationContext,
DesktopPath desktopPath,
String webapp)
Returns all the PortalPaths that a
DesktopDefinition is a part of. |
DesktopDefinition[] |
getDesktopDefinitions(CustomizationContext customizationContext,
PortalPath portalPath,
int begin,
int end,
String webapp)
Returns DesktopDefinitions in the begin
and end range under the portal portalPath.
|
DesktopView[] |
getDesktopViews(CustomizationContext customizationContext,
PortalPath portalPath,
int begin,
int end,
String webapp)
Returns DesktopViews in the begin and
end range under the portal portalPath. |
PortalDefinition |
getPortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
Returns a PortalDefinition corresponding to a
PortalPath. |
int |
getPortalDefinitionCount(CustomizationContext customizationContext,
String webapp)
Returns the number of portals. |
PortalDefinition[] |
getPortalDefinitions(CustomizationContext customizationContext,
PortalPath[] portalPaths,
String webapp)
Returns an array of PortalDefinitions corresponding
to an array of PortalPaths. |
PortalView |
getPortalDefinitionView(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
Returns a PortalView corresponding to a
PortalPath. |
PortalView[] |
getPortalDefinitionViews(CustomizationContext customizationContext,
PortalPath[] portalPaths,
String webapp)
Returns an array of PortalViews corresponding
to an array of PortalPaths. |
PortalPath[] |
getPortalPaths(CustomizationContext customizationContext,
int begin,
int end,
String webapp)
Returns an array of PortalPaths in the
begin and end range. |
String[] |
getPortalWebApps(CustomizationContext customizationContext)
Return a set of portal webapps that are customizable. |
void |
updatePortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
PortalDefinition newPd)
Updates a PortalDefinition based on a new PortalDefinition. |
| Method Detail |
public PortalDefinition createPortalDefinition(CustomizationContext customizationContext,
PortalDefinition pd)
throws RemoteException,
NotEntitledException,
MissingDataException,
DuplicateObjectException
PortalDefinition
from the provided PortalDefinition.
customizationContext - customization information such as prefered
localespd - PortalDefinition
PortalDefinition
NotEntitledException - if caller does not have permission for this
operation
MissingDataException - if data required to create a portal is
missing
DuplicateObjectException - if this or another webapp already has a portal with the same partial path
RemoteException
public int deletePortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
throws RemoteException,
NotEntitledException
customizationContext - customization information such as prefered
localesportalPath - PortalPath for PortalDefinition to be removedwebapp - web application these desktop definitions are scoped to.
NotEntitledException - if caller does not have permission for this
operation
RemoteException
public DefinitionCount getDefinitionCount(CustomizationContext customizationContext,
boolean _public)
throws RemoteException
Return a count of all the definitions in the system. This method is useful for getting counts of all the definitions in the system
customizationContext - _public - if true only return public definitions
RemoteException
public DefinitionCount getDefinitionCount(CustomizationContext customizationContext,
String webapp,
boolean _public)
throws RemoteException
Return a count of all the definitions scoped to a webapp. This method is useful for getting counts of all the definitions in a particulare webapp.
customizationContext - webapp - web app name_public - if true only return public definitions
RemoteException
public int getDesktopDefinitionCount(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
throws RemoteException
DesktopDefinitions under
portal portalPath.
portalPath - PortalPathwebapp - web application these desktop definitions are scoped to.
PortletDefinitions under portal
represented by portalPath
RemoteException
public PortalPath[] getDesktopDefinitionPortals(CustomizationContext customizationContext,
DesktopPath desktopPath,
String webapp)
throws RemoteException
PortalPaths that a
DesktopDefinition is a part of. Returns an empty array
if the latter is noncategorized.
desktopPath - DesktopPathwebapp - web application these desktop definitions are scoped to.
PortalPaths
RemoteException
public DesktopDefinition[] getDesktopDefinitions(CustomizationContext customizationContext,
PortalPath portalPath,
int begin,
int end,
String webapp)
throws RemoteException
DesktopDefinitions in the begin
and end range under the portal portalPath.
If fewer DesktopDefinitions than (begin-end) exist
then the former number is returned. If no definitions are
found an empty array is returned.DesktopDefinitions.DesktopDefinitions in a consistent
order.
customizationContext - customization information such as prefered
localesportalPath - PortalPathbegin - begin indexend - end indexwebapp - web application these desktop definitions are scoped to.
DesktopDefinitions
RemoteException
public DesktopView[] getDesktopViews(CustomizationContext customizationContext,
PortalPath portalPath,
int begin,
int end,
String webapp)
throws RemoteException,
ObjectNotFoundException
DesktopViews in the begin and
end range under the portal portalPath. If fewer
views than (begin-end) exist then the former number of views is returned.
If no views are found an empty array is returned.DesktopDefinitions.DesktopViews in a consistent
order.
customizationContext - customization information such as prefered
localesportalPath - PortalPathbegin - begin indexend - end indexwebapp - web application these desktop definitions are scoped to.
DesktopViews
RemoteException
ObjectNotFoundException
public PortalDefinition getPortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
throws RemoteException,
ObjectNotFoundException
Returns a PortalDefinition corresponding to a
PortalPath.
customizationContext - customization information such as prefered
localesportalPath - PortalPathwebapp - web application these desktop definitions are scoped to.
PortalDefinition
ObjectNotFoundException - if no portal is found
RemoteException
public int getPortalDefinitionCount(CustomizationContext customizationContext,
String webapp)
throws RemoteException
webapp - web application these desktop definitions are scoped to.
RemoteException
public PortalDefinition[] getPortalDefinitions(CustomizationContext customizationContext,
PortalPath[] portalPaths,
String webapp)
throws RemoteException,
ObjectNotFoundException
Returns an array of PortalDefinitions corresponding
to an array of PortalPaths.
customizationContext - customization information such as prefered
localesportalPaths - array of PortalPaths. If null return all portal definitionswebapp - web application these desktop definitions are scoped to.
PortalDefinitions
ObjectNotFoundException - if portal for any key does not exist
RemoteException
public PortalView getPortalDefinitionView(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
throws RemoteException,
ObjectNotFoundException
Returns a PortalView corresponding to a
PortalPath.
NOTE: This method returns a deep copy of a portal definition.
customizationContext - customization information such as prefered
localesportalPath - PortalPathwebapp - web application these desktop definitions are scoped to.
PortalView
ObjectNotFoundException - if no category definition is found
RemoteException
public PortalView[] getPortalDefinitionViews(CustomizationContext customizationContext,
PortalPath[] portalPaths,
String webapp)
throws RemoteException,
ObjectNotFoundException
Returns an array of PortalViews corresponding
to an array of PortalPaths.
customizationContext - customization information such as prefered
localesportalPaths - array of PortalPathswebapp - web application these desktop definitions are scoped to.
PortalViews
ObjectNotFoundException - if portal for any key does not exist
RemoteException
public PortalPath[] getPortalPaths(CustomizationContext customizationContext,
int begin,
int end,
String webapp)
throws RemoteException
Returns an array of PortalPaths in the
begin and end range. If fewer portals
than (begin-end) exist then the former number of portals is
returned. If no definitions are found an empty array is returned.
Implementation has to ensure that repeated calls to this
method return PortalPaths in a consistent
order.
customizationContext - customization information such as prefered
localesbegin - begin indexend - end indexwebapp - web application these desktop definitions are scoped to.
PortalPaths
RemoteException
public String[] getPortalWebApps(CustomizationContext customizationContext)
throws RemoteException
Return a set of portal webapps that are customizable. Customizable webapps are webapps with customization element set to true in the netuix-config.xml file, and have at least on of the following: .shell files.
customizationContext -
RemoteException
public void updatePortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
PortalDefinition newPd)
throws RemoteException,
ObjectNotFoundException,
ObjectInUseException,
NotEntitledException,
MissingDataException
customizationContext - customization information such as prefered
localesportalPath - PortalPath to PortalDefinition to be updatednewPd - new PortalDefinition
ObjectNotFoundException - if portal does not exist
NotEntitledException - if caller does not have permission for this
operation
MissingDataException - if data required to update a portal is
missing
RemoteException
ObjectInUseException
|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||