dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #34987
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17953: UserQueryParams toString
------------------------------------------------------------
revno: 17953
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-01-13 11:16:41 +0100
message:
UserQueryParams toString
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserQueryParams.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/UserQueryParams.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserQueryParams.java 2014-12-30 14:29:14 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserQueryParams.java 2015-01-13 10:16:41 +0000
@@ -32,6 +32,8 @@
import org.hisp.dhis.organisationunit.OrganisationUnit;
+import com.google.common.base.MoreObjects;
+
/**
* @author Lars Helge Overland
*/
@@ -79,6 +81,28 @@
}
// -------------------------------------------------------------------------
+ // toString
+ // -------------------------------------------------------------------------
+
+ @Override
+ public String toString()
+ {
+ return MoreObjects.toStringHelper( this ).
+ add( "query", query ).
+ add( "phone number", phoneNumber ).
+ add( "can manage", canManage ).
+ add( "auth subset", authSubset ).
+ add( "disjoint roles", disjointRoles ).
+ add( "last login", lastLogin ).
+ add( "inactive since", inactiveSince ).
+ add( "inactive months", inactiveMonths ).
+ add( "self registered", selfRegistered ).
+ add( "invitation status", invitationStatus ).
+ add( "first", first ).
+ add( "max", max ).toString();
+ }
+
+ // -------------------------------------------------------------------------
// Getters and setters
// -------------------------------------------------------------------------