mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user