pac.delete remove domains before users

This commit is contained in:
Peter Hormanns 2013-03-06 12:39:40 +01:00
parent 6208e0ec8c
commit ff76f1bf59

View File

@ -81,16 +81,16 @@ public class PacProcessorFactory implements EntityProcessorFactory {
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 {