mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
SAIL-390 (SAIL-294): NodeDAO: Allow cm:auditable to be set
- Allow cm:auditable properties to be set directly behaviourFilter.disableBehaviour(ContentModel.ASPECT_AUDITABLE); // Lasts for txn // Set the auditable properties explicitly auditableProps.put(ContentModel.PROP_MODIFIER, "ThisUser"); nodeService.addProperties(nodeRef, auditableProps); git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21178 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -502,6 +502,11 @@ public class NodeDAOImpl extends AbstractNodeDAOImpl
|
||||
@Override
|
||||
protected void insertNodeProperties(Long nodeId, Map<NodePropertyKey, NodePropertyValue> persistableProps)
|
||||
{
|
||||
if (persistableProps.isEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
List<NodePropertyEntity> rows = makePersistentRows(nodeId, persistableProps);
|
||||
|
||||
startBatch();
|
||||
|
Reference in New Issue
Block a user