summaryrefslogtreecommitdiffstats
path: root/lib/private/Share
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-08-23 13:54:19 +0200
committerJoas Schilling <coding@schilljs.com>2019-08-23 13:54:19 +0200
commitb130a4c8fb6b810ef892682a84158a232de661be (patch)
treeaa2023d8a636bb1cba9b32e8903e22c4361d6319 /lib/private/Share
parent12fd9103604ca1f828d0968dc9567bd902fc4ca4 (diff)
downloadnextcloud-server-b130a4c8fb6b810ef892682a84158a232de661be.tar.gz
nextcloud-server-b130a4c8fb6b810ef892682a84158a232de661be.zip
Make the sharing constants publicly available
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Share')
-rw-r--r--lib/private/Share/Constants.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/private/Share/Constants.php b/lib/private/Share/Constants.php
index 72dc5cd43be..a76208655a3 100644
--- a/lib/private/Share/Constants.php
+++ b/lib/private/Share/Constants.php
@@ -27,18 +27,47 @@
namespace OC\Share;
+use OCP\Share\IShare;
+
class Constants {
+ /**
+ * @deprecated 17.0.0 - use IShare::TYPE_USER instead
+ */
const SHARE_TYPE_USER = 0;
+ /**
+ * @deprecated 17.0.0 - use IShare::TYPE_GROUP instead
+ */
const SHARE_TYPE_GROUP = 1;
// const SHARE_TYPE_USERGROUP = 2; // Internal type used by DefaultShareProvider
+ /**
+ * @deprecated 17.0.0 - use IShare::TYPE_LINK instead
+ */
const SHARE_TYPE_LINK = 3;
+ /**
+ * @deprecated 17.0.0 - use IShare::TYPE_EMAIL instead
+ */
const SHARE_TYPE_EMAIL = 4;
const SHARE_TYPE_CONTACT = 5; // ToDo Check if it is still in use otherwise remove it
+ /**
+ * @deprecated 17.0.0 - use IShare::TYPE_REMOTE instead
+ */
const SHARE_TYPE_REMOTE = 6;
+ /**
+ * @deprecated 17.0.0 - use IShare::TYPE_CIRCLE instead
+ */
const SHARE_TYPE_CIRCLE = 7;
+ /**
+ * @deprecated 17.0.0 - use IShare::TYPE_GUEST instead
+ */
const SHARE_TYPE_GUEST = 8;
+ /**
+ * @deprecated 17.0.0 - use IShare::REMOTE_GROUP instead
+ */
const SHARE_TYPE_REMOTE_GROUP = 9;
+ /**
+ * @deprecated 17.0.0 - use IShare::TYPE_ROOM instead
+ */
const SHARE_TYPE_ROOM = 10;
// const SHARE_TYPE_USERROOM = 11; // Internal type used by RoomShareProvider