|
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 | ||||||||
public interface IPortalDefinitionManager
Defines methods to manage PortalDefinition objects. Multiple desktops can be associated with a single portal. "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 affecting 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 portal 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 for a given webapp. |
PortalDefinition[] |
getPortalDefinitions(CustomizationContext customizationContext, PortalPath[] portalPaths, String webapp)Returns an array of PortalDefinitions corresponding to an array of PortalPaths. |
SortableFilterablePagedResult<PortalDefinition> |
getPortalDefinitions(CustomizationContext customizationContext, PortalSearchCriteria criteria, int pageSize)Retrieve all the portals for a webapp as a paged object. |
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 have at least one shell defined. |
SortableFilterablePagedResult<LocalizationResourceView> |
getVisiblePortalLocalizationResources(CustomizationContext customizationContext, WebAppSearchCriteria criteria, int pageSize)Retrieve the LocalizationResourceViews for all visible portals for a given locale and webapp. |
PortalDefinition[] |
searchPublicPortalDefinitions(CustomizationContext customizationContext, String webapp, String partialPortalTitle, int limit)Search for public portals given the supplied search string. |
void |
updatePortalDefinition(CustomizationContext customizationContext, PortalPath portalPath, PortalDefinition newPd)Updates a PortalDefinition based on a new PortalDefinition. |
| Method Detail |
|---|
String[] getPortalWebApps(CustomizationContext customizationContext)
throws RemoteException
customizationContext -RemoteException
DefinitionCount getDefinitionCount(CustomizationContext customizationContext,
boolean _public)
throws RemoteException
Return a count of all the portal definitions in the system.
customizationContext -_public - if true only return public definitionsRemoteException
DefinitionCount getDefinitionCount(CustomizationContext customizationContext,
String webapp,
boolean _public)
throws RemoteException
Return a count of all the definitions scoped to a webapp.
customizationContext -webapp - web app name_public - if true only return public definitionsRemoteException
int getPortalDefinitionCount(CustomizationContext customizationContext,
String webapp)
throws RemoteException
webapp - web application these desktop definitions are scoped to.RemoteException
PortalDefinition getPortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
throws RemoteException,
ObjectNotFoundException
Returns a PortalDefinition corresponding to a PortalPath.
customizationContext - customization information such as preferred localesportalPath - PortalPathwebapp - web application these desktop definitions are scoped to.PortalDefinitionObjectNotFoundException - if no portal is foundRemoteException
PortalView getPortalDefinitionView(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
throws RemoteException,
ObjectNotFoundException
Returns a PortalView corresponding to a PortalPath.
customizationContext - customization information such as preferred localesportalPath - PortalPathwebapp - web application these desktop definitions are scoped to.PortalViewObjectNotFoundException - if no category definition is foundRemoteException
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.
The implmentation has to ensure that repeated calls to this method return PortalPaths in a consistent order.
customizationContext - customization information such as preferred localesbegin - begin indexend - end indexwebapp - web application these desktop definitions are scoped to.PortalPathsRemoteException
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 preferred localesportalPaths - array of PortalPaths. If null return all portal definitionswebapp - web application these desktop definitions are scoped to.PortalDefinitionsObjectNotFoundException - if portal for any key does not existRemoteException
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 preferred localesportalPaths - array of PortalPathswebapp - web application these desktop definitions are scoped to.PortalViewsObjectNotFoundException - if portal for any key does not existRemoteException
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 portalPathRemoteException
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 preferred localesportalPath - PortalPathbegin - begin indexend - end indexwebapp - web application these desktop definitions are scoped to.DesktopDefinitionsRemoteException
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 preferred localesportalPath - PortalPathbegin - begin indexend - end indexwebapp - web application these desktop definitions are scoped to.DesktopViewsRemoteExceptionObjectNotFoundException
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 does not belong to any portals.desktopPath - DesktopPathwebapp - web application these desktop definitions are scoped to.PortalPathsRemoteException
PortalDefinition createPortalDefinition(CustomizationContext customizationContext,
PortalDefinition pd)
throws RemoteException,
NotEntitledException,
MissingDataException,
DuplicateObjectException
PortalDefinition from the provided PortalDefinition.customizationContext - customization information such as preferred localespd - PortalDefinitionPortalDefinitionNotEntitledException - if caller does not have permission for this operationMissingDataException - if data required to create a portal is missingDuplicateObjectException - if this or another webapp already has a portal with the same partial pathRemoteException
int deletePortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
String webapp)
throws RemoteException,
NotEntitledException
customizationContext - customization information such as preferred localesportalPath - PortalPath for PortalDefinition to be removedwebapp - web application these desktop definitions are scoped to.NotEntitledException - if caller does not have permission for this operationRemoteException
void updatePortalDefinition(CustomizationContext customizationContext,
PortalPath portalPath,
PortalDefinition newPd)
throws RemoteException,
ObjectNotFoundException,
ObjectInUseException,
NotEntitledException,
MissingDataException
customizationContext - customization information such as preferred localesportalPath - PortalPath to PortalDefinition to be updatednewPd - new PortalDefinitionObjectNotFoundException - if portal does not existNotEntitledException - if caller does not have permission for this operationMissingDataException - if data required to update a portal is missingRemoteExceptionObjectInUseException
PortalDefinition[] searchPublicPortalDefinitions(CustomizationContext customizationContext,
String webapp,
String partialPortalTitle,
int limit)
throws RemoteException
Search for public portals given the supplied search string. Portals with titles matching the supplied pattern will be returned. No more than limit results will be returned; however a smaller number may be returned. The implmentation has to ensure that repeated calls to this method return PortalDefinitions in a consistent order.
customizationContext - customization information such as preferred locales.webapp - the web application these portal definitions are scoped to.partialPortalTitle - the search string for portal title match. Note: this string may contain special '*' and '?' characters, where '*' matches any number of characters and '?' matches any single character.limit - the maximum result set size. Note the limit may be negative indicating a reverse sort order. To retrieve all the records specify a limit of zero. Note: some elements may be pruned because of entitlements.PortalDefinitions no greater than limit in size.RemoteException
SortableFilterablePagedResult<LocalizationResourceView> getVisiblePortalLocalizationResources(CustomizationContext customizationContext,
WebAppSearchCriteria criteria,
int pageSize)
throws RemoteException
customizationContext - a customization context with a request and locale defined. Only the first locale is used.criteria - criteria for the search, including the name of the web application where the requested resources livepageSize - number of results to retrieve per pageRemoteException
SortableFilterablePagedResult<PortalDefinition> getPortalDefinitions(CustomizationContext customizationContext,
PortalSearchCriteria criteria,
int pageSize)
throws RemoteException
customizationContext - a customization context with a request and locale defined. Only the first locale is used.criteria - criteria for the search, including the name of the web application and (optional) portal paths to restrict the resultspageSize - number of results to retrieve per pageSortableFilterablePagedResult of PortalDefinitionsRemoteException
|
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.