Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
b130a4c8
Unverified
Commit
b130a4c8
authored
5 years ago
by
Joas Schilling
Browse files
Options
Downloads
Patches
Plain Diff
Make the sharing constants publicly available
Signed-off-by:
Joas Schilling
<
coding@schilljs.com
>
parent
12fd9103
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/private/Share/Constants.php
+29
-0
29 additions, 0 deletions
lib/private/Share/Constants.php
lib/public/Share/IShare.php
+57
-0
57 additions, 0 deletions
lib/public/Share/IShare.php
with
86 additions
and
0 deletions
lib/private/Share/Constants.php
+
29
−
0
View file @
b130a4c8
...
@@ -27,18 +27,47 @@
...
@@ -27,18 +27,47 @@
namespace
OC\Share
;
namespace
OC\Share
;
use
OCP\Share\IShare
;
class
Constants
{
class
Constants
{
/**
* @deprecated 17.0.0 - use IShare::TYPE_USER instead
*/
const
SHARE_TYPE_USER
=
0
;
const
SHARE_TYPE_USER
=
0
;
/**
* @deprecated 17.0.0 - use IShare::TYPE_GROUP instead
*/
const
SHARE_TYPE_GROUP
=
1
;
const
SHARE_TYPE_GROUP
=
1
;
// const SHARE_TYPE_USERGROUP = 2; // Internal type used by DefaultShareProvider
// const SHARE_TYPE_USERGROUP = 2; // Internal type used by DefaultShareProvider
/**
* @deprecated 17.0.0 - use IShare::TYPE_LINK instead
*/
const
SHARE_TYPE_LINK
=
3
;
const
SHARE_TYPE_LINK
=
3
;
/**
* @deprecated 17.0.0 - use IShare::TYPE_EMAIL instead
*/
const
SHARE_TYPE_EMAIL
=
4
;
const
SHARE_TYPE_EMAIL
=
4
;
const
SHARE_TYPE_CONTACT
=
5
;
// ToDo Check if it is still in use otherwise remove it
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
;
const
SHARE_TYPE_REMOTE
=
6
;
/**
* @deprecated 17.0.0 - use IShare::TYPE_CIRCLE instead
*/
const
SHARE_TYPE_CIRCLE
=
7
;
const
SHARE_TYPE_CIRCLE
=
7
;
/**
* @deprecated 17.0.0 - use IShare::TYPE_GUEST instead
*/
const
SHARE_TYPE_GUEST
=
8
;
const
SHARE_TYPE_GUEST
=
8
;
/**
* @deprecated 17.0.0 - use IShare::REMOTE_GROUP instead
*/
const
SHARE_TYPE_REMOTE_GROUP
=
9
;
const
SHARE_TYPE_REMOTE_GROUP
=
9
;
/**
* @deprecated 17.0.0 - use IShare::TYPE_ROOM instead
*/
const
SHARE_TYPE_ROOM
=
10
;
const
SHARE_TYPE_ROOM
=
10
;
// const SHARE_TYPE_USERROOM = 11; // Internal type used by RoomShareProvider
// const SHARE_TYPE_USERROOM = 11; // Internal type used by RoomShareProvider
...
...
This diff is collapsed.
Click to expand it.
lib/public/Share/IShare.php
+
57
−
0
View file @
b130a4c8
...
@@ -39,6 +39,63 @@ use OCP\Share\Exceptions\IllegalIDChangeException;
...
@@ -39,6 +39,63 @@ use OCP\Share\Exceptions\IllegalIDChangeException;
*/
*/
interface
IShare
{
interface
IShare
{
/**
* @since 17.0.0
*/
public
const
TYPE_USER
=
0
;
/**
* @since 17.0.0
*/
public
const
TYPE_GROUP
=
1
;
/**
* @since 17.0.0
*/
public
const
TYPE_LINK
=
3
;
/**
* @since 17.0.0
*/
public
const
TYPE_EMAIL
=
4
;
/**
* ToDo Check if it is still in use otherwise remove it
* @since 17.0.0
*/
// public const TYPE_CONTACT = 5;
/**
* @since 17.0.0
*/
public
const
TYPE_REMOTE
=
6
;
/**
* @since 17.0.0
*/
public
const
TYPE_CIRCLE
=
7
;
/**
* @since 17.0.0
*/
public
const
TYPE_GUEST
=
8
;
/**
* @since 17.0.0
*/
public
const
TYPE_REMOTE_GROUP
=
9
;
/**
* @since 17.0.0
*/
public
const
TYPE_ROOM
=
10
;
/**
* Internal type used by RoomShareProvider
* @since 17.0.0
*/
// const TYPE_USERROOM = 11;
/**
/**
* Set the internal id of the share
* Set the internal id of the share
* It is only allowed to set the internal id of a share once.
* It is only allowed to set the internal id of a share once.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment