Skip to content

Instantly share code, notes, and snippets.

@ramannanda9
Created August 17, 2011 07:34
Show Gist options
  • Save ramannanda9/1151035 to your computer and use it in GitHub Desktop.
Save ramannanda9/1151035 to your computer and use it in GitHub Desktop.
Opss searchroles
SimpleSearchFilter filter=store.getSimpleSearchFilter(RoleProfile.NAME,SimpleSearchFilter.TYPE_EQUAL,null);
String wildCardChar=filter.getWildCardChar();
filter.setValue(wildCardChar);
SearchParameters parameters=new SearchParameters(filter,SearchParameters.SEARCH_ROLES_ONLY) ;
SearchResponse resp=store.searchRoles(Role.SCOPE_ANY, parameters);
while(resp.hasNext()){
Role role=(Role)resp.next();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment