Package org.exoplatform.services.jcr.infinispan

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


   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

      SecurityHelper.doPrivilegedAction(new PrivilegedAction<Void>()
      {
         public Void run()
         {
            String wsUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
            CacheKey key = new WorkspaceQuotaKey(wsUniqueName);

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

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

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

      SecurityHelper.doPrivilegedAction(new PrivilegedAction<Void>()
      {
         public Void run()
         {
            String wsUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
            CacheKey key = new WorkspaceDataSizeKey(wsUniqueName);

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

    * {@inheritDoc}
    */
   public long getWorkspaceDataSize(String repositoryName, String workspaceName) throws UnknownDataSizeException
   {
      String wsUniqueName = composeWorkspaceUniqueName(repositoryName, workspaceName);
      CacheKey key = new WorkspaceDataSizeKey(wsUniqueName);

      return getDataSize(key);
   }
View Full Code Here

   /**
    * {@inheritDoc}
    */
   public long getRepositoryQuota(String repositoryName) throws UnknownQuotaLimitException
   {
      CacheKey key = new RepositoryQuotaKey(repositoryName);
      return getQuota(key);
   }
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.