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".
PortalDefinitionManager
Method Summary |
public |
|
public int |
|
public |
|
public |
|
public int |
|
public |
|
public |
|
public |
|
public |
|
public int |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public void |
|
Method Detail |
publicCreates a persistent version of aPortalDefinitioncreatePortalDefinition(CustomizationContextcustomizationContext,PortalDefinitionpd)
throwsRemoteException,NotEntitledException,MissingDataException,DuplicateObjectException
PortalDefinition
from the provided PortalDefinition.
PortalDefinition PortalDefinition RemoteException
NotEntitledException
MissingDataException
DuplicateObjectException
public int deletePortalDefinition(Deletes a PortalDefinition.CustomizationContextcustomizationContext,PortalPathportalPath,Stringwebapp)
throwsRemoteException,NotEntitledException
RemoteException
NotEntitledException
publicDefinitionCountgetDefinitionCount(CustomizationContextcustomizationContext, boolean _public)
throwsRemoteException
Return a count of all the definitions in the system. This method is useful for getting counts of all the definitions in the system
RemoteException
publicDefinitionCountgetDefinitionCount(CustomizationContextcustomizationContext,Stringwebapp, boolean _public)
throwsRemoteException
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.
RemoteException
public int getDesktopDefinitionCount(Returns the number ofCustomizationContextcustomizationContext,PortalPathportalPath,Stringwebapp)
throwsRemoteException
DesktopDefinitions under
portal portalPath.
PortalPath PortletDefinitions under portal
represented by portalPath RemoteException
publicReturns all thePortalPath[] getDesktopDefinitionPortals(CustomizationContextcustomizationContext,DesktopPathdesktopPath,Stringwebapp)
throwsRemoteException
PortalPaths that a
DesktopDefinition is a part of. Returns an empty array
if the latter is noncategorized.
DesktopPath PortalPaths RemoteException
publicReturnsDesktopDefinition[] getDesktopDefinitions(CustomizationContextcustomizationContext,PortalPathportalPath, int begin, int end,Stringwebapp)
throwsRemoteException
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.
PortalPath DesktopDefinitions RemoteException
publicReturnsDesktopView[] getDesktopViews(CustomizationContextcustomizationContext,PortalPathportalPath, int begin, int end,Stringwebapp)
throwsRemoteException,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.PortalPath DesktopViews RemoteException
ObjectNotFoundException
publicPortalDefinitiongetPortalDefinition(CustomizationContextcustomizationContext,PortalPathportalPath,Stringwebapp)
throwsRemoteException,ObjectNotFoundException
Returns a PortalDefinition corresponding to a
PortalPath.
PortalPath PortalDefinition RemoteException
ObjectNotFoundException
public int getPortalDefinitionCount(Returns the number of portals.CustomizationContextcustomizationContext,Stringwebapp)
throwsRemoteException
RemoteException
publicPortalDefinition[] getPortalDefinitions(CustomizationContextcustomizationContext,PortalPath[] portalPaths,Stringwebapp)
throwsRemoteException,ObjectNotFoundException
Returns an array of PortalDefinitions corresponding
to an array of PortalPaths.
PortalPaths. If null return all portal definitions PortalDefinitions RemoteException
ObjectNotFoundException
publicPortalViewgetPortalDefinitionView(CustomizationContextcustomizationContext,PortalPathportalPath,Stringwebapp)
throwsRemoteException,ObjectNotFoundException
Returns a PortalView corresponding to a
PortalPath.
NOTE: This method returns a deep copy of a portal definition.
PortalPath PortalView RemoteException
ObjectNotFoundException
publicPortalView[] getPortalDefinitionViews(CustomizationContextcustomizationContext,PortalPath[] portalPaths,Stringwebapp)
throwsRemoteException,ObjectNotFoundException
Returns an array of PortalViews corresponding
to an array of PortalPaths.
PortalPaths PortalViews RemoteException
ObjectNotFoundException
publicPortalPath[] getPortalPaths(CustomizationContextcustomizationContext, int begin, int end,Stringwebapp)
throwsRemoteException
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.
PortalPaths RemoteException
publicString[] getPortalWebApps(CustomizationContextcustomizationContext)
throwsRemoteException
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.
RemoteException
public void updatePortalDefinition(Updates a PortalDefinition based on a new PortalDefinition.CustomizationContextcustomizationContext,PortalPathportalPath,PortalDefinitionnewPd)
throwsRemoteException,ObjectNotFoundException,ObjectInUseException,NotEntitledException,MissingDataException
RemoteException
ObjectNotFoundException
ObjectInUseException
NotEntitledException
MissingDataException