PHP Class Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\EntityPrivilege

Inheritance: extends Neos\Flow\Security\Authorization\Privilege\AbstractPrivilege, implements Neos\Flow\Security\Authorization\Privilege\Entity\EntityPrivilegeInterface
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$conditionGenerator Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\SqlGeneratorInterface
$entityType string
$isEvaluated boolean

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
evaluateMatcher ( ) : void parses the matcher of this privilege using Eel and extracts "entityType" and "conditionGenerator"
getConditionGenerator ( ) : ConditionGenerator

Method Details

evaluateMatcher() protected méthode

parses the matcher of this privilege using Eel and extracts "entityType" and "conditionGenerator"
protected evaluateMatcher ( ) : void
Résultat void

getConditionGenerator() protected méthode

protected getConditionGenerator ( ) : ConditionGenerator
Résultat ConditionGenerator

getSqlConstraint() public méthode

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
Résultat string

matchesEntityType() public méthode

public matchesEntityType ( string $entityType ) : boolean
$entityType string
Résultat boolean

matchesSubject() public méthode

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
Résultat boolean

Property Details

$conditionGenerator protected_oe property

protected SqlGeneratorInterface,Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine $conditionGenerator
Résultat Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\SqlGeneratorInterface

$entityType protected_oe property

protected string $entityType
Résultat string

$isEvaluated protected_oe property

protected bool $isEvaluated
Résultat boolean