HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-07-28 468a6f1be5ed8104277d8e3baea596e46045551c
delete pac users
1 files modified
4 ■■■ changed files
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java 4 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -68,9 +68,7 @@
    public <T extends AbstractEntity> Processor createDeleteProcessor(
            EntityManager em, T entity) throws ProcessorException {
        Pac pac = (Pac) entity;
        em.refresh(pac);
        Hive hive = pac.getHive();
        UnixUser unixUser = getPacAdminUser(pac);
        Map<String, String> hiveValues = fillHiveValues(hive);
        List<Map<String, String>> pacValuesList = fillPacValuesList(hive);
        WaitingTasksProcessor waitingProcessor = new WaitingTasksProcessor(new CompoundProcessor(
@@ -78,7 +76,7 @@
                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;
    }