mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Part of ALF-10699: Nodes not getting put into new transactions during various operations
- Mass ACL updates of primary children now update the version and transaction for the affected nodes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31108 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1565,7 +1565,12 @@ public abstract class AbstractNodeDAOImpl implements NodeDAO, BatchingDAO
|
||||
Long optionalOldSharedAlcIdInAdditionToNull,
|
||||
Long newSharedAclId)
|
||||
{
|
||||
updatePrimaryChildrenSharedAclId(primaryParentNodeId, optionalOldSharedAlcIdInAdditionToNull, newSharedAclId);
|
||||
Long txnId = getCurrentTransactionId();
|
||||
updatePrimaryChildrenSharedAclId(
|
||||
txnId,
|
||||
primaryParentNodeId,
|
||||
optionalOldSharedAlcIdInAdditionToNull,
|
||||
newSharedAclId);
|
||||
invalidateCachesByNodeId(primaryParentNodeId, null, nodesCache);
|
||||
}
|
||||
|
||||
@@ -3362,12 +3367,6 @@ public abstract class AbstractNodeDAOImpl implements NodeDAO, BatchingDAO
|
||||
throw new DataIntegrityViolationException("Stale cache detected for Node #" + nodeId);
|
||||
}
|
||||
|
||||
private ParentAssocsInfo getParentAssocsCacheOnly(Long nodeId)
|
||||
{
|
||||
// can be null
|
||||
return parentAssocsCache.getValue(nodeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update a node's parent associations.
|
||||
*/
|
||||
@@ -3848,6 +3847,7 @@ public abstract class AbstractNodeDAOImpl implements NodeDAO, BatchingDAO
|
||||
protected abstract int updateNode(NodeUpdateEntity nodeUpdate);
|
||||
protected abstract int updateNodePatchAcl(NodeUpdateEntity nodeUpdate);
|
||||
protected abstract void updatePrimaryChildrenSharedAclId(
|
||||
Long txnId,
|
||||
Long primaryParentNodeId,
|
||||
Long optionalOldSharedAlcIdInAdditionToNull,
|
||||
Long newSharedAlcId);
|
||||
|
Reference in New Issue
Block a user