summaryrefslogtreecommitdiffstats
path: root/lib/public/Collaboration
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-10-18 13:00:25 +0200
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:15 +0100
commit5dfc56e925309d637be6f5a69cc16d0baaf20d03 (patch)
tree6bcee736d8e9369a2c519103bb0c005ca82e3e40 /lib/public/Collaboration
parent136d2c39ac72f837a3ea9a3f698be963fefb69a3 (diff)
downloadnextcloud-server-5dfc56e925309d637be6f5a69cc16d0baaf20d03.tar.gz
nextcloud-server-5dfc56e925309d637be6f5a69cc16d0baaf20d03.zip
Allow to create collections
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Collaboration')
-rw-r--r--lib/public/Collaboration/Resources/ICollection.php6
-rw-r--r--lib/public/Collaboration/Resources/IManager.php6
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/Collaboration/Resources/ICollection.php b/lib/public/Collaboration/Resources/ICollection.php
index 0859ee3397e..1f503d8083a 100644
--- a/lib/public/Collaboration/Resources/ICollection.php
+++ b/lib/public/Collaboration/Resources/ICollection.php
@@ -30,6 +30,12 @@ use OCP\IUser;
interface ICollection {
/**
+ * @return int
+ * @since 15.0.0
+ */
+ public function getId(): int;
+
+ /**
* @return IResource[]
* @since 15.0.0
*/
diff --git a/lib/public/Collaboration/Resources/IManager.php b/lib/public/Collaboration/Resources/IManager.php
index 9a7fda28bb4..abccfd2eed1 100644
--- a/lib/public/Collaboration/Resources/IManager.php
+++ b/lib/public/Collaboration/Resources/IManager.php
@@ -35,6 +35,12 @@ interface IManager extends IProvider {
public function getCollection(int $id): ICollection;
/**
+ * @return ICollection
+ * @since 15.0.0
+ */
+ public function newCollection(): ICollection;
+
+ /**
* @param string $type
* @param string $id
* @return IResource