Package org.apache.jetspeed.cache

Examples of org.apache.jetspeed.cache.ContentCacheElement


        return ehcache.isKeyInCache(cckey.getKey());
    }

    public void put(CacheElement element)
    {
        ContentCacheElement ccElement = (ContentCacheElement)element;
        EhDecorationContentCacheElementImpl impl = (EhDecorationContentCacheElementImpl)element;
        Element ehl = impl.getImplElement();       
        String userKey = ccElement.getContentCacheKey().getSessionId();
        if (userKey == null)
        {
            userKey = ccElement.getContentCacheKey().getUsername();
        }
        String windowId = ccElement.getContentCacheKey().getWindowId();
        try
        {
            ehcache.put(ehl);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        Element userElement = ehcache.get(userKey);
        if (userElement == null)
        {
            Map map = Collections.synchronizedMap(new HashMap());
            map.put(windowId, ccElement.getContentCacheKey());
            userElement = new Element(userKey, map);
            ehcache.put(userElement);          
        }
        else
        {
            Map map = (Map)userElement.getObjectValue();
            map.put(windowId, ccElement.getContentCacheKey());
        }       
    }
View Full Code Here


        CacheElement element = this.get(key);
        boolean removed = false;
        if (element == null)
            return false;
       
        ContentCacheElement ccElement = (ContentCacheElement)element;
        EhDecorationContentCacheElementImpl impl = (EhDecorationContentCacheElementImpl)element;
        Element ehl = impl.getImplElement();       
        String userKey = ccElement.getContentCacheKey().getSessionId();
        if (userKey == null)
        {
            userKey = ccElement.getContentCacheKey().getUsername();
        }       
        String windowId = ccElement.getContentCacheKey().getWindowId();       
        removed = ehcache.remove(ccElement.getContentCacheKey().getKey());
        Element userElement = ehcache.get(userKey);
        if (userElement != null)
        {
            Map map = (Map)userElement.getObjectValue();
            if (map != null)
View Full Code Here

        return ehcache.isKeyInCache(cckey.getKey());
    }

    public void put(CacheElement element)
    {
        ContentCacheElement ccElement = (ContentCacheElement)element;
        EhPortletContentCacheElementImpl impl = (EhPortletContentCacheElementImpl)element;
        Element ehl = impl.getImplElement();       
        String userKey = ccElement.getContentCacheKey().getSessionId();
        if (userKey == null)
        {
            userKey = ccElement.getContentCacheKey().getUsername();
        }
        String windowId = ccElement.getContentCacheKey().getWindowId();
        try
        {
            ehcache.put(ehl);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        Element userElement = ehcache.get(userKey);
        if (userElement == null)
        {
            Map map = Collections.synchronizedMap(new HashMap());
            map.put(windowId, ccElement.getContentCacheKey());
            userElement = new Element(userKey, map);
            ehcache.put(userElement);          
        }
        else
        {
            Map map = (Map)userElement.getObjectValue();
            map.put(windowId, ccElement.getContentCacheKey());
        }       
    }
View Full Code Here

        CacheElement element = this.get(key);
        boolean removed = false;
        if (element == null)
            return false;
       
        ContentCacheElement ccElement = (ContentCacheElement)element;
        EhPortletContentCacheElementImpl impl = (EhPortletContentCacheElementImpl)element;
        Element ehl = impl.getImplElement();       
        String userKey = ccElement.getContentCacheKey().getSessionId();
        if (userKey == null)
        {
            userKey = ccElement.getContentCacheKey().getUsername();
        }       
        String windowId = ccElement.getContentCacheKey().getWindowId();       
        removed = ehcache.remove(ccElement.getContentCacheKey().getKey());
        Element userElement = ehcache.get(userKey);
        if (userElement != null)
        {
            Map map = (Map)userElement.getObjectValue();
            if (map != null)
View Full Code Here

        return ehcache.isKeyInCache(cckey.getKey());
    }

    public void put(CacheElement element)
    {
        ContentCacheElement ccElement = (ContentCacheElement)element;
        EhDecorationContentCacheElementImpl impl = (EhDecorationContentCacheElementImpl)element;
        Element ehl = impl.getImplElement();       
        String userKey = ccElement.getContentCacheKey().getSessionId();
        if (userKey == null)
        {
            userKey = ccElement.getContentCacheKey().getUsername();
        }
        String windowId = ccElement.getContentCacheKey().getWindowId();
        try
        {
            ehcache.put(ehl);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        Element userElement = ehcache.get(userKey);
        if (userElement == null)
        {
            Map map = Collections.synchronizedMap(new HashMap());
            map.put(windowId, ccElement.getContentCacheKey());
            userElement = new Element(userKey, map);
            ehcache.put(userElement);          
        }
        else
        {
            Map map = (Map)userElement.getObjectValue();
            map.put(windowId, ccElement.getContentCacheKey());
        }       
    }
View Full Code Here

        CacheElement element = this.get(key);
        boolean removed = false;
        if (element == null)
            return false;
       
        ContentCacheElement ccElement = (ContentCacheElement)element;
        EhDecorationContentCacheElementImpl impl = (EhDecorationContentCacheElementImpl)element;
        Element ehl = impl.getImplElement();       
        String userKey = ccElement.getContentCacheKey().getSessionId();
        if (userKey == null)
        {
            userKey = ccElement.getContentCacheKey().getUsername();
        }       
        String windowId = ccElement.getContentCacheKey().getWindowId();       
        removed = ehcache.remove(ccElement.getContentCacheKey().getKey());
        Element userElement = ehcache.get(userKey);
        if (userElement != null)
        {
            Map map = (Map)userElement.getObjectValue();
            if (map != null)
View Full Code Here

        return ehcache.isKeyInCache(cckey.getKey());
    }

    public void put(CacheElement element)
    {
        ContentCacheElement ccElement = (ContentCacheElement)element;
        EhPortletContentCacheElementImpl impl = (EhPortletContentCacheElementImpl)element;
        Element ehl = impl.getImplElement();       
        String userKey = ccElement.getContentCacheKey().getSessionId();
        if (userKey == null)
        {
            userKey = ccElement.getContentCacheKey().getUsername();
        }
        String windowId = ccElement.getContentCacheKey().getWindowId();
        try
        {
            ehcache.put(ehl);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        Element userElement = ehcache.get(userKey);
        if (userElement == null)
        {
            Map map = Collections.synchronizedMap(new HashMap());
            map.put(windowId, ccElement.getContentCacheKey());
            userElement = new Element(userKey, map);
            ehcache.put(userElement);          
        }
        else
        {
            Map map = (Map)userElement.getObjectValue();
            map.put(windowId, ccElement.getContentCacheKey());
        }       
    }
View Full Code Here

        CacheElement element = this.get(key);
        boolean removed = false;
        if (element == null)
            return false;
       
        ContentCacheElement ccElement = (ContentCacheElement)element;
        EhPortletContentCacheElementImpl impl = (EhPortletContentCacheElementImpl)element;
        Element ehl = impl.getImplElement();       
        String userKey = ccElement.getContentCacheKey().getSessionId();
        if (userKey == null)
        {
            userKey = ccElement.getContentCacheKey().getUsername();
        }       
        String windowId = ccElement.getContentCacheKey().getWindowId();       
        removed = ehcache.remove(ccElement.getContentCacheKey().getKey());
        Element userElement = ehcache.get(userKey);
        if (userElement != null)
        {
            Map map = (Map)userElement.getObjectValue();
            if (map != null)
View Full Code Here

        return ehcache.isKeyInCache(cckey.getKey());
    }

    public void put(CacheElement element)
    {
        ContentCacheElement ccElement = (ContentCacheElement)element;
        EhPortletContentCacheElementImpl impl = (EhPortletContentCacheElementImpl)element;
        Element ehl = impl.getImplElement();       
        String userKey = ccElement.getContentCacheKey().getSessionId();
        if (userKey == null)
        {
            userKey = ccElement.getContentCacheKey().getUsername();
        }
        String windowId = ccElement.getContentCacheKey().getWindowId();
        try
        {
            ehcache.put(ehl);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        Element userElement = ehcache.get(userKey);
        if (userElement == null)
        {
            Map map = Collections.synchronizedMap(new HashMap());
            map.put(windowId, ccElement.getContentCacheKey());
            userElement = new Element(userKey, map);
            ehcache.put(userElement);          
        }
        else
        {
            Map map = (Map)userElement.getObjectValue();
            map.put(windowId, ccElement.getContentCacheKey());
        }       
    }
View Full Code Here

        CacheElement element = this.get(key);
        boolean removed = false;
        if (element == null)
            return false;
       
        ContentCacheElement ccElement = (ContentCacheElement)element;
        EhPortletContentCacheElementImpl impl = (EhPortletContentCacheElementImpl)element;
        Element ehl = impl.getImplElement();       
        String userKey = ccElement.getContentCacheKey().getSessionId();
        if (userKey == null)
        {
            userKey = ccElement.getContentCacheKey().getUsername();
        }       
        String windowId = ccElement.getContentCacheKey().getWindowId();       
        removed = ehcache.remove(ccElement.getContentCacheKey().getKey());
        Element userElement = ehcache.get(userKey);
        if (userElement != null)
        {
            Map map = (Map)userElement.getObjectValue();
            if (map != null)
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.cache.ContentCacheElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.