dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #29194
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14716: DataApprovalLevelService, added get by id method
------------------------------------------------------------
revno: 14716
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-04-07 11:21:32 +0200
message:
DataApprovalLevelService, added get by id method
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataapproval/DataApprovalLevelService.java
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalLevelService.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/dataapproval/DataApprovalLevelService.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataapproval/DataApprovalLevelService.java 2014-04-07 09:04:28 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataapproval/DataApprovalLevelService.java 2014-04-07 09:21:32 +0000
@@ -138,6 +138,14 @@
int getLowestUserDataApprovalLevel();
/**
+ * Gets the data approval level with the given id.
+ *
+ * @param id the id.
+ * @return a data approval level.
+ */
+ DataApprovalLevel getDataApprovalLevel( int id );
+
+ /**
* Gets the data approval level with the given name.
*
* @param name the name.
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalLevelService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalLevelService.java 2014-04-06 11:19:24 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalLevelService.java 2014-04-07 09:21:32 +0000
@@ -346,6 +346,11 @@
return 0;
}
+ public DataApprovalLevel getDataApprovalLevel( int id )
+ {
+ return dataApprovalLevelStore.get( id );
+ }
+
public DataApprovalLevel getDataApprovalLevelByName( String name )
{
return dataApprovalLevelStore.getByName( name );