ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Forum\Files\Access Namespace Reference

Namespaces

namespace  Test
 

Data Structures

class  AccessDecision
 
interface  AddressedAttachmentDelivery
 A delivery that exposes the identifiers it will resolve its resources from, so an access guard can judge exactly those identifiers. More...
 
class  AttachmentAccessDenied
 
interface  AttachmentAccessGuard
 Decides whether an attachment container addressed by a request may be resolved in the context of the forum object the request was routed to. More...
 
interface  AttachmentDelivery
 The delivery capability of the forum file storage, segregated from its management capabilities (upload, move, clone, delete). More...
 
class  AttachmentOwnership
 Authoritative location of an attachment container (a posting or a draft) as stored in the database. More...
 
class  DbOwnershipRepository
 
class  DraftAttachmentGuard
 Binds a draft to the forum object the request was routed to and to its author, since drafts are never visible to anyone but their author. More...
 
class  ForumFileStorageDelivery
 Adapts the forum file storage to the narrow delivery port. More...
 
class  GuardedAttachmentDelivery
 Passes a delivery request on only after a guard confirmed that the addressed container belongs to the addressed forum object. More...
 
class  LoggedAttachmentDelivery
 Records denied attachment requests, so repeated attempts to address a container through a foreign forum object remain traceable. More...
 
interface  OwnershipRepository
 
class  PostingAttachmentGuard
 Binds a posting to the forum object (and optionally to the thread) the request was routed to. More...
 

Enumerations

enum  DenialReason : string { logMessage }
 

Enumeration Type Documentation

◆ DenialReason

Enumerator
logMessage 

Definition at line 23 of file DenialReason.php.

24{
25 case INCOMPLETE_SELECTORS = 'incomplete_selectors';
26 case UNKNOWN_CONTAINER = 'unknown_container';
27 case FOREIGN_FORUM = 'foreign_forum';
28 case FOREIGN_THREAD = 'foreign_thread';
29 case FOREIGN_AUTHOR = 'foreign_author';
30
31 public function logMessage(): string
32 {
33 return match ($this) {
34 self::INCOMPLETE_SELECTORS => 'Attachment request did not address both a forum object and a container',
35 self::UNKNOWN_CONTAINER => 'Addressed attachment container does not exist',
36 self::FOREIGN_FORUM => 'Addressed attachment container is owned by another forum object',
37 self::FOREIGN_THREAD => 'Addressed attachment container belongs to another thread',
38 self::FOREIGN_AUTHOR => 'Addressed attachment container was authored by another user',
39 };
40 }
41}