ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilFileServicesPreProcessor Class Reference

Class ilFileServicesPolicy. More...

+ Inheritance diagram for ilFileServicesPreProcessor:
+ Collaboration diagram for ilFileServicesPreProcessor:

Public Member Functions

 __construct (private ilFileServicesSettings $settings, string $reason='Extension is blacklisted.')
 
 process (FileStream $stream, Metadata $metadata)
 
- Public Member Functions inherited from ILIAS\MetaData\Repository\Validation\Processor\BlacklistExtensionPreProcessor
 __construct (private array $blacklist, private string $reason='Extension is blacklisted.')
 BlacklistExtensionPreProcessor constructor. More...
 
- Public Member Functions inherited from ILIAS\MetaData\Repository\Validation\Processor\AbstractRecursiveZipPreProcessor
 process (FileStream $stream, Metadata $metadata)
 This method gets invoked by the file upload service to process the file with the help of the processor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\MetaData\Repository\Validation\Processor\BlacklistExtensionPreProcessor
 checkPath (string $path)
 
 getRejectionMessage ()
 
 getOKMessage ()
 
- Protected Member Functions inherited from ILIAS\MetaData\Repository\Validation\Processor\AbstractRecursiveZipPreProcessor
 checkPath (string $path)
 
 getRejectionMessage ()
 
 getOKMessage ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilFileServicesPreProcessor::__construct ( private ilFileServicesSettings  $settings,
string  $reason = 'Extension is blacklisted.' 
)

Definition at line 31 of file class.ilFileServicesPreProcessor.php.

References ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\settings().

34  {
35  parent::__construct($this->settings->getBlackListedSuffixes(), $reason);
36  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ process()

ilFileServicesPreProcessor::process ( FileStream  $stream,
Metadata  $metadata 
)

Definition at line 39 of file class.ilFileServicesPreProcessor.php.

References ILIAS\Repository\settings().

40  {
41  if ($this->settings->isByPassAllowedForCurrentUser()) {
42  return new ProcessingStatus(ProcessingStatus::OK, 'Blacklist override by RBAC');
43  }
44  return parent::process($stream, $metadata);
45  }
+ Here is the call graph for this function:

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