diff options
author | Joas Schilling <coding@schilljs.com> | 2018-10-18 13:00:25 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-03-01 20:56:15 +0100 |
commit | 5dfc56e925309d637be6f5a69cc16d0baaf20d03 (patch) | |
tree | 6bcee736d8e9369a2c519103bb0c005ca82e3e40 /lib/public/Collaboration | |
parent | 136d2c39ac72f837a3ea9a3f698be963fefb69a3 (diff) | |
download | nextcloud-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.php | 6 | ||||
-rw-r--r-- | lib/public/Collaboration/Resources/IManager.php | 6 |
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 |