From f8de19dd0de015edbd657f84b7295dafee346198 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Wed, 27 Jul 2011 17:02:13 +0000 Subject: [PATCH] delete pac users --- hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java | 1 + hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java index 48955de..adfbc60 100644 --- a/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java +++ b/hsarback/src/de/hsadmin/mods/pac/PacModuleImpl.java @@ -138,6 +138,7 @@ public class PacModuleImpl extends AbstractModuleImpl { for (UnixUser user : pac.getUnixUser()) { if (!pacName.equals(user.getName())) { helperModule.delete(user); + pac.getUnixUser().remove(user); } } super.delete(existingEntity); diff --git a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java index 8cc9406..ac2cd9e 100644 --- a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java @@ -149,7 +149,7 @@ public class PacProcessorFactory implements EntityProcessorFactory { if (unixUserSet.size() == 1) { unixUser = unixUserSet.iterator().next(); } else { - throw new ProcessorException("package contains users"); + throw new ProcessorException("packet contains users"); } return unixUser; }