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
Exibir arquivo Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$conditionGenerator Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\SqlGeneratorInterface
$entityType string
$isEvaluated boolean

Public Methods

Method 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.

Protected Methods

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

Method Details

evaluateMatcher() protected method

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

getConditionGenerator() protected method

protected getConditionGenerator ( ) : ConditionGenerator
return ConditionGenerator

getSqlConstraint() public method

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
return string

matchesEntityType() public method

public matchesEntityType ( string $entityType ) : boolean
$entityType string
return boolean

matchesSubject() public method

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
return boolean

Property Details

$conditionGenerator protected_oe property

protected SqlGeneratorInterface,Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine $conditionGenerator
return Neos\Flow\Security\Authorization\Privilege\Entity\Doctrine\SqlGeneratorInterface

$entityType protected_oe property

protected string $entityType
return string

$isEvaluated protected_oe property

protected bool $isEvaluated
return boolean