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