diff options
author | Tobia De Koninck <tobia@ledfan.be> | 2017-09-16 13:42:46 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-12-11 18:18:58 +0100 |
commit | f6ef779f97c2abf0543184e58dd27b39aa0ea3bc (patch) | |
tree | d730368e486868726fc6a7df068c8c34a11d75c3 /lib/public/Contacts | |
parent | 45971879f525f146c225e1e7f6078ae241f32495 (diff) | |
download | nextcloud-server-f6ef779f97c2abf0543184e58dd27b39aa0ea3bc.tar.gz nextcloud-server-f6ef779f97c2abf0543184e58dd27b39aa0ea3bc.zip |
Make ContactsStore a public API
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
Diffstat (limited to 'lib/public/Contacts')
-rw-r--r-- | lib/public/Contacts/ContactsMenu/IContactsStore.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/public/Contacts/ContactsMenu/IContactsStore.php b/lib/public/Contacts/ContactsMenu/IContactsStore.php new file mode 100644 index 00000000000..415c450072d --- /dev/null +++ b/lib/public/Contacts/ContactsMenu/IContactsStore.php @@ -0,0 +1,26 @@ +<?php + +namespace OCP\Contacts\ContactsMenu; + +use OCP\IUser; + +interface IContactsStore { + + + /** + * @param IUser $user + * @param $filter + * @return IEntry[] + */ + public function getContacts(IUser $user, $filter); + + /** + * @brief finds a contact by specifying the property to search on ($shareType) and the value ($shareWith) + * @param IUser $user + * @param integer $shareType + * @param string $shareWith + * @return IEntry|null + */ + public function findOne(IUser $user, $shareType, $shareWith); + +}
\ No newline at end of file |