private Collection < LdapEntry > readConsentEntries ( ) { try { val att = this . ldap . getConsentAttributeName ( ) ; val filter = LdapUtils . newLdaptiveSearchFilter ( ' ' + att + "=*)" ) ; LOGGER . debug ( "Locating consent LDAP entries via filter [{}] based on attribute [{}]" , filter , att ) ; val response = LdapUtils . executeSearchOperation ( this . connectionFactory , this . ldap . getBaseDn ( ) , filter , att ) ; if ( LdapUtils . containsResultEntry ( response ) ) { val results = response . getResult ( ) . getEntries ( ) ; LOGGER . debug ( "Locating [{}] consent LDAP entries" , results . size ( ) ) ; return results ; } } catch ( final LdapException e ) { LOGGER . debug ( e . getMessage ( ) , e ) ; } return new HashSet <> ( 0 ) ; }
Fetches all user entries that contain consent attributes along with these .