HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2013-03-06 ff76f1bf5938909856d43988ddb9890d0105a50e
pac.delete remove domains before users
1 files modified
8 ■■■■ changed files
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java 8 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/pac/PacProcessorFactory.java
@@ -81,16 +81,16 @@
    public <T extends AbstractEntity> Processor createDeleteProcessor(EntityManager em, T entity) throws ProcessorException {
        Pac pac = (Pac) entity;
        Hive hive = pac.getHive();
        WaitingTasksProcessor waitingProcessor = new WaitingTasksProcessor(new CompoundProcessor(
        WaitingTasksProcessor waiting = new WaitingTasksProcessor(createDelUserProc(pac.getName()));
        waiting.appendProcessor(pac.getHiveName(), new CompoundProcessor(
                createIfDown(pac.getName()),
                createEtcHostsProc(hive), 
                createNetworkInterfacesProc(hive), 
                createSudouersProc(hive), 
                createProftpdConfProc(hive),
                createHttpdVirtualProc(hive),
                createAccountingRulesProc()));
        waitingProcessor.appendProcessor(pac.getHiveName(), createDelUserProc(pac.getName()), "remove packet");
        return waitingProcessor;
                createAccountingRulesProc()), "remove packet");
        return waiting;
    }
    private Processor createEtcHostsProc(Hive hive) throws ProcessorException {