Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/circles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Api
diff options
context:
space:
mode:
authorVinicius Cubas Brand <viniciuscb@gmail.com>2017-09-30 00:30:29 +0300
committerVinicius Cubas Brand <viniciuscb@gmail.com>2017-09-30 00:30:29 +0300
commite04b7e0837926efba145f075ffbcd6275dae6354 (patch)
tree93cbdccb434ccf5314ba2cc9a3572879b37dc0ac /lib/Api
parent736bf4ed92887ebd7af4197103f744baa7ce3c16 (diff)
Creation of panel to see circles' shared files
This commit inserts a panel in files visualization to allow filtering files that were shared to one or more circles. Depends on some other modifications in nextcloud core, that will be referenced in the PR. Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
Diffstat (limited to 'lib/Api')
-rw-r--r--lib/Api/v1/Circles.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/Api/v1/Circles.php b/lib/Api/v1/Circles.php
index d43c068e..dced9d7f 100644
--- a/lib/Api/v1/Circles.php
+++ b/lib/Api/v1/Circles.php
@@ -6,6 +6,9 @@
* later. See the COPYING file.
*
* @author Maxence Lange <maxence@pontapreta.net>
+ * @author Vinicius Cubas Brand <vinicius@eita.org.br>
+ * @author Daniel Tygel <dtygel@eita.org.br>
+ *
* @copyright 2017
* @license GNU AGPL version 3 or any later version
*
@@ -445,4 +448,28 @@ class Circles {
)
];
}
+
+ /**
+ * Get a list of objects which are shred with $circleUniqueId.
+ *
+ * @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 static function getObjectIdsForCircles($circleUniqueIds) {
+ $c = self::getContainer();
+
+ return $c->query(CirclesService::class)
+ ->getObjectIdsForCircles($circleUniqueIds);
+ }
} \ No newline at end of file