use of net.geoprism.registry.command.GeoserverRemoveWMSCommand in project geoprism-registry by terraframe.
the class ListTypeVersion method delete.
@Override
@Transaction
public void delete() {
// Delete all jobs
// List<ExecutableJob> jobs = this.getJobs();
//
// for (ExecutableJob job : jobs)
// {
// job.delete();
// }
// Delete tile cache
ListTileCache.deleteTiles(this);
ListTypeAttributeGroup.deleteAll(this);
MdBusiness mdTable = this.getMdBusiness();
super.delete();
if (mdTable != null) {
MdBusinessDAO mdBusiness = MdBusinessDAO.get(this.getMdBusinessOid()).getBusinessDAO();
mdBusiness.deleteAllRecords();
mdTable.delete();
}
if (this.getGeospatialVisibility().equals(ListType.PUBLIC)) {
new GeoserverRemoveWMSCommand(this).doIt();
}
}
Aggregations