PropertyRestriction<String> restriction = Restriction.on(
UserTermKeys.USERNAME).startingWith("abc");
Iterable<User> usernames = crowdClient.searchUsers(restriction, page, 50);
But i want to combine together :
Restriction.on(UserTermKeys.USERNAME).startingWith("abc")
Restriction.on(UserTermKeys.DISPLAY_NAME).startingWith("abc")
Community moderators have prevented the ability to post new answers.
Hi @Jungsu, I think BooleanRestriction is what you're looking for, in particular it's implementation, BooleanRestrictionImpl.
I hope that helps.
Or even more specifically, Combine.allOf() gives you a nicer interface: https://docs.atlassian.com/crowd/2.7.1/com/atlassian/crowd/search/builder/Combine.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.