this may be an expensive operation . in order to count the number of available definitions in ldap , this call will attempt to execute a search query to load services and the results will be counted . do not attempt to call this operation in a loop . concode_field_sep ConnectionFactory connectionFactory concode_elem_sep String loadFilter concode_elem_sep LdapRegisteredServiceMapper ldapServiceMapper concode_elem_sep Logger LOGGER concode_elem_sep String baseDn concode_elem_sep String searchFilter concode_field_sep void init concode_elem_sep Response<SearchResult> getSearchResultResponse concode_elem_sep Response<SearchResult> searchForServiceById concode_elem_sep void setLdapServiceMapper concode_elem_sep List<RegisteredService> load concode_elem_sep RegisteredService save concode_elem_sep RegisteredService findServiceById concode_elem_sep RegisteredService findServiceById concode_elem_sep RegisteredService update concode_elem_sep String toString concode_elem_sep boolean delete concode_elem_sep void setBaseDn concode_elem_sep void setConnectionFactory
long function ( ) { try { final Response < SearchResult > loc0 = getSearchResultResponse ( ) ; if ( LdapUtils . containsResultEntry ( loc0 ) ) { return loc0 . getResult ( ) . size ( ) ; } } catch ( final LdapException loc0 ) { LOGGER . error ( loc0 . getMessage ( ) , loc0 ) ; } return 0 ; }