|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.cache.impl.EhCacheImpl
org.apache.jetspeed.cache.impl.EhPortletWindowCache
public class EhPortletWindowCache
EhPortletWindowCache
Implementation of PortletWindowCache that is backed
Ehcache.
| Field Summary |
|---|
| Fields inherited from class org.apache.jetspeed.cache.impl.EhCacheImpl |
|---|
ehcache, localListeners, remoteListeners |
| Constructor Summary | |
|---|---|
EhPortletWindowCache(net.sf.ehcache.Ehcache ehcache)
|
|
| Method Summary | |
|---|---|
java.util.Set |
getAllPortletWindows()
|
org.apache.pluto.om.window.PortletWindow |
getPortletWindow(java.lang.String windowId)
Gets a PortletWindow from the cache. |
org.apache.pluto.om.window.PortletWindow |
getPortletWindowByEntityId(java.lang.String portletEntityId)
Gets a PortletWindow from the cache whose PortletEntity's (PortletWindow.getPortletEntity())
equals portletEntityId. |
void |
putPortletWindow(org.apache.pluto.om.window.PortletWindow window)
Stores a PortletWindow in the cache using the PortletWindow#getId()#toString()
as the key for the cache. |
void |
removePortletWindow(java.lang.String portletWindowId)
Removes a PortletWindow from cache using the windowId
as the cache key. |
void |
removePortletWindowByPortletEntityId(java.lang.String portletEntityId)
Removes a PortletWindow from the cache whose PortletEntity's id
matches portletEntityId. |
| Methods inherited from class org.apache.jetspeed.cache.impl.EhCacheImpl |
|---|
addEventListener, clear, clone, createCacheKey, createElement, dispose, evictContentForSession, evictContentForUser, get, getTimeToIdleSeconds, getTimeToLiveSeconds, isKeyInCache, notifyListeners, put, remove, removeEventListener, removeQuiet |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EhPortletWindowCache(net.sf.ehcache.Ehcache ehcache)
| Method Detail |
|---|
public org.apache.pluto.om.window.PortletWindow getPortletWindow(java.lang.String windowId)
PortletWindowCachePortletWindow from the cache.
getPortletWindow in interface PortletWindowCachewindowId - Id of the window to get from the cache.
PortletWindow whose id to
PortletWindow.getId() or null if no window exists that matches
windowId.public org.apache.pluto.om.window.PortletWindow getPortletWindowByEntityId(java.lang.String portletEntityId)
PortletWindowCachePortletWindow from the cache whose PortletEntity's (PortletWindow.getPortletEntity())
equals portletEntityId.
getPortletWindowByEntityId in interface PortletWindowCacheportletEntityId - id of PortletEntity whose window want want to retrieve from cache.
PortletWindow whose PortletEntity's id equals portletEntityId
or null if no windows exists in the cache that match said criteria.public void putPortletWindow(org.apache.pluto.om.window.PortletWindow window)
PortletWindowCachePortletWindow in the cache using the PortletWindow#getId()#toString()
as the key for the cache.
putPortletWindow in interface PortletWindowCachewindow - PortletWindow to put into the cache.public void removePortletWindow(java.lang.String portletWindowId)
PortletWindowCachePortletWindow from cache using the windowId
as the cache key.
removePortletWindow in interface PortletWindowCacheportletWindowId - Id of the PortletWindow we want to remove from the cache.public void removePortletWindowByPortletEntityId(java.lang.String portletEntityId)
PortletWindowCachePortletWindow from the cache whose PortletEntity's id
matches portletEntityId.
removePortletWindowByPortletEntityId in interface PortletWindowCacheportletEntityId - id of the PortletEntity whose parent PortletWindow
is to be removed from the cache.public java.util.Set getAllPortletWindows()
getAllPortletWindows in interface PortletWindowCacheList of all the PortletWindows in the cache. If no cache
entries exist an empty list is returned. Never returns null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||