mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.4-BUG-FIX
30520: Revisited timestamp propagation (cm:modified) now that the system does this by default - Original low-level code (Hibernate optimizations) pulled back into NodeService implementation - Use case driven prompting to touch the parent node - Full indexing and policy callbacks against parent (was missing completely) - Optimizations to ensure parent node modifications are only done where required and the same transaction is used where possible - 1s accuracy limit is maintained to prevent unnecessary modifications - Enhanced tests to cover use cases where propagation is expected - ALF-10262: Timestamp propagation is enabled by default - Fixes or will fix: - ALF-10291: Test disabled: SOLRTrackingComponentTest (various) - ALF-7433: A file deleted using the web UI still appears in a NFS mount but with NULL stats - ALF-10271: Test disabled: ArchiveAndRestoreTest.testAR7889ArchiveAndRestoreMustNotModifyAuditable - ALF-10267: Test disabled: NodeServiceTest.testArchiveAndRestore Also - Found problem where cm:auditable properties could be modified directly against the cached values - Extended locking of cached entities to the AuditablePropertiesEntity git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30598 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -108,12 +108,16 @@ public class NodeEntity implements Node, PermissionCheckValue
|
||||
/**
|
||||
* Lock the entity against further updates to prevent accidental modification
|
||||
*/
|
||||
public void lock()
|
||||
public synchronized void lock()
|
||||
{
|
||||
locked = true;
|
||||
if (auditableProperties != null)
|
||||
{
|
||||
auditableProperties.lock();
|
||||
}
|
||||
}
|
||||
|
||||
private final void checkLock()
|
||||
private synchronized final void checkLock()
|
||||
{
|
||||
if (locked)
|
||||
{
|
||||
|
Reference in New Issue
Block a user