Package org.exoplatform.services.jcr.infinispan

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


   {
      SecurityHelper.doPrivilegedAction(new PrivilegedAction<Void>()
      {
         public Void run()
         {
            CacheKey key = new RepositoryQuotaKey(repositoryName);
            cache.put(key, quotaLimit);
            return null;
         }
      });
   }
View Full Code Here


   /**
    * {@inheritDoc}
    */
   public void removeRepositoryQuota(String repositoryName)
   {
      CacheKey key = new RepositoryQuotaKey(repositoryName);
      cache.remove(key);
   }
View Full Code Here

   /**
    * {@inheritDoc}
    */
   public long getRepositoryDataSize(String repositoryName) throws UnknownDataSizeException
   {
      CacheKey key = new RepositoryDataSizeKey(repositoryName);
      return getDataSize(key);
   }
View Full Code Here

   /**
    * {@inheritDoc}
    */
   public void setRepositoryDataSize(String repositoryName, long dataSize)
   {
      CacheKey key = new RepositoryDataSizeKey(repositoryName);
      cache.put(key, dataSize);
   }
View Full Code Here

   /**
    * {@inheritDoc}
    */
   public long getGlobalDataSize() throws UnknownDataSizeException
   {
      CacheKey key = new GlobalDataSizeKey();
      return getDataSize(key);
   }
View Full Code Here

   {
      SecurityHelper.doPrivilegedAction(new PrivilegedAction<Void>()
      {
         public Void run()
         {
            CacheKey key = new GlobalDataSizeKey();
            cache.put(key, dataSize);
            return null;
         }
      });
   }
View Full Code Here

   /**
    * {@inheritDoc}
    */
   public long getGlobalQuota() throws UnknownQuotaLimitException
   {
      CacheKey key = new GlobalQuotaKey();
      return getQuota(key);
   }
View Full Code Here

   /**
    * {@inheritDoc}
    */
   public void setGlobalQuota(long quotaLimit)
   {
      CacheKey key = new GlobalQuotaKey();
      cache.put(key, quotaLimit);
   }
View Full Code Here

   /**
    * {@inheritDoc}
    */
   public void removeGlobalQuota()
   {
      CacheKey key = new GlobalQuotaKey();
      cache.remove(key);
   }
View Full Code Here

    */
   public long getNodeQuota(String repositoryName, String workspaceName, String nodePath)
      throws UnknownQuotaLimitException
   {
      String workspaceUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
      CacheKey key = new NodeQuotaKey(workspaceUniqueName, nodePath);

      return getQuotaValue(key).getQuotaLimit();
   }
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.