Node cache changes (step): properties and aspects are retrieved with the node's version

- Perform basic node version check when reading properties and aspects from DB
 - This is just the start.  Next step is to change the key of the cache itself.
 - Includes fix for rev 31109: Use setNodeAclId() to set ACL IDs


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31121 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2011-10-11 10:58:48 +00:00
parent d961c8f966
commit 87bee8092d
8 changed files with 262 additions and 99 deletions

View File

@@ -28,7 +28,8 @@ import java.util.List;
*/
public class NodeAspectsEntity
{
private Long nodeId;
private Long nodeId;
private Long nodeVersion;
private List<Long> aspectQNameIds;
/** Carries data for queries */
@@ -47,6 +48,7 @@ public class NodeAspectsEntity
StringBuilder sb = new StringBuilder(512);
sb.append("NodeAspectsEntity")
.append(", nodeId=").append(nodeId)
.append(", nodeVersion=").append(nodeVersion)
.append(", aspects=").append(aspectQNameIds)
.append("]");
return sb.toString();
@@ -62,6 +64,16 @@ public class NodeAspectsEntity
this.nodeId = nodeId;
}
public Long getNodeVersion()
{
return nodeVersion;
}
public void setNodeVersion(Long nodeVersion)
{
this.nodeVersion = nodeVersion;
}
public List<Long> getAspectQNameIds()
{
return aspectQNameIds;