ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\WOPI\Handler\WOPIStakeholderWrapper Class Reference
+ Inheritance diagram for ILIAS\WOPI\Handler\WOPIStakeholderWrapper:
+ Collaboration diagram for ILIAS\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...
 
 getId ()
 
 getConsumerNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 canBeAccessedByCurrentUser (ResourceIdentification $identification)
 
 isResourceInUse (ResourceIdentification $identification)
 
 resourceHasBeenDeleted (ResourceIdentification $identification)
 
 getOwnerOfResource (ResourceIdentification $identification)
 
 getOwnerOfNewResources ()
 
 getLocationURIForResourceUsage (ResourceIdentification $identification)
 

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\WOPI\Handler\WOPIStakeholderWrapper::canBeAccessedByCurrentUser ( ResourceIdentification  $identification)

Reimplemented from ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder.

Definition at line 63 of file WOPIStakeholderWrapper.php.

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

◆ getConsumerNameForPresentation()

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

Reimplemented from ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder.

Definition at line 81 of file WOPIStakeholderWrapper.php.

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

◆ getFullyQualifiedClassName()

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

Reimplemented from ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder.

Definition at line 51 of file WOPIStakeholderWrapper.php.

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

◆ getId()

ILIAS\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\WOPI\Handler\WOPIStakeholderWrapper::getLocationURIForResourceUsage ( ResourceIdentification  $identification)

Reimplemented from ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder.

Definition at line 86 of file WOPIStakeholderWrapper.php.

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

◆ getOwnerOfNewResources()

ILIAS\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\WOPI\Handler\WOPIStakeholderWrapper::getOwnerOfResource ( ResourceIdentification  $identification)

Reimplemented from ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder.

Definition at line 75 of file WOPIStakeholderWrapper.php.

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

◆ init()

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

◆ isResourceInUse()

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

Reimplemented from ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder.

Definition at line 57 of file WOPIStakeholderWrapper.php.

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

◆ resourceHasBeenDeleted()

ILIAS\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.

Reimplemented from ILIAS\ResourceStorage\Stakeholder\AbstractResourceStakeholder.

Definition at line 69 of file WOPIStakeholderWrapper.php.

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

Field Documentation

◆ $stakeholder

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

◆ $user_id

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

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