PHP Класс Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\EntityPrivilege

Наследование: extends Neos\Flow\Security\Authorization\Privilege\AbstractPrivilege, implements Neos\Flow\Security\Authorization\Privilege\Entity\EntityPrivilegeInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$conditionGenerator Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\SqlGeneratorInterface
$entityType string
$isEvaluated boolean

Открытые методы

Метод Описание
getSqlConstraint ( Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetTableAlias ) : string Note: The result of this method cannot be cached, as the target table alias might change for different query scenarios
matchesEntityType ( string $entityType ) : boolean
matchesSubject ( Neos\Flow\Security\Authorization\Privilege\PrivilegeSubjectInterface $subject ) : boolean Returns TRUE, if this privilege covers the given subject. As entity privileges are evaluated and enforced "within the database system" in SQL and not by the voting process, this method will always return FALSE.

Защищенные методы

Метод Описание
evaluateMatcher ( ) : void parses the matcher of this privilege using Eel and extracts "entityType" and "conditionGenerator"
getConditionGenerator ( ) : ConditionGenerator

Описание методов

evaluateMatcher() защищенный Метод

parses the matcher of this privilege using Eel and extracts "entityType" and "conditionGenerator"
protected evaluateMatcher ( ) : void
Результат void

getConditionGenerator() защищенный Метод

protected getConditionGenerator ( ) : ConditionGenerator
Результат ConditionGenerator

getSqlConstraint() публичный Метод

Note: The result of this method cannot be cached, as the target table alias might change for different query scenarios
public getSqlConstraint ( Doctrine\Common\Persistence\Mapping\ClassMetadata $targetEntity, string $targetTableAlias ) : string
$targetEntity Doctrine\Common\Persistence\Mapping\ClassMetadata
$targetTableAlias string
Результат string

matchesEntityType() публичный Метод

public matchesEntityType ( string $entityType ) : boolean
$entityType string
Результат boolean

matchesSubject() публичный Метод

Returns TRUE, if this privilege covers the given subject. As entity privileges are evaluated and enforced "within the database system" in SQL and not by the voting process, this method will always return FALSE.
public matchesSubject ( Neos\Flow\Security\Authorization\Privilege\PrivilegeSubjectInterface $subject ) : boolean
$subject Neos\Flow\Security\Authorization\Privilege\PrivilegeSubjectInterface
Результат boolean

Описание свойств

$conditionGenerator защищенное свойство

protected SqlGeneratorInterface,Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine $conditionGenerator
Результат Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\SqlGeneratorInterface

$entityType защищенное свойство

protected string $entityType
Результат string

$isEvaluated защищенное свойство

protected bool $isEvaluated
Результат boolean