Search in sources :

Example 1 with GeoserverRemoveWMSCommand

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();
    }
}
Also used : MdBusinessDAO(com.runwaysdk.dataaccess.metadata.MdBusinessDAO) MdBusiness(com.runwaysdk.system.metadata.MdBusiness) GeoserverRemoveWMSCommand(net.geoprism.registry.command.GeoserverRemoveWMSCommand) Transaction(com.runwaysdk.dataaccess.transaction.Transaction)

Aggregations

MdBusinessDAO (com.runwaysdk.dataaccess.metadata.MdBusinessDAO)1 Transaction (com.runwaysdk.dataaccess.transaction.Transaction)1 MdBusiness (com.runwaysdk.system.metadata.MdBusiness)1 GeoserverRemoveWMSCommand (net.geoprism.registry.command.GeoserverRemoveWMSCommand)1