Created
August 17, 2011 07:34
-
-
Save ramannanda9/1151035 to your computer and use it in GitHub Desktop.
Opss searchroles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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