Merged V2.9 to HEAD

10531: Merged V2.2 to V2.9
      9928: Optimise & consolidate get web project user role (ETWOTWO-568)
      9962: Reverted rev 9902 of RuleServiceImpl
      9964: Fixed transaction read-only declaration
      9979: ETWOTWO-572: Allow OpenOffice to be called remotely
      9987: Second attempt at fixing ETWOTWO-438: versionable aspect and invite user
      10096: Fix for ETWOTWO-507 FSR Service Port
      10224: Fix for ETWOTWO-507 (inconsistent results with add and delete together)
      10225: Adding logging and making FSR work with absolute directories (ETWOTWO-70 and ETWOONE-81)
      10254: ALFCOM-242, ALFCOM-230,  ETWOTWO-437
      10283: Fixed deployment installer builder to use IJ v1.2.7
      10359: Add Display Group for deployment servers to JSF client (ETWOTWO-474)
   10536: MT - simple setup/system test
   10553: Hid domain objects completely within the UsageDeltaDAO


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10613 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2008-09-01 13:56:46 +00:00
parent 15fcd07997
commit 480181d6ea
20 changed files with 1023 additions and 109 deletions

View File

@@ -26,7 +26,7 @@ package org.alfresco.repo.usage;
import java.util.Set;
import org.alfresco.repo.domain.Node;
import org.alfresco.service.cmr.repository.NodeRef;
/**
* The interface to persist usage delta information.
@@ -37,20 +37,21 @@ public interface UsageDeltaDAO
/**
* Create a usage delta entry.
*
* @param deltaInfo
* @param deltaSize the size change
*/
public void insertDelta(UsageDelta deltaInfo);
public void insertDelta(NodeRef usageNodeRef, long deltaSize);
/**
* Get the total delta size for a node.
*
* @param node
* @return sum of delta sizes (in bytes) - can be +ve or -ve
* @param nodeRef the node reference
* @return sum of delta sizes (in bytes) - can be +ve or -ve
*/
public long getTotalDeltaSize(Node node);
public long getTotalDeltaSize(NodeRef usageNodeRef);
public Set<NodeRef> getUsageDeltaNodes();
public Set<Node> getUsageDeltaNodes();
public int deleteDeltas(NodeRef nodeRef);
public int deleteDeltas(Node node);
public int deleteDeltas(Long nodeId);
}