Package org.exoplatform.services.jcr.infinispan

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


   /**
    * {@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

    */
   public long getGroupOfNodesQuota(String repositoryName, String workspaceName, String patternPath)
      throws UnknownQuotaLimitException
   {
      String workspaceUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
      CacheKey key = new GroupOfNodesQuotaKey(workspaceUniqueName, patternPath);

      return getQuotaValue(key).getQuotaLimit();
   }
View Full Code Here

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

      return getQuotaValue(key).getAsyncUpdate();
   }
View Full Code Here

    */
   public boolean isGroupOfNodesQuotaAsync(String repositoryName, String workspaceName, String patternPath)
      throws UnknownQuotaLimitException
   {
      String workspaceUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
      CacheKey key = new GroupOfNodesQuotaKey(workspaceUniqueName, patternPath);

      return getQuotaValue(key).getAsyncUpdate();
   }
View Full Code Here

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

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

    * {@inheritDoc}
    */
   public void removeGroupOfNodesQuota(String repositoryName, String workspaceName, String patternPath)
   {
      String workspaceUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
      CacheKey key = new GroupOfNodesQuotaKey(workspaceUniqueName, patternPath);

      cache.remove(key);
   }
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

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.