diff --git a/source/java/org/alfresco/repo/web/scripts/invite/InviteServiceTest.java b/source/java/org/alfresco/repo/web/scripts/invite/InviteServiceTest.java index c646886ffa..80ab34ba89 100644 --- a/source/java/org/alfresco/repo/web/scripts/invite/InviteServiceTest.java +++ b/source/java/org/alfresco/repo/web/scripts/invite/InviteServiceTest.java @@ -345,18 +345,6 @@ public class InviteServiceTest extends BaseWebScriptTest private void deletePersonByUserName(String userName) { - // delete authentication if authentication exists for given user name - if (this.authenticationService.authenticationExists(userName)) - { - this.authenticationService.deleteAuthentication(userName); - } - - // delete user account - if (this.mutableAuthenticationDao.userExists(userName)) - { - this.mutableAuthenticationDao.deleteUser(userName); - } - // delete person node associated with given user name // if one exists if (this.personService.personExists(userName)) diff --git a/source/java/org/alfresco/repo/web/scripts/rule/RuleServiceTest.java b/source/java/org/alfresco/repo/web/scripts/rule/RuleServiceTest.java index c50e2d0fce..028d670aa2 100644 --- a/source/java/org/alfresco/repo/web/scripts/rule/RuleServiceTest.java +++ b/source/java/org/alfresco/repo/web/scripts/rule/RuleServiceTest.java @@ -152,22 +152,6 @@ public class RuleServiceTest extends BaseWebScriptTest // ; // AuthenticationUtil.runAs(runAsWork, AuthenticationUtil.getSystemUserName()); } - - private void deleteUserAndAssocPerson(String userName) - { - // delete authentication if authentication exists for given user name - if (this.authenticationService.authenticationExists(userName)) - { - this.authenticationService.deleteAuthentication(userName); - } - - // delete person node associated with given user name - // if one exists - if (this.personService.personExists(userName)) - { - this.personService.deletePerson(userName); - } - } /** * Get a URL to the Rule Collection associated with the given rule owning diff --git a/source/java/org/alfresco/repo/webservice/administration/AdministrationWebService.java b/source/java/org/alfresco/repo/webservice/administration/AdministrationWebService.java index 93da111904..6ed1e415ea 100644 --- a/source/java/org/alfresco/repo/webservice/administration/AdministrationWebService.java +++ b/source/java/org/alfresco/repo/webservice/administration/AdministrationWebService.java @@ -600,10 +600,6 @@ public class AdministrationWebService extends AbstractWebService implements { for (String userName : userNames) { - if (this.manageAuthenticationDetails == true) - { - this.authenticationService.deleteAuthentication(userName); - } this.personService.deletePerson(userName); } }