-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6637 from nextcloud/contactsstore_public_api
Make ContactsStore a public API
- Loading branch information
Showing
8 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace OCP\Contacts\ContactsMenu; | ||
|
||
use OCP\IUser; | ||
|
||
/** | ||
* @since 13.0.0 | ||
*/ | ||
interface IContactsStore { | ||
|
||
|
||
/** | ||
* @param IUser $user | ||
* @param $filter | ||
* @return IEntry[] | ||
* @since 13.0.0 | ||
*/ | ||
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 | ||
* @since 13.0.0 | ||
*/ | ||
public function findOne(IUser $user, $shareType, $shareWith); | ||
|
||
} |