org.apache.jetspeed.cache.impl
Class EhPortletWindowCache

java.lang.Object
  extended by org.apache.jetspeed.cache.impl.EhCacheImpl
      extended by org.apache.jetspeed.cache.impl.EhPortletWindowCache
All Implemented Interfaces:
org.apache.jetspeed.cache.JetspeedCache, org.apache.jetspeed.cache.PortletWindowCache

public class EhPortletWindowCache
extends EhCacheImpl
implements org.apache.jetspeed.cache.PortletWindowCache

EhPortletWindowCache

Implementation of PortletWindowCache that is backed Ehcache.

Author:
Scott T. Weaver

Field Summary
private  Map portletEntityIdToEntityid
          Allows us to track PortletWindows in cache by PortletEntity.getId()
 
Fields inherited from class org.apache.jetspeed.cache.impl.EhCacheImpl
ehcache, localListeners, remoteListeners
 
Constructor Summary
EhPortletWindowCache(net.sf.ehcache.Ehcache ehcache)
           
 
Method Summary
 Set getAllPortletWindows()
           
 org.apache.pluto.om.window.PortletWindow getPortletWindow(String windowId)
           
 org.apache.pluto.om.window.PortletWindow getPortletWindowByEntityId(String portletEntityId)
           
 void putPortletWindow(org.apache.pluto.om.window.PortletWindow window)
           
 void removePortletWindow(String portletWindowId)
           
 void removePortletWindowByPortletEntityId(String 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
 

Field Detail

portletEntityIdToEntityid

private Map portletEntityIdToEntityid
Allows us to track PortletWindows in cache by PortletEntity.getId()

Constructor Detail

EhPortletWindowCache

public EhPortletWindowCache(net.sf.ehcache.Ehcache ehcache)
Method Detail

getPortletWindow

public org.apache.pluto.om.window.PortletWindow getPortletWindow(String windowId)
Specified by:
getPortletWindow in interface org.apache.jetspeed.cache.PortletWindowCache

getPortletWindowByEntityId

public org.apache.pluto.om.window.PortletWindow getPortletWindowByEntityId(String portletEntityId)
Specified by:
getPortletWindowByEntityId in interface org.apache.jetspeed.cache.PortletWindowCache

putPortletWindow

public void putPortletWindow(org.apache.pluto.om.window.PortletWindow window)
Specified by:
putPortletWindow in interface org.apache.jetspeed.cache.PortletWindowCache

removePortletWindow

public void removePortletWindow(String portletWindowId)
Specified by:
removePortletWindow in interface org.apache.jetspeed.cache.PortletWindowCache

removePortletWindowByPortletEntityId

public void removePortletWindowByPortletEntityId(String portletEntityId)
Specified by:
removePortletWindowByPortletEntityId in interface org.apache.jetspeed.cache.PortletWindowCache

getAllPortletWindows

public Set getAllPortletWindows()
Specified by:
getAllPortletWindows in interface org.apache.jetspeed.cache.PortletWindowCache


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.