dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #40517
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20559: UserAuthorityGroup, renamed users -> user serialized name to userObject to avoid conflicts
------------------------------------------------------------
revno: 20559
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-10-07 10:48:41 +0200
message:
UserAuthorityGroup, renamed users -> user serialized name to userObject to avoid conflicts
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserAuthorityGroup.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/user/UserAuthorityGroup.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserAuthorityGroup.java 2015-10-07 07:03:31 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserAuthorityGroup.java 2015-10-07 08:48:41 +0000
@@ -178,9 +178,10 @@
}
@JsonProperty
- @JsonView( { DetailedView.class } )
+ @JsonSerialize( contentAs = BaseIdentifiableObject.class )
+ @JsonView( { DetailedView.class, ExportView.class } )
@JacksonXmlElementWrapper( localName = "users", namespace = DxfNamespaces.DXF_2_0 )
- @JacksonXmlProperty( localName = "user", namespace = DxfNamespaces.DXF_2_0 )
+ @JacksonXmlProperty( localName = "userObject", namespace = DxfNamespaces.DXF_2_0 )
public List<User> getUsers()
{
List<User> users = new ArrayList<>();