use of net.geoprism.registry.etl.MasterListJob in project geoprism-registry by terraframe.
the class MasterList method delete.
@Override
@Transaction
public void delete() {
// Delete all jobs
List<MasterListJob> jobs = this.getJobs();
for (MasterListJob job : jobs) {
job.delete();
}
List<MasterListVersion> versions = this.getVersions(null);
for (MasterListVersion version : versions) {
version.delete();
}
super.delete();
final File directory = this.getShapefileDirectory();
if (directory.exists()) {
try {
FileUtils.deleteDirectory(directory);
} catch (IOException e) {
throw new ProgrammingErrorException(e);
}
}
}
Aggregations