diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-23 15:02:08 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-23 15:02:08 +0100 |
commit | 9a0950f10bdef7a0bf3827d0fa3735ac57ccd797 (patch) | |
tree | d36344447029b3732e243d2a4ef2827e3c78dd15 /lib/public | |
parent | fae6643e6dd4bc308170e0ab45886f110f60a639 (diff) | |
parent | 3a65bdf4d59fe06919a064e3044cccc27aab5201 (diff) | |
download | nextcloud-server-9a0950f10bdef7a0bf3827d0fa3735ac57ccd797.tar.gz nextcloud-server-9a0950f10bdef7a0bf3827d0fa3735ac57ccd797.zip |
Merge pull request #22569 from owncloud/issue-22566-too-much-mapping-entries
Allow defining a limit and offset for getObjectIdsForTags
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/systemtag/isystemtagobjectmapper.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/public/systemtag/isystemtagobjectmapper.php b/lib/public/systemtag/isystemtagobjectmapper.php index 8db5cdd31aa..59b988a3656 100644 --- a/lib/public/systemtag/isystemtagobjectmapper.php +++ b/lib/public/systemtag/isystemtagobjectmapper.php @@ -57,15 +57,19 @@ interface ISystemTagObjectMapper { * * @param string|array $tagIds Tag id or array of tag ids. * @param string $objectType object type + * @param int $limit Count of object ids you want to get + * @param string $offset The last object id you already received * * @return string[] array of object ids or empty array if none found * * @throws \OCP\SystemTag\TagNotFoundException if at least one of the * given tags does not exist + * @throws \InvalidArgumentException When a limit is specified together with + * multiple tag ids * * @since 9.0.0 */ - public function getObjectIdsForTags($tagIds, $objectType); + public function getObjectIdsForTags($tagIds, $objectType, $limit = 0, $offset = ''); /** * Assign the given tags to the given object. |