Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

CrowdClient SearchUsers

Jungsu October 20, 2014

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")

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Diego Berrueta
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 20, 2014

Hi @Jungsu, I think BooleanRestriction is what you're looking for, in particular it's implementation, BooleanRestrictionImpl.

I hope that helps.

Caspar Krieger
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 20, 2014

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

TAGS
AUG Leaders

Atlassian Community Events