CLD-3: Trunk broken by Servlet API upgrade on platform

- partial revert of refactoring done in REPO-908

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@134826 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Cristian Turlica
2017-01-30 15:44:27 +00:00
parent 86467be9b6
commit a234a4641b

View File

@@ -203,7 +203,7 @@ public class PeopleImpl implements People
return personId; return personId;
} }
protected void processPersonProperties(final Map<QName, Serializable> nodeProps) protected void processPersonProperties(String userName, final Map<QName, Serializable> nodeProps)
{ {
if(!contentUsageService.getEnabled()) if(!contentUsageService.getEnabled())
{ {
@@ -376,7 +376,7 @@ public class PeopleImpl implements People
if (personNode != null) if (personNode != null)
{ {
Map<QName, Serializable> nodeProps = nodeService.getProperties(personNode); Map<QName, Serializable> nodeProps = nodeService.getProperties(personNode);
processPersonProperties(nodeProps); processPersonProperties(personId, nodeProps);
// TODO this needs to be run as admin but should we do this here? // TODO this needs to be run as admin but should we do this here?
final String pId = personId; final String pId = personId;
Boolean enabled = AuthenticationUtil.runAsSystem(new RunAsWork<Boolean>() Boolean enabled = AuthenticationUtil.runAsSystem(new RunAsWork<Boolean>()