diff --git a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java index f96a02a..16a3be8 100644 --- a/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java @@ -68,9 +68,7 @@ public class PacProcessorFactory implements EntityProcessorFactory { public Processor createDeleteProcessor( EntityManager em, T entity) throws ProcessorException { Pac pac = (Pac) entity; - em.refresh(pac); Hive hive = pac.getHive(); - UnixUser unixUser = getPacAdminUser(pac); Map hiveValues = fillHiveValues(hive); List> pacValuesList = fillPacValuesList(hive); WaitingTasksProcessor waitingProcessor = new WaitingTasksProcessor(new CompoundProcessor( @@ -78,7 +76,7 @@ public class PacProcessorFactory implements EntityProcessorFactory { createNetworkInterfacesProc(hiveValues, pacValuesList), createSudouersProc(hiveValues, pacValuesList), createProftpdConfProc(hiveValues, pacValuesList))); - waitingProcessor.appendProcessor(pac.getHiveName(), createDelUserProc(unixUser.getName()), "remove packet"); + waitingProcessor.appendProcessor(pac.getHiveName(), createDelUserProc(pac.getName()), "remove packet"); return waitingProcessor; }