RM-2529 Add classified aspect as system rather than the user "admin".

This change causes ClassifyTest.testClassifyFrozenRecord() to fail. The
test is accurately reflecting a bug in the server that this change reveals
(or introduces).  See RM-2530.

+review RM

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110137 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tom Page
2015-08-14 12:48:57 +00:00
parent 9355bddfe8
commit 3c4becdd85

View File

@@ -102,14 +102,14 @@ public class ContentClassificationServiceImpl extends ServiceBaseImpl
final Map<QName, Serializable> properties = createPropertiesMap(classificationAspectProperties, content); final Map<QName, Serializable> properties = createPropertiesMap(classificationAspectProperties, content);
// Add aspect // Add aspect
authenticationUtil.runAs(new RunAsWork<Void>() authenticationUtil.runAsSystem(new RunAsWork<Void>()
{ {
public Void doWork() public Void doWork()
{ {
nodeService.addAspect(content, ASPECT_CLASSIFIED, properties); nodeService.addAspect(content, ASPECT_CLASSIFIED, properties);
return null; return null;
} }
}, authenticationUtil.getAdminUserName()); });
} }
/** /**