← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3679: Impl method getIndicatorsLikeName

 

------------------------------------------------------------
revno: 3679
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-05-20 10:01:23 +0200
message:
  Impl method getIndicatorsLikeName
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/indicator/IndicatorService.java
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/indicator/IndicatorStore.java
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/indicator/DefaultIndicatorService.java
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/indicator/hibernate/HibernateIndicatorStore.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-api/src/main/java/org/hisp/dhis/indicator/IndicatorService.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/indicator/IndicatorService.java	2010-12-04 00:17:59 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/indicator/IndicatorService.java	2011-05-20 08:01:23 +0000
@@ -67,6 +67,8 @@
 
     int getIndicatorCountByName( String name );
     
+    Collection<Indicator> getIndicatorsLikeName( String name );
+    
     Collection<Indicator> getIndicatorsBetweenByName( String name, int first, int max );
     
     int getIndicatorCount();

=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/indicator/IndicatorStore.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/indicator/IndicatorStore.java	2010-11-27 07:46:29 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/indicator/IndicatorStore.java	2011-05-20 08:01:23 +0000
@@ -61,6 +61,8 @@
 
     int getIndicatorCountByName( String name );
     
+    Collection<Indicator> getIndicatorsLikeName( String name );
+    
     Collection<Indicator> getIndicatorsBetweenByName( String name, int first, int max );
     
     int getIndicatorCount();

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/indicator/DefaultIndicatorService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/indicator/DefaultIndicatorService.java	2010-12-02 18:13:14 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/indicator/DefaultIndicatorService.java	2011-05-20 08:01:23 +0000
@@ -186,6 +186,11 @@
         return indicatorStore.getIndicatorCountByName( name );
     }
 
+    public Collection<Indicator> getIndicatorsLikeName( String name )
+    {
+        return i18n( i18nService, indicatorStore.getIndicatorsLikeName( name ) );
+    }
+    
     public Collection<Indicator> getIndicatorsBetween( int first, int max )
     {
         return i18n( i18nService, indicatorStore.getIndicatorsBetween( first, max ) );

=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/indicator/hibernate/HibernateIndicatorStore.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/indicator/hibernate/HibernateIndicatorStore.java	2010-12-04 00:17:59 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/indicator/hibernate/HibernateIndicatorStore.java	2011-05-20 08:01:23 +0000
@@ -161,12 +161,17 @@
     {
         return getCount();
     }
-
+    
     public int getIndicatorCountByName( String name )
     {
         return getCountByName( name );
     }
 
+    public Collection<Indicator> getIndicatorsLikeName( String name )
+    {
+        return getLikeName( name );
+    }
+    
     public Collection<Indicator> getIndicatorsBetween( int first, int max )
     {
         return getBetween( first, max );