|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.portlet.registry.PortletWindowRegistryImpl
public class PortletWindowRegistryImpl
Provides the default implementation of the window registry, the backing for the storage of IPortletWindow objects is a Map stored in the HttpSession for the user.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
static String |
PORTLET_WINDOW_MAP_ATTRIBUTE
|
static String |
TRANSIENT_PORTLET_WINDOW_MAP_ATTRIBUTE
|
static String |
TRANSIENT_WINDOW_ID_PREFIX
|
| Constructor Summary | |
|---|---|
PortletWindowRegistryImpl()
|
|
| Method Summary | |
|---|---|
IPortletWindow |
convertPortletWindow(HttpServletRequest request,
org.apache.pluto.PortletWindow plutoPortletWindow)
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 IPortletWindowRegistry.getDefaultPortletWindowId(IPortletEntityId)
from the specified parent entity id. |
IPortletWindow |
createDelegatePortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId,
IPortletWindowId delegationParentId)
Creates a delegating portlet window |
protected IPortletWindow |
createPortletWindow(HttpServletRequest request,
IPortletWindowId portletWindowId,
IPortletEntityId portletEntityId)
|
protected IPortletWindow |
createPortletWindow(HttpServletRequest request,
IPortletWindowId portletWindowId,
IPortletEntityId portletEntityId,
IPortletWindowId delegateParent)
Creates a new IPortletWindow for the specified window ID and entity ID. |
IPortletWindow |
createPortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
Creates a new portlet window for the window instance id and parent entity id. |
protected IPortletWindowId |
createPortletWindowId(String windowInstanceId,
IPortletEntityId portletEntityId)
Generates a new, unique, portlet window ID for the window instance ID & 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. |
IPortletDefinitionRegistry |
getPortletDefinitionRegistry()
|
IPortletEntityRegistry |
getPortletEntityRegistry()
|
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 |
protected ConcurrentMap<IPortletWindowId,IPortletWindow> |
getPortletWindowMap(HttpServletRequest request)
Get the Map of IPortletWindows for the request. |
protected HttpSession |
getSession(HttpServletRequest request)
Gets the session for the request. |
protected IPortletWindow |
getTransientPortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
|
IUserInstanceManager |
getUserInstanceManager()
|
protected void |
initializePortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId,
org.jasig.portal.portlet.registry.PortletWindowImpl portletWindow)
Initializes a newly created PortletWindow, the default implementation sets up the appropriate
WindowState and PortletMode |
boolean |
isTransient(HttpServletRequest request,
IPortletWindowId portletWindowId)
|
void |
setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
|
void |
setPortletEntityRegistry(IPortletEntityRegistry portletEntityRegistry)
|
void |
setUserInstanceManager(IUserInstanceManager userInstanceManager)
|
protected void |
storePortletWindow(HttpServletRequest request,
IPortletWindow portletWindow)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TRANSIENT_WINDOW_ID_PREFIX
public static final String TRANSIENT_PORTLET_WINDOW_MAP_ATTRIBUTE
public static final String PORTLET_WINDOW_MAP_ATTRIBUTE
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public PortletWindowRegistryImpl()
| Method Detail |
|---|
public IUserInstanceManager getUserInstanceManager()
public void setUserInstanceManager(IUserInstanceManager userInstanceManager)
userInstanceManager - the userInstanceManager to setpublic IPortletEntityRegistry getPortletEntityRegistry()
public void setPortletEntityRegistry(IPortletEntityRegistry portletEntityRegistry)
portletEntityRegistry - the portletEntityRegistry to setpublic IPortletDefinitionRegistry getPortletDefinitionRegistry()
public void setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
portletDefinitionRegistry - the portletDefinitionRegistry to set
public IPortletWindow convertPortletWindow(HttpServletRequest request,
org.apache.pluto.PortletWindow plutoPortletWindow)
IPortletWindowRegistryPortletWindow object to a uPortal IPortletWindow.
convertPortletWindow in interface IPortletWindowRegistryrequest - The request related to the window objectsplutoPortletWindow - The Pluto PortletWindow to convert from
IPortletWindow, will not be null.
public IPortletWindow createPortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
IPortletWindowRegistryIPortletEntity 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.
createPortletWindow in interface IPortletWindowRegistryrequest - The current request.portletEntityId - The parent entity id.
public IPortletWindow getOrCreatePortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
IPortletWindowRegistryIPortletWindowRegistry.getPortletWindow(HttpServletRequest, String, IPortletEntityId)
and IPortletWindowRegistry.createPortletWindow(HttpServletRequest, String, IPortletEntityId)
getOrCreatePortletWindow in interface IPortletWindowRegistryrequest - 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.
public IPortletWindow getPortletWindow(HttpServletRequest request,
IPortletWindowId portletWindowId)
IPortletWindowRegistry
getPortletWindow in interface IPortletWindowRegistryrequest - The current request.portletWindowId - The ID of the IPortletWindow to return.
public IPortletWindow getPortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
IPortletWindowRegistry
getPortletWindow in interface IPortletWindowRegistryrequest - 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.
public IPortletWindowId getPortletWindowId(String portletWindowId)
IPortletWindowRegistry
getPortletWindowId in interface IPortletWindowRegistryportletWindowId - The string represenation of the portlet window ID.
public IPortletWindowId getDefaultPortletWindowId(IPortletEntityId portletEntityId)
IPortletWindowRegistry
getDefaultPortletWindowId in interface IPortletWindowRegistryportletEntityId - The id of the entity to base the window ID on
public IPortletEntity getParentPortletEntity(HttpServletRequest request,
IPortletWindowId portletWindowId)
IPortletWindowRegistry
getParentPortletEntity in interface IPortletWindowRegistryrequest - The request related to the window objectsportletWindowId - The window ID to get the parent entity for.
public IPortletWindow createDefaultPortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId)
IPortletWindowRegistryIPortletWindowRegistry.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.
createDefaultPortletWindow in interface IPortletWindowRegistryrequest - The current request.portletEntityId - The parent entity id.
public IPortletWindow getOrCreateDefaultPortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId)
IPortletWindowRegistryIPortletWindowRegistry.getDefaultPortletWindowId(IPortletEntityId),
IPortletWindowRegistry.getPortletWindow(HttpServletRequest, IPortletWindowId) and IPortletWindowRegistry.createDefaultPortletWindow(HttpServletRequest, IPortletEntityId)
getOrCreateDefaultPortletWindow in interface IPortletWindowRegistryrequest - The current request.portletEntityId - The parent entity id.
public IPortletWindow createDelegatePortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId,
IPortletWindowId delegationParentId)
IPortletWindowRegistry
createDelegatePortletWindow in interface IPortletWindowRegistryportletEntityId - The parent entity id for the window if it doesn't already existdelegationParentId - The ID of the parent portlet window
public IPortletWindow getOrCreateDelegatePortletWindow(HttpServletRequest request,
IPortletWindowId portletWindowId,
IPortletEntityId portletEntityId,
IPortletWindowId delegationParentId)
IPortletWindowRegistry
getOrCreateDelegatePortletWindow in interface IPortletWindowRegistryportletWindowId - 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
public IPortletWindowId createTransientPortletWindowId(HttpServletRequest request,
IPortletWindowId sourcePortletWindowId)
IPortletWindowRegistry
createTransientPortletWindowId in interface IPortletWindowRegistry
public boolean isTransient(HttpServletRequest request,
IPortletWindowId portletWindowId)
isTransient in interface IPortletWindowRegistryrequest - The current portal requestportletWindowId - The window ID to check
protected IPortletWindow createPortletWindow(HttpServletRequest request,
IPortletWindowId portletWindowId,
IPortletEntityId portletEntityId)
#createPortletWindow(IPortletWindowId, IPortletEntityId, IPortletWindowId)
protected IPortletWindow createPortletWindow(HttpServletRequest request,
IPortletWindowId portletWindowId,
IPortletEntityId portletEntityId,
IPortletWindowId delegateParent)
IPortletWindow for the specified window ID and entity ID.
windowInstanceId - The window instance id.portletEntityId - The parent entity id.delegateParent - The id of the parent window delegating to this window, optional.
protected void initializePortletWindow(HttpServletRequest request,
IPortletEntityId portletEntityId,
org.jasig.portal.portlet.registry.PortletWindowImpl portletWindow)
PortletWindow, the default implementation sets up the appropriate
WindowState and PortletMode
protected IPortletWindowId createPortletWindowId(String windowInstanceId,
IPortletEntityId portletEntityId)
windowInstanceId - The window instance id.portletEntityId - The parent entity id.
protected ConcurrentMap<IPortletWindowId,IPortletWindow> getPortletWindowMap(HttpServletRequest request)
request - the current request
protected void storePortletWindow(HttpServletRequest request,
IPortletWindow portletWindow)
request - portletWindow - protected HttpSession getSession(HttpServletRequest request)
request - The current request
protected IPortletWindow getTransientPortletWindow(HttpServletRequest request,
String windowInstanceId,
IPortletEntityId portletEntityId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||