summaryrefslogtreecommitdiffstats
path: root/lib/public/Collaboration/Resources/IProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Collaboration/Resources/IProvider.php')
-rw-r--r--lib/public/Collaboration/Resources/IProvider.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/public/Collaboration/Resources/IProvider.php b/lib/public/Collaboration/Resources/IProvider.php
index eac92733dea..bf338113005 100644
--- a/lib/public/Collaboration/Resources/IProvider.php
+++ b/lib/public/Collaboration/Resources/IProvider.php
@@ -22,7 +22,27 @@ declare(strict_types=1);
namespace OCP\Collaboration\Resources;
+use OCP\IUser;
interface IProvider {
+ /**
+ * Get the display name of a resource
+ *
+ * @param IResource $resource
+ * @return string
+ * @since 15.0.0
+ */
+ public function getName(IResource $resource): string;
+
+ /**
+ * Can a user/guest access the collection
+ *
+ * @param IResource $resource
+ * @param IUser $user
+ * @return bool
+ * @since 15.0.0
+ */
+ public function canAccess(IResource $resource, IUser $user = null): bool;
+
}