public class DefaultDirectorySearch extends java.lang.Object implements SerializedDirectorySearch
Constructor and Description |
---|
DefaultDirectorySearch(DirectoryDeserializer deserializer) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<AddressBookRecord> |
all() |
java.util.Optional<AddressBookRecord> |
byDistinguishedName(java.lang.String distinguishedName)
The given name will be lower cased for case insensitive matches
|
java.util.Optional<AddressBookRecord> |
byEmail(java.lang.String email) |
SearchResults |
byKind(java.util.List<java.lang.String> kinds,
int offset,
int limit) |
java.util.Collection<AddressBookRecord> |
byKind(java.lang.String kind) |
java.util.Optional<AddressBookRecord> |
byMinimalId(long minimalId) |
java.util.Collection<AddressBookRecord> |
byNameOrEmailPrefix(java.lang.String value) |
java.util.Optional<AddressBookRecord> |
byUid(java.lang.String uid) |
java.util.Optional<OfflineAddressBook> |
root() |
java.util.List<AddressBookRecord> |
search(java.util.List<java.util.function.Predicate<? super AddressBookRecord>> predicates) |
java.util.List<AddressBookRecord> |
search(Query query) |
public DefaultDirectorySearch(DirectoryDeserializer deserializer)
public java.util.Optional<OfflineAddressBook> root()
root
in interface SerializedDirectorySearch
public java.util.List<AddressBookRecord> search(java.util.List<java.util.function.Predicate<? super AddressBookRecord>> predicates)
search
in interface SerializedDirectorySearch
public java.util.Optional<AddressBookRecord> byDistinguishedName(java.lang.String distinguishedName)
SerializedDirectorySearch
byDistinguishedName
in interface SerializedDirectorySearch
public java.util.Optional<AddressBookRecord> byUid(java.lang.String uid)
byUid
in interface SerializedDirectorySearch
public java.util.Optional<AddressBookRecord> byMinimalId(long minimalId)
byMinimalId
in interface SerializedDirectorySearch
public java.util.Collection<AddressBookRecord> byNameOrEmailPrefix(java.lang.String value)
byNameOrEmailPrefix
in interface SerializedDirectorySearch
public java.util.Optional<AddressBookRecord> byEmail(java.lang.String email)
byEmail
in interface SerializedDirectorySearch
public java.util.Collection<AddressBookRecord> byKind(java.lang.String kind)
byKind
in interface SerializedDirectorySearch
public SearchResults byKind(java.util.List<java.lang.String> kinds, int offset, int limit)
byKind
in interface SerializedDirectorySearch
public java.util.Collection<AddressBookRecord> all()
all
in interface SerializedDirectorySearch
public java.util.List<AddressBookRecord> search(Query query)
search
in interface SerializedDirectorySearch
Copyright © 2021. All Rights Reserved.