delete pac

This commit is contained in:
Peter Hormanns 2011-07-27 15:36:57 +00:00
parent ac52ad8cdf
commit d7ee9d6485

View File

@ -61,6 +61,12 @@ public class PacProcessorFactory implements EntityProcessorFactory {
@Override
public <T extends AbstractEntity> Processor createUpdateProcessor(EntityManager em, T entity)
throws ProcessorException {
throw new ProcessorException("pac.update not implemented");
}
@Override
public <T extends AbstractEntity> Processor createDeleteProcessor(
EntityManager em, T entity) throws ProcessorException {
Pac pac = (Pac) entity;
Hive hive = pac.getHive();
UnixUser unixUser = getPacAdminUser(pac);
@ -74,12 +80,6 @@ public class PacProcessorFactory implements EntityProcessorFactory {
createMakePacDirectoryStructure(unixUser));
}
@Override
public <T extends AbstractEntity> Processor createDeleteProcessor(
EntityManager em, T entity) throws ProcessorException {
throw new ProcessorException("pac.delete not implemented");
}
private TemplateProcessor createEtcHostsProc(
Map<String, String> hiveValues,
List<Map<String, String>> pacValuesList) throws ProcessorException {