|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
|
|
4
|
|
|
namespace Soheilrt\AdobeConnectClient\Facades; |
|
5
|
|
|
|
|
6
|
|
|
|
|
7
|
|
|
use Illuminate\Support\Facades\Facade; |
|
8
|
|
|
use \Soheilrt\AdobeConnectClient\Client\Entities; |
|
9
|
|
|
|
|
10
|
|
|
/** |
|
11
|
|
|
* @method static \Soheilrt\AdobeConnectClient\Client\Entities\Permission setAclId($value) |
|
12
|
|
|
* @method static \Soheilrt\AdobeConnectClient\Client\Entities\Permission setPermissionId($value) |
|
13
|
|
|
* @method static \Soheilrt\AdobeConnectClient\Client\Entities\Permission setPrincipalId($value) |
|
14
|
|
|
* |
|
15
|
|
|
*/ |
|
16
|
|
|
class Permission extends Facade |
|
17
|
|
|
{ |
|
18
|
|
|
/** |
|
19
|
|
|
* Special permission for Meeting. |
|
20
|
|
|
* |
|
21
|
|
|
* This Constant is used in the principal-id parameter with the others MEETING_* constants. |
|
22
|
|
|
* |
|
23
|
|
|
* @var string |
|
24
|
|
|
*/ |
|
25
|
|
|
public const MEETING_PRINCIPAL_PUBLIC_ACCESS = Entities\Permission::MEETING_PRINCIPAL_PUBLIC_ACCESS; |
|
26
|
|
|
|
|
27
|
|
|
/** |
|
28
|
|
|
* Special permission for Meeting. |
|
29
|
|
|
* |
|
30
|
|
|
* Need set principal-id parameter with Permission::MEETING_PRINCIPAL_PUBLIC_ACCESS |
|
31
|
|
|
* |
|
32
|
|
|
* The meeting is public, and anyone who has the URL for the meeting can enter the room. |
|
33
|
|
|
* |
|
34
|
|
|
* @var string |
|
35
|
|
|
*/ |
|
36
|
|
|
public const MEETING_ANYONE_WITH_URL = Entities\Permission::MEETING_ANYONE_WITH_URL; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* Special permission for Meeting. |
|
40
|
|
|
* |
|
41
|
|
|
* Need set principal-id parameter with Permission::MEETING_PRINCIPAL_PUBLIC_ACCESS |
|
42
|
|
|
* |
|
43
|
|
|
* The meeting is protected and only registered users and accepted guests can enter the room. |
|
44
|
|
|
* |
|
45
|
|
|
* @var string |
|
46
|
|
|
*/ |
|
47
|
|
|
public const MEETING_PROTECTED = Entities\Permission::MEETING_PROTECTED; |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* Special permission for Meeting. |
|
51
|
|
|
* |
|
52
|
|
|
* Need set principal-id parameter with Permission::MEETING_PRINCIPAL_PUBLIC_ACCESS |
|
53
|
|
|
* |
|
54
|
|
|
* The meeting is private and only registered users and participants can enter the room. |
|
55
|
|
|
* |
|
56
|
|
|
* @var string |
|
57
|
|
|
*/ |
|
58
|
|
|
public const MEETING_PRIVATE = Entities\Permission::MEETING_PRIVATE; |
|
59
|
|
|
|
|
60
|
|
|
/** |
|
61
|
|
|
* Special permission for Recording. |
|
62
|
|
|
* |
|
63
|
|
|
* The recording is public. |
|
64
|
|
|
* |
|
65
|
|
|
* @var string |
|
66
|
|
|
*/ |
|
67
|
|
|
public const RECORDING_PUBLIC = Entities\Permission::RECORDING_PUBLIC; |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* The principal can view, but cannot modify, the SCO. |
|
71
|
|
|
* The principal can take a course, attend a meeting as participant, or view a folder’s content. |
|
72
|
|
|
* |
|
73
|
|
|
* @var string |
|
74
|
|
|
*/ |
|
75
|
|
|
public const PRINCIPAL_VIEW = Entities\Permission::PRINCIPAL_VIEW; |
|
76
|
|
|
|
|
77
|
|
|
/** |
|
78
|
|
|
* Available for meetings only. |
|
79
|
|
|
* |
|
80
|
|
|
* The principal is host of a meeting and can create the meeting or act as presenter, |
|
81
|
|
|
* even without view permission on the meeting’s parent folder. |
|
82
|
|
|
* |
|
83
|
|
|
* @var string |
|
84
|
|
|
*/ |
|
85
|
|
|
public const PRINCIPAL_HOST = Entities\Permission::PRINCIPAL_HOST; |
|
86
|
|
|
|
|
87
|
|
|
/** |
|
88
|
|
|
* Available for meetings only. |
|
89
|
|
|
* |
|
90
|
|
|
* The principal is presenter of a meeting and can present content, share a screen, |
|
91
|
|
|
* send text messages, moderate questions, create text notes, broadcast audio and video, |
|
92
|
|
|
* and push content from web links. |
|
93
|
|
|
* |
|
94
|
|
|
* @var string |
|
95
|
|
|
*/ |
|
96
|
|
|
public const PRINCIPAL_MINI_HOST = Entities\Permission::PRINCIPAL_MINI_HOST; |
|
97
|
|
|
|
|
98
|
|
|
/** |
|
99
|
|
|
* Available for meetings only. |
|
100
|
|
|
* |
|
101
|
|
|
* The principal does not have participant, presenter or host permission to attend the meeting. |
|
102
|
|
|
* If a user is already attending a live meeting, the user is not removed from the meeting until |
|
103
|
|
|
* the session times out. |
|
104
|
|
|
* |
|
105
|
|
|
* @var string |
|
106
|
|
|
*/ |
|
107
|
|
|
public const PRINCIPAL_REMOVE = Entities\Permission::PRINCIPAL_REMOVE; |
|
108
|
|
|
|
|
109
|
|
|
/** |
|
110
|
|
|
* Available for SCOs other than meetings. |
|
111
|
|
|
* |
|
112
|
|
|
* The principal can publish or update the SCO. |
|
113
|
|
|
* The publish permission includes view and allows the principal to view reports related to the SCO. |
|
114
|
|
|
* On a folder, publish does not allow the principal to create new subfolders or set permissions. |
|
115
|
|
|
* |
|
116
|
|
|
* @var string |
|
117
|
|
|
*/ |
|
118
|
|
|
public const PRINCIPAL_PUBLISH = Entities\Permission::PRINCIPAL_PUBLISH; |
|
119
|
|
|
|
|
120
|
|
|
/** |
|
121
|
|
|
* Available for SCOs other than meetings or courses. |
|
122
|
|
|
* |
|
123
|
|
|
* The principal can view, delete, move, edit, or set permissions on the SCO. |
|
124
|
|
|
* On a folder, the principal can create subfolders or view reports on folder content. |
|
125
|
|
|
* |
|
126
|
|
|
* @var string |
|
127
|
|
|
*/ |
|
128
|
|
|
public const PRINCIPAL_MANAGE = Entities\Permission::PRINCIPAL_MANAGE; |
|
129
|
|
|
|
|
130
|
|
|
/** |
|
131
|
|
|
* Available for SCOs other than meetings. |
|
132
|
|
|
* |
|
133
|
|
|
* The principal cannot view, access, or manage the SCO. |
|
134
|
|
|
* |
|
135
|
|
|
* @var string |
|
136
|
|
|
*/ |
|
137
|
|
|
public const PRINCIPAL_DENIED = Entities\Permission::PRINCIPAL_DENIED; |
|
138
|
|
|
|
|
139
|
|
|
protected static function getFacadeAccessor() |
|
140
|
|
|
{ |
|
141
|
|
|
return 'adobe-connect.permission'; |
|
142
|
|
|
} |
|
143
|
|
|
} |
|
144
|
|
|
|