|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPortletWindowRegistry
Provides methods for creating and accessing IPortletWindow and related objects.
Methods require a HttpServletRequest object due to the nature of IPortletWindows and how they are tracked.
| Method Summary | |
|---|---|
IPortletWindow |
convertPortletWindow(HttpServletRequest request,
org.apache.pluto.PortletWindow portletWindow)
Converts a Pluto PortletWindow object to a uPortal IPortletWindow. |
IPortletWindow |
createDefaultPortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId)
Creates a new portlet window that will have the ID returned by getDefaultPortletWindowId(IPortletEntityId)
from the specified parent entity id. |
IPortletWindow |
createDelegatePortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId,
IPortletWindowId delegationParentId)
Creates a delegating portlet window |
IPortletWindow |
createPortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
Creates a new portlet window for the window instance id and parent entity id. |
IPortletWindowId |
createTransientPortletWindowId(HttpServletRequest request,
IPortletWindowId sourcePortletWindowId)
Creates an ID for a transient portlet window |
IPortletWindowId |
getDefaultPortletWindowId(IPortletEntityId portletEntityId)
Creates the default portlet window ID given the ID of the entity the window is based on. |
IPortletWindow |
getOrCreateDefaultPortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId)
Get an existing portlet window for the default window id and parent entity id. |
IPortletWindow |
getOrCreateDelegatePortletWindow(HttpServletRequest request,
IPortletWindowId portletWindowId,
IPortletEntityId portletEntityId,
IPortletWindowId delegationParentId)
Gets or Creates a delegating portlet window. |
IPortletWindow |
getOrCreatePortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
Get an existing portlet window for the window instance id and parent entity id. |
IPortletEntity |
getParentPortletEntity(HttpServletRequest request,
IPortletWindowId portletWindowId)
Gets the parent portlet entity for the window specified by the window id. |
IPortletWindow |
getPortletWindow(HttpServletRequest request,
IPortletWindowId portletWindowId)
Get an existing portlet window for the window id. |
IPortletWindow |
getPortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
Get an existing portlet window for the channel window instance id and entity id. |
IPortletWindowId |
getPortletWindowId(String portletWindowId)
Creates an IPortletWindowId for the specified string identifier |
boolean |
isTransient(HttpServletRequest request,
IPortletWindowId portletWindowId)
|
| Method Detail |
|---|
IPortletWindow getPortletWindow(HttpServletRequest request,
IPortletWindowId portletWindowId)
request - The current request.portletWindowId - The ID of the IPortletWindow to return.
IllegalArgumentException - if request or portletWindowId are null.
IPortletWindow getPortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
request - The current request.windowInstanceId - The identifier for the instance of the window, such as an id for an inline window and an id for a detached window.portletEntityId - The parent entity id.
IllegalArgumentException - If request, windowInstanceId or portletEntityId are null.
IPortletWindow createPortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
IPortletEntity for the portletEntityId can't be found or a window already
exists for the window instance id and entity id an exception will be thrown.
request - The current request.windowInstanceIdThe - identifier for the instance of the window, such as an id for an inline window and an id for a detached window.portletEntityId - The parent entity id.
IllegalArgumentException - If request, windowInstanceId or portletEntityId are null, if no
org.jasig.portal.ChannelDefinition exists for the channelPublishId or if an entity already exists for the
subscribe id & person.
IPortletWindow getOrCreatePortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
getPortletWindow(HttpServletRequest, String, IPortletEntityId)
and createPortletWindow(HttpServletRequest, String, IPortletEntityId)
request - The current request.windowInstanceId - The identifier for the instance of the window, such as an id for an inline window and an id for a detached window.portletEntityId - The parent entity id.
IllegalArgumentException - If request, windowInstanceId or portletEntityId are null
IPortletWindow createDefaultPortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId)
getDefaultPortletWindowId(IPortletEntityId)
from the specified parent entity id. If the parent IPortletEntity for the portletEntityId
can't be found or a window already exists for the default window id and entity id an exception will be thrown.
request - The current request.portletEntityId - The parent entity id.
IllegalArgumentException - If request or portletEntityId are null, if no
org.jasig.portal.ChannelDefinition exists for the channelPublishId or if an entity already exists for the
default window id & person.
IPortletWindow getOrCreateDefaultPortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId)
getDefaultPortletWindowId(IPortletEntityId),
getPortletWindow(HttpServletRequest, IPortletWindowId) and createDefaultPortletWindow(HttpServletRequest, IPortletEntityId)
request - The current request.portletEntityId - The parent entity id.
IllegalArgumentException - If request, windowInstanceId or portletEntityId are null
IPortletWindow createDelegatePortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId,
IPortletWindowId delegationParentId)
portletEntityId - The parent entity id for the window if it doesn't already existdelegationParentId - The ID of the parent portlet window
IllegalArgumentException - If any argument is null
IPortletWindow getOrCreateDelegatePortletWindow(HttpServletRequest request,
IPortletWindowId portletWindowId,
IPortletEntityId portletEntityId,
IPortletWindowId delegationParentId)
portletWindowId - The ID of the delegate portlet windowportletEntityId - The parent entity id for the window if it doesn't already existdelegationParentId - The ID of the parent portlet window
IllegalArgumentException - If any argument is null
IPortletWindowId createTransientPortletWindowId(HttpServletRequest request,
IPortletWindowId sourcePortletWindowId)
portletWindowId - The string represenation of the portlet window ID.
IllegalArgumentException - If portletWindowId is null
boolean isTransient(HttpServletRequest request,
IPortletWindowId portletWindowId)
request - The current portal requestportletWindowId - The window ID to check
IPortletWindow convertPortletWindow(HttpServletRequest request,
org.apache.pluto.PortletWindow portletWindow)
PortletWindow object to a uPortal IPortletWindow.
request - The request related to the window objectsportletWindow - The Pluto PortletWindow to convert from
IPortletWindow, will not be null.
IllegalArgumentException - if request or portletWindow are nullIPortletWindowId getPortletWindowId(String portletWindowId)
portletWindowId - The string represenation of the portlet window ID.
IllegalArgumentException - If portletWindowId is nullIPortletWindowId getDefaultPortletWindowId(IPortletEntityId portletEntityId)
portletEntityId - The id of the entity to base the window ID on
IllegalArgumentException - If portletEntityId is null
IPortletEntity getParentPortletEntity(HttpServletRequest request,
IPortletWindowId portletWindowId)
request - The request related to the window objectsportletWindowId - The window ID to get the parent entity for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||