delete pac users
This commit is contained in:
parent
f003a5cc69
commit
468a6f1be5
@ -68,9 +68,7 @@ public class PacProcessorFactory implements EntityProcessorFactory {
|
|||||||
public <T extends AbstractEntity> Processor createDeleteProcessor(
|
public <T extends AbstractEntity> Processor createDeleteProcessor(
|
||||||
EntityManager em, T entity) throws ProcessorException {
|
EntityManager em, T entity) throws ProcessorException {
|
||||||
Pac pac = (Pac) entity;
|
Pac pac = (Pac) entity;
|
||||||
em.refresh(pac);
|
|
||||||
Hive hive = pac.getHive();
|
Hive hive = pac.getHive();
|
||||||
UnixUser unixUser = getPacAdminUser(pac);
|
|
||||||
Map<String, String> hiveValues = fillHiveValues(hive);
|
Map<String, String> hiveValues = fillHiveValues(hive);
|
||||||
List<Map<String, String>> pacValuesList = fillPacValuesList(hive);
|
List<Map<String, String>> pacValuesList = fillPacValuesList(hive);
|
||||||
WaitingTasksProcessor waitingProcessor = new WaitingTasksProcessor(new CompoundProcessor(
|
WaitingTasksProcessor waitingProcessor = new WaitingTasksProcessor(new CompoundProcessor(
|
||||||
@ -78,7 +76,7 @@ public class PacProcessorFactory implements EntityProcessorFactory {
|
|||||||
createNetworkInterfacesProc(hiveValues, pacValuesList),
|
createNetworkInterfacesProc(hiveValues, pacValuesList),
|
||||||
createSudouersProc(hiveValues, pacValuesList),
|
createSudouersProc(hiveValues, pacValuesList),
|
||||||
createProftpdConfProc(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;
|
return waitingProcessor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user