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:
Derek Hulley
2010-07-14 18:18:32 +00:00
parent 75c6e063c2
commit 136dc70f9d
3 changed files with 92 additions and 29 deletions

View File

@@ -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();