private Set < String > getGroups ( DirContext context , String callerDn ) { Set < String > groups = null ; String groupSearchBase = idStoreDefinition . getGroupSearchBase ( ) ; String groupSearchFilter = idStoreDefinition . getGroupSearchFilter ( ) ; if ( groupSearchBase . isEmpty ( ) || groupSearchFilter . isEmpty ( ) ) { groups = getGroupsByMembership ( context , callerDn ) ; } else { groups = getGroupsByMember ( context , callerDn , groupSearchBase , groupSearchFilter ) ; } return groups ; }
Get the groups for the caller