ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilFileServicesPreProcessor Class Reference

Class ilFileServicesPolicy. More...

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

Public Member Functions

 __construct (ilFileServicesSettings $settings, string $reason='Extension is blacklisted.')
 
 process (FileStream $stream, Metadata $metadata)
 
- Public Member Functions inherited from ILIAS\MetaData\Repository\Validation\Processor\BlacklistExtensionPreProcessor
 __construct (array $blacklist, 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...
 

Private Attributes

ilFileServicesSettings $settings
 

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()

Member Function Documentation

◆ process()

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

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

References ILIAS\Repository\settings().

45  {
46  if ($this->settings->isByPassAllowedForCurrentUser()) {
47  return new ProcessingStatus(ProcessingStatus::OK, 'Blacklist override by RBAC');
48  }
49  return parent::process($stream, $metadata);
50  }
+ Here is the call graph for this function:

Field Documentation

◆ $settings

ilFileServicesSettings ilFileServicesPreProcessor::$settings
private

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

Referenced by __construct().


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