Skip to content

Commit

Permalink
Add entities constants to facades
Browse files Browse the repository at this point in the history
  • Loading branch information
soheilrt committed Oct 31, 2019
1 parent 325a852 commit 64349cf
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 1 deletion.
122 changes: 122 additions & 0 deletions src/Facades/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@


use Illuminate\Support\Facades\Facade;
use \Soheilrt\AdobeConnectClient\Client\Entities;

/**
* @method static \Soheilrt\AdobeConnectClient\Client\Entities\Permission setAclId($value)
Expand All @@ -14,6 +15,127 @@
*/
class Permission extends Facade
{
/**
* Special permission for Meeting.
*
* This Constant is used in the principal-id parameter with the others MEETING_* constants.
*
* @var string
*/
public const MEETING_PRINCIPAL_PUBLIC_ACCESS = Entities\Permission::MEETING_PRINCIPAL_PUBLIC_ACCESS;

/**
* Special permission for Meeting.
*
* Need set principal-id parameter with Permission::MEETING_PRINCIPAL_PUBLIC_ACCESS
*
* The meeting is public, and anyone who has the URL for the meeting can enter the room.
*
* @var string
*/
public const MEETING_ANYONE_WITH_URL = Entities\Permission::MEETING_ANYONE_WITH_URL;

/**
* Special permission for Meeting.
*
* Need set principal-id parameter with Permission::MEETING_PRINCIPAL_PUBLIC_ACCESS
*
* The meeting is protected and only registered users and accepted guests can enter the room.
*
* @var string
*/
public const MEETING_PROTECTED = Entities\Permission::MEETING_PROTECTED;

/**
* Special permission for Meeting.
*
* Need set principal-id parameter with Permission::MEETING_PRINCIPAL_PUBLIC_ACCESS
*
* The meeting is private and only registered users and participants can enter the room.
*
* @var string
*/
public const MEETING_PRIVATE = Entities\Permission::MEETING_PRIVATE;

/**
* Special permission for Recording.
*
* The recording is public.
*
* @var string
*/
public const RECORDING_PUBLIC = Entities\Permission::RECORDING_PUBLIC;

/**
* The principal can view, but cannot modify, the SCO.
* The principal can take a course, attend a meeting as participant, or view a folder’s content.
*
* @var string
*/
public const PRINCIPAL_VIEW = Entities\Permission::PRINCIPAL_VIEW;

/**
* Available for meetings only.
*
* The principal is host of a meeting and can create the meeting or act as presenter,
* even without view permission on the meeting’s parent folder.
*
* @var string
*/
public const PRINCIPAL_HOST = Entities\Permission::PRINCIPAL_HOST;

/**
* Available for meetings only.
*
* The principal is presenter of a meeting and can present content, share a screen,
* send text messages, moderate questions, create text notes, broadcast audio and video,
* and push content from web links.
*
* @var string
*/
public const PRINCIPAL_MINI_HOST = Entities\Permission::PRINCIPAL_MINI_HOST;

/**
* Available for meetings only.
*
* The principal does not have participant, presenter or host permission to attend the meeting.
* If a user is already attending a live meeting, the user is not removed from the meeting until
* the session times out.
*
* @var string
*/
public const PRINCIPAL_REMOVE = Entities\Permission::PRINCIPAL_REMOVE;

/**
* Available for SCOs other than meetings.
*
* The principal can publish or update the SCO.
* The publish permission includes view and allows the principal to view reports related to the SCO.
* On a folder, publish does not allow the principal to create new subfolders or set permissions.
*
* @var string
*/
public const PRINCIPAL_PUBLISH = Entities\Permission::PRINCIPAL_PUBLISH;

/**
* Available for SCOs other than meetings or courses.
*
* The principal can view, delete, move, edit, or set permissions on the SCO.
* On a folder, the principal can create subfolders or view reports on folder content.
*
* @var string
*/
public const PRINCIPAL_MANAGE = Entities\Permission::PRINCIPAL_MANAGE;

/**
* Available for SCOs other than meetings.
*
* The principal cannot view, access, or manage the SCO.
*
* @var string
*/
public const PRINCIPAL_DENIED = Entities\Permission::PRINCIPAL_DENIED;

protected static function getFacadeAccessor()
{
return 'adobe-connect.permission';
Expand Down
120 changes: 120 additions & 0 deletions src/Facades/Principal.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@


use Illuminate\Support\Facades\Facade;
use \Soheilrt\AdobeConnectClient\Client\Entities;

/**
* @method static \Soheilrt\AdobeConnectClient\Client\Entities\Principal setDisplayId($value)
Expand Down Expand Up @@ -33,6 +34,125 @@
*/
class Principal extends Facade
{
/**
* The built-in group Administrators, for Adobe Connect server Administrators.
*
* @var string
*/
public const TYPE_ADMINS = Entities\Principal::TYPE_ADMINS;

/**
* The built-in group Administrators, for Adobe Connect server Administrators.
*
* @var string
*/
public const TYPE_ADMINS_LIMITED = Entities\Principal::TYPE_ADMINS_LIMITED;

/**
* The built-in group Authors, for authors.
*
* @var string
*/
public const TYPE_AUTHORS = Entities\Principal::TYPE_AUTHORS;

/**
* The built-in group Training Managers, for training managers.
*
* @var string
*/
public const TYPE_COURSE_ADMINS = Entities\Principal::TYPE_COURSE_ADMINS;

/**
* The built-in group Event Managers, for anyone who can create an Adobe Connect meeting.
*
* @var string
*/
public const TYPE_EVENT_ADMINS = Entities\Principal::TYPE_EVENT_ADMINS;

/**
* The Event Supper Admins
*
* @var string
*/
public const TYPE_EVENT_SUPER_ADMINS = Entities\Principal::TYPE_EVENT_SUPER_ADMINS;

/**
* Virtual Classroom admins
*
* @var string
*/
public const TYPE_NAMED_VIRTUAL_CLASSROM_ADMINS = Entities\Principal::TYPE_NAMED_VIRTUAL_CLASSROM_ADMINS;

/**
* The group of users invited to an event.
*
* @var string
*/
public const TYPE_EVENT_GROUP = Entities\Principal::TYPE_EVENT_GROUP;

/**
* All Adobe Connect users.
*
* @var string
*/
public const TYPE_EVERYONE = Entities\Principal::TYPE_EVERYONE;

/**
* A group authenticated from an external network.
*
* @var string
*/
public const TYPE_EXTERNAL_GROUP = Entities\Principal::TYPE_EXTERNAL_GROUP;

/**
* A user authenticated from an external network.
*
* @var string
*/
public const TYPE_EXTERNAL_USER = Entities\Principal::TYPE_EXTERNAL_USER;

/**
* A group that a user or Administrator creates.
*
* @var string
*/
public const TYPE_GROUP = Entities\Principal::TYPE_GROUP;

/**
* A non-registered user who enters an Adobe Connect meeting room.
*
* @var string
*/
public const TYPE_GUEST = Entities\Principal::TYPE_GUEST;

/**
* The built-in group learners, for users who take courses.
*
* @var string
*/
public const TYPE_LEARNERS = Entities\Principal::TYPE_LEARNERS;

/**
* The built-in group Meeting Hosts, for Adobe Connect meeting hosts.
*
* @var string
*/
public const TYPE_LIVE_ADMINS = Entities\Principal::TYPE_LIVE_ADMINS;

/**
* The built-in group Seminar Hosts, for seminar hosts.
*
* @var string
*/
public const TYPE_SEMINAR_ADMINS = Entities\Principal::TYPE_SEMINAR_ADMINS;

/**
* A registered user on the server.
*
* @var string
*/
public const TYPE_USER = Entities\Principal::TYPE_USER;

protected static function getFacadeAccessor()
{
return 'adobe-connect.principal';
Expand Down
60 changes: 59 additions & 1 deletion src/Facades/SCO.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


use Illuminate\Support\Facades\Facade;

use \Soheilrt\AdobeConnectClient\Client\Entities;
/**
* @method static \Soheilrt\AdobeConnectClient\Client\Entities\SCO setDisabled($value)
* @method static \Soheilrt\AdobeConnectClient\Client\Entities\SCO setMeetingPodsLayoutsLocked($value)
Expand All @@ -31,6 +31,64 @@
*/
class SCO extends Facade
{
/**
* A viewable file uploaded to the server.
* For example, an FLV file, an HTML file, an image, a pod, and so on.
*
* @var string
*/
public const TYPE_CONTENT = Entities\SCO::TYPE_CONTENT;

/**
* A curriculum.
*
* @var string
*/
public const TYPE_CURRICULUM = Entities\SCO::TYPE_CURRICULUM;

/**
* An event.
*
* @var string
*/
public const TYPE_EVENT = Entities\SCO::TYPE_EVENT;

/**
* A folder on the server’s hard disk that contains content.
*
* @var string
*/
public const TYPE_FOLDER = Entities\SCO::TYPE_FOLDER;

/**
* A reference to another SCO. These links are used by curriculums to link to other SCOs.
* When content is added to a curriculum, a link is created from the curriculum to the content.
*
* @var string
*/
public const TYPE_LINK = Entities\SCO::TYPE_LINK;

/**
* An Adobe Connect meeting.
*
* @var string
*/
public const TYPE_MEETING = Entities\SCO::TYPE_MEETING;

/**
* One occurrence of a recurring Adobe Connect meeting.
*
* @var string
*/
public const TYPE_SESSION = Entities\SCO::TYPE_SESSION;

/**
* @uses \Soheilrt\AdobeConnectClient\Client\Entities\SCO::TYPE_TREE
*
* @var string
*/
public const TYPE_TREE = Entities\SCO::TYPE_TREE;

protected static function getFacadeAccessor()
{
return 'adobe-connect.sco';
Expand Down

0 comments on commit 64349cf

Please sign in to comment.