| | |
| | | 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); |
| | | return new CompoundProcessor( |
| | | WaitingTasksProcessor waitingProcessor = new WaitingTasksProcessor(new CompoundProcessor( |
| | | createEtcHostsProc(hiveValues, pacValuesList), |
| | | createNetworkInterfacesProc(hiveValues, pacValuesList), |
| | | createSudouersProc(hiveValues, pacValuesList), |
| | | createProftpdConfProc(hiveValues, pacValuesList), |
| | | createDelUserProc(unixUser.getName())); |
| | | createProftpdConfProc(hiveValues, pacValuesList))); |
| | | waitingProcessor.appendProcessor(pac.getHiveName(), createDelUserProc(unixUser.getName()), "remove packet"); |
| | | return waitingProcessor; |
| | | } |
| | | |
| | | private TemplateProcessor createEtcHostsProc( |