mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-23 18:05:32 +00:00
- Preformance improvement to Auditable Aspect suggested by community
- PHP library refactoring - Associated changes to tests and examples git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5646 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
parent
6c332588a9
commit
a38206915f
@ -258,12 +258,17 @@ public class AuditableAspect
|
|||||||
*/
|
*/
|
||||||
public Boolean doWork() throws Exception
|
public Boolean doWork() throws Exception
|
||||||
{
|
{
|
||||||
for (QName propertyQName : properties.keySet())
|
// Set all the properties in one nodeService call to avoid multiple calls to onUpdateProperties
|
||||||
{
|
Map<QName, Serializable> allProps = nodeService.getProperties(nodeRef);
|
||||||
Serializable property = properties.get(propertyQName);
|
|
||||||
nodeService.setProperty(nodeRef, propertyQName, property);
|
for (QName propertyQName : properties.keySet())
|
||||||
}
|
{
|
||||||
return Boolean.TRUE;
|
Serializable property = properties.get(propertyQName);
|
||||||
|
allProps.put(propertyQName, property);
|
||||||
|
}
|
||||||
|
nodeService.setProperties(nodeRef, allProps);
|
||||||
|
return Boolean.TRUE;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user