Package org.exoplatform.services.jcr.infinispan

Examples of org.exoplatform.services.jcr.infinispan.CacheKey


         // check all ITEMS in cache
         Iterator<CacheKey> keys = cache.keySet().iterator();

         while (keys.hasNext())
         {
            CacheKey key = keys.next();
            if (key instanceof CacheId)
            {
               ItemData data = (ItemData)cache.get(key);
               ISPNCacheWorkspaceStorageCache.updateTreePath(cache, getOwnerId(), data, prevRootPath, newRootPath, acl);
            }
View Full Code Here


         // check all ITEMS in cache
         Iterator<CacheKey> keys = cache.keySet().iterator();

         while (keys.hasNext())
         {
            CacheKey key = keys.next();
            if (key instanceof CacheId)
            {
               ItemData data = (ItemData)cache.get(key);
               ISPNCacheWorkspaceStorageCache.updateTreePath(cache, getOwnerId(), data, prevRootPath, newRootPath, acl);
            }
View Full Code Here

         // check all ITEMS in cache
         Iterator<CacheKey> keys = cache.keySet().iterator();

         while (keys.hasNext())
         {
            CacheKey key = keys.next();
            if (key instanceof CacheId)
            {
               ItemData data = (ItemData)cache.get(key);
               ISPNCacheWorkspaceStorageCache.updateTreePath(cache, getOwnerId(), data, prevRootPath, newRootPath, acl);
            }
View Full Code Here

   public void setNodeQuota(String repositoryName, String workspaceName, String nodePath, long quotaLimit,
      boolean asyncUpdate)
   {
      String workspaceUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);

      CacheKey key = new NodeQuotaKey(workspaceUniqueName, nodePath);
      QuotaValue value = new QuotaValue(quotaLimit, asyncUpdate);

      cache.put(key, value);
   }
View Full Code Here

   public void setGroupOfNodesQuota(String repositoryName, String workspaceName, String patternPath, long quotaLimit,
      boolean asyncUpdate)
   {
      String workspaceUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);

      CacheKey key = new GroupOfNodesQuotaKey(workspaceUniqueName, patternPath);
      QuotaValue value = new QuotaValue(quotaLimit, asyncUpdate);

      cache.put(key, value);
   }
View Full Code Here

    */
   public long getNodeDataSize(String repositoryName, String workspaceName, String nodePath)
      throws UnknownDataSizeException
   {
      String workspaceUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
      CacheKey key = new NodeDataSizeKey(workspaceUniqueName, nodePath);

      return getDataSize(key);
   }
View Full Code Here

    * {@inheritDoc}
    */
   public void setNodeDataSize(String repositoryName, String workspaceName, String nodePath, long dataSize)
   {
      String workspaceUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
      CacheKey key = new NodeDataSizeKey(workspaceUniqueName, nodePath);

      cache.put(key, dataSize);
   }
View Full Code Here

    * {@inheritDoc}
    */
   public void removeNodeDataSize(String repositoryName, String workspaceName, String nodePath)
   {
      String workspaceUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
      CacheKey key = new NodeDataSizeKey(workspaceUniqueName, nodePath);

      cache.remove(key);
   }
View Full Code Here

    * {@inheritDoc}
    */
   public long getWorkspaceQuota(String repositoryName, String workspaceName) throws UnknownQuotaLimitException
   {
      String wsUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
      CacheKey key = new WorkspaceQuotaKey(wsUniqueName);

      return getQuota(key);
   }
View Full Code Here

    * {@inheritDoc}
    */
   public void setWorkspaceQuota(String repositoryName, String workspaceName, long quotaLimit)
   {
      String wsUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
      CacheKey key = new WorkspaceQuotaKey(wsUniqueName);

      cache.put(key, quotaLimit);
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.infinispan.CacheKey

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.