dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #07029
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1971: Added method moduleExists to ModuleManager
------------------------------------------------------------
revno: 1971
committer: Lars <larshelg@larshelg-laptop>
branch nick: trunk
timestamp: Thu 2010-08-26 07:42:10 +0200
message:
Added method moduleExists to ModuleManager
modified:
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/webportal/module/DefaultModuleManager.java
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/webportal/module/ModuleManager.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-commons/src/main/java/org/hisp/dhis/webportal/module/DefaultModuleManager.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/webportal/module/DefaultModuleManager.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/webportal/module/DefaultModuleManager.java 2010-08-26 05:42:10 +0000
@@ -107,6 +107,11 @@
return modulesByNamespace.get( namespace );
}
+
+ public boolean moduleExists( String name )
+ {
+ return getModuleByName( name ) != null;
+ }
public List<Module> getMenuModules()
{
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/webportal/module/ModuleManager.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/webportal/module/ModuleManager.java 2010-04-12 21:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/webportal/module/ModuleManager.java 2010-08-26 05:42:10 +0000
@@ -40,6 +40,8 @@
Module getModuleByNamespace( String namespace );
+ boolean moduleExists( String name );
+
List<Module> getMenuModules();
List<Module> getMaintenanceMenuModules();