ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "/" + username + "/groups");
return UserGroupsResult.fromResponse(response);
}
public ResponseWrapper deleteUser( String username )
throws APIConnectionException, APIRequestException
<BUG>{
Preconditions.checkArgument( !StringUtils.isTrimedEmpty(username), "username should not be empty");
Preconditions.checkArgument(!StringUtils.isLineBroken(username), "username must not contain line feed character. ");</BUG>
return _httpClient.sendDelete(_baseUrl + userPath + "/" + username);
}

ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "/" + username + "/groups");
return UserGroupsResult.fromResponse(response);
}
public ResponseWrapper deleteUser( String username )
throws APIConnectionException, APIRequestException
{
Preconditions.checkArgument(StringUtils.isUsernameValid(username), "The username is illegal, please check again");
return _httpClient.sendDelete(_baseUrl + userPath + "/" + username);
}
