← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 924: Added DataElementGroupSet and IndicatorGroupSet to DeletionHandler.

 

------------------------------------------------------------
revno: 924
committer: Lars Helge Oeverland larshelge@xxxxxxxxx
branch nick: trunk
timestamp: Thu 2009-10-29 11:39:30 +0100
message:
  Added DataElementGroupSet and IndicatorGroupSet to DeletionHandler.
modified:
  dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/deletion/DeletionHandler.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/deletion/DeletionHandler.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/deletion/DeletionHandler.java	2009-10-17 18:32:20 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/deletion/DeletionHandler.java	2009-10-29 10:39:30 +0000
@@ -35,6 +35,7 @@
 import org.hisp.dhis.dataelement.DataElementCategoryOption;
 import org.hisp.dhis.dataelement.DataElementCategoryOptionCombo;
 import org.hisp.dhis.dataelement.DataElementGroup;
+import org.hisp.dhis.dataelement.DataElementGroupSet;
 import org.hisp.dhis.datamart.DataMartExport;
 import org.hisp.dhis.dataset.CompleteDataSetRegistration;
 import org.hisp.dhis.dataset.DataEntryForm;
@@ -46,6 +47,7 @@
 import org.hisp.dhis.expression.Expression;
 import org.hisp.dhis.indicator.Indicator;
 import org.hisp.dhis.indicator.IndicatorGroup;
+import org.hisp.dhis.indicator.IndicatorGroupSet;
 import org.hisp.dhis.indicator.IndicatorType;
 import org.hisp.dhis.mapping.Map;
 import org.hisp.dhis.mapping.MapLegendSet;
@@ -127,6 +129,15 @@
         return true;
     }
     
+    public void deleteDataElementGroupSet( DataElementGroupSet dataElementGroupSet )
+    {
+    }
+    
+    public boolean allowDeleteDataElementGroupSet( DataElementGroupSet dataElementGroupSet )
+    {
+        return true;
+    }
+    
     public void deleteDataElementCategory( DataElementCategory category )
     {
     }
@@ -243,6 +254,15 @@
     {
         return true;
     }
+
+    public void deleteIndicatorGroupSet( IndicatorGroupSet indicatorGroupSet )
+    {
+    }
+    
+    public boolean allowDeleteIndicatorGroupSet( IndicatorGroupSet indicatorGroupSet )
+    {
+        return true;
+    }
     
     public void deletePeriod( Period period )
     {