* @return the result
* @see {@link User#findUsers(int, String)}
*/
public static Result userList(int pageNum, String query) {
String state = StringUtils.defaultIfBlank(request().getQueryString("state"), UserState.ACTIVE.name());
UserState userState = UserState.valueOf(state);
Page<User> users = User.findUsers(pageNum -1, query, userState);
return ok(userList.render("title.siteSetting", users, userState, query));
}