dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #27428
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13661: Made all modules+apps availabe at /dhis-web-commons/menu/getModules.action
------------------------------------------------------------
revno: 13661
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-01-08 18:41:22 +0100
message:
Made all modules+apps availabe at /dhis-web-commons/menu/getModules.action
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/User.java
dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-web/dhis-web-commons/src/main/resources/dhis-web-commons.xml
--
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/user/User.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/User.java 2013-10-08 10:20:06 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/User.java 2014-01-08 17:41:22 +0000
@@ -45,9 +45,11 @@
import org.hisp.dhis.common.view.ExportView;
import org.hisp.dhis.organisationunit.OrganisationUnit;
+import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
+import java.util.List;
import java.util.Set;
/**
@@ -112,6 +114,8 @@
*/
private Set<AttributeValue> attributeValues = new HashSet<AttributeValue>();
+ private List<String> apps = new ArrayList<String>(); //TODO not yet in use
+
// -------------------------------------------------------------------------
// Logic
// -------------------------------------------------------------------------
@@ -449,6 +453,16 @@
this.attributeValues = attributeValues;
}
+ public List<String> getApps()
+ {
+ return apps;
+ }
+
+ public void setApps( List<String> apps )
+ {
+ this.apps = apps;
+ }
+
@Override
public void mergeWith( IdentifiableObject other )
{
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml 2013-12-19 11:50:58 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/resources/META-INF/dhis/beans.xml 2014-01-08 17:41:22 +0000
@@ -77,6 +77,8 @@
<bean id="org.hisp.dhis.webportal.menu.action.SetMenuStateAction" class="org.hisp.dhis.webportal.menu.action.SetMenuStateAction"/>
+ <bean id="org.hisp.dhis.webportal.menu.action.GetModulesAction" class="org.hisp.dhis.webportal.menu.action.GetModulesAction" />
+
<bean id="org.hisp.dhis.webportal.interceptor.XWorkPortalMenuInterceptor"
class="org.hisp.dhis.webportal.interceptor.XWorkPortalMenuInterceptor">
<property name="menuStateManager">
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/resources/dhis-web-commons.xml'
--- dhis-2/dhis-web/dhis-web-commons/src/main/resources/dhis-web-commons.xml 2013-12-20 19:48:58 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/resources/dhis-web-commons.xml 2014-01-08 17:41:22 +0000
@@ -289,6 +289,11 @@
</result>
<param name="onExceptionReturn">plainTextError</param>
</action>
+
+ <action name="getModules" class="org.hisp.dhis.webportal.menu.action.GetModulesAction">
+ <result name="success" type="velocity-json">/dhis-web-commons/ajax/jsonModules.vm</result>
+ <param name="onExceptionReturn">plainTextError</param>
+ </action>
</package>