← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8661: Added postProcessEntity that takes parameters to AbstractCrudController

 

------------------------------------------------------------
revno: 8661
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-10-23 14:00:09 +0200
message:
  Added postProcessEntity that takes parameters to AbstractCrudController
modified:
  dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/AbstractCrudController.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-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/AbstractCrudController.java'
--- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/AbstractCrudController.java	2012-10-01 16:36:21 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/api/controller/AbstractCrudController.java	2012-10-23 12:00:09 +0000
@@ -107,7 +107,8 @@
         }
 
         postProcessEntity( entity );
-        
+        postProcessEntity( entity, parameters );
+
         model.addAttribute( "model", entity );
         model.addAttribute( "viewClass", options.getViewClass( "detailed" ) );
 
@@ -133,7 +134,8 @@
         }
 
         postProcessEntity( entity );
-        
+        postProcessEntity( entity, parameters );
+
         model.addAttribute( "model", entity );
         model.addAttribute( "viewClass", "detailed" );
 
@@ -201,7 +203,11 @@
     public void postProcessEntity( T entity ) throws Exception
     {
     }
-    
+
+    public void postProcessEntity( T entity, Map<String, String> parameters ) throws Exception
+    {
+    }
+
     //--------------------------------------------------------------------------
     // Helpers
     //--------------------------------------------------------------------------