ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper Class Reference
+ Inheritance diagram for ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper:
+ Collaboration diagram for ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper:

Public Member Functions

 init (ResourceStakeholder $stakeholder, int $user_id)
 
 getId ()
 
 getOwnerOfNewResources ()
 
 getFullyQualifiedClassName ()
 
 isResourceInUse (ResourceIdentification $identification)
 
 canBeAccessedByCurrentUser (ResourceIdentification $identification)
 
 resourceHasBeenDeleted (ResourceIdentification $identification)
 
 getOwnerOfResource (ResourceIdentification $identification)
 
 getConsumerNameForPresentation ()
 
 getLocationURIForResourceUsage (ResourceIdentification $identification)
 
- Public Member Functions inherited from ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder
 __construct (?int $user_id_of_owner=null)
 
 setOwner (int $user_id_of_owner)
 
 getFullyQualifiedClassName ()
 
 isResourceInUse (ResourceIdentification $identification)
 
 canBeAccessedByCurrentUser (ResourceIdentification $identification)
 
 resourceHasBeenDeleted (ResourceIdentification $identification)
 
 getOwnerOfResource (ResourceIdentification $identification)
 
 getConsumerNameForPresentation ()
 
 getLocationURIForResourceUsage (ResourceIdentification $identification)
 
- Public Member Functions inherited from ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder
 __construct ()
 Constructor must not have any parameters. More...
 

Private Attributes

int $user_id = null
 
ResourceStakeholder $stakeholder = null
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder
int $default_owner
 
int $current_user
 

Detailed Description

Definition at line 27 of file WOPIStakeholderWrapper.php.

Member Function Documentation

◆ canBeAccessedByCurrentUser()

ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::canBeAccessedByCurrentUser ( ResourceIdentification  $identification)

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 63 of file WOPIStakeholderWrapper.php.

63  : bool
64  {
65  return $this->stakeholder->canBeAccessedByCurrentUser($identification);
66  }

◆ getConsumerNameForPresentation()

ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::getConsumerNameForPresentation ( )

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 81 of file WOPIStakeholderWrapper.php.

81  : string
82  {
83  return $this->stakeholder->getConsumerNameForPresentation();
84  }

◆ getFullyQualifiedClassName()

ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::getFullyQualifiedClassName ( )
Returns
string not longer than 250 characters

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 51 of file WOPIStakeholderWrapper.php.

51  : string
52  {
53  return $this->stakeholder->getFullyQualifiedClassName();
54  }

◆ getId()

ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::getId ( )
Returns
string not longer than 64 characters

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 40 of file WOPIStakeholderWrapper.php.

40  : string
41  {
42  return $this->stakeholder->getId();
43  }

◆ getLocationURIForResourceUsage()

ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::getLocationURIForResourceUsage ( ResourceIdentification  $identification)

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 86 of file WOPIStakeholderWrapper.php.

86  : ?string
87  {
88  return $this->stakeholder->getLocationURIForResourceUsage($identification);
89  }

◆ getOwnerOfNewResources()

ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::getOwnerOfNewResources ( )

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 45 of file WOPIStakeholderWrapper.php.

45  : int
46  {
47  return $this->user_id ?? $this->stakeholder->getOwnerOfNewResources();
48  }

◆ getOwnerOfResource()

ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::getOwnerOfResource ( ResourceIdentification  $identification)

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 75 of file WOPIStakeholderWrapper.php.

75  : int
76  {
77  return $this->stakeholder->getOwnerOfResource($identification);
78  }

◆ init()

ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::init ( ResourceStakeholder  $stakeholder,
int  $user_id 
)

◆ isResourceInUse()

ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::isResourceInUse ( ResourceIdentification  $identification)

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 57 of file WOPIStakeholderWrapper.php.

57  : bool
58  {
59  return $this->stakeholder->isResourceInUse($identification);
60  }

◆ resourceHasBeenDeleted()

ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::resourceHasBeenDeleted ( ResourceIdentification  $identification)
Returns
bool true: if the Stakeholder could handle the deletion; false: if the Stakeholder could not handle the deletion of the resource.

Implements ILIAS\ResourceStorage\Stakeholder\ResourceStakeholder.

Definition at line 69 of file WOPIStakeholderWrapper.php.

69  : bool
70  {
71  return $this->stakeholder->resourceHasBeenDeleted($identification);
72  }

Field Documentation

◆ $stakeholder

ResourceStakeholder ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::$stakeholder = null
private

◆ $user_id

int ILIAS\components\WOPI\Handler\WOPIStakeholderWrapper::$user_id = null
private

The documentation for this class was generated from the following file: