class ReadNodePropertyPrivilege extends AbstractNodePropertyPrivilege (View source)

A privilege to restrict reading of node properties.

This is needed, as the technical implementation is not based on the entity privilege type, that the read node privilege (retrieving the node at all) ist based on.

Properties

protected CompilingEvaluator $eelCompilingEvaluator from  AbstractNodePrivilege
protected $nodeContextClassName from  AbstractNodePropertyPrivilege
protected PropertyAwareNodePrivilegeContext $nodeContext from  AbstractNodePropertyPrivilege
protected MethodPrivilegeInterface $methodPrivilege from  AbstractNodePrivilege
protected $initialized from  AbstractNodePrivilege
protected array<string,string> $methodNameToPropertyMapping

Methods

__construct(PrivilegeTarget $privilegeTarget, string $matcher, string $permission, array $parameters)

No description

void
initialize()

No description

string
getCacheEntryIdentifier()

Unique identifier of this privilege

bool
matchesSubject(PrivilegeSubjectInterface $subject)

No description

bool
matchesMethod(string $className, string $methodName)

No description

PointcutFilterInterface
getPointcutFilterComposite()

No description

mixed
evaluateNodeContext()

Evaluates the matcher with this objects nodeContext and returns the result.

string
buildMethodPrivilegeMatcher()

No description

Details

__construct(PrivilegeTarget $privilegeTarget, string $matcher, string $permission, array $parameters)

No description

Parameters

PrivilegeTarget $privilegeTarget
string $matcher
string $permission
array $parameters

void initialize()

No description

Return Value

void

protected void buildCacheEntryIdentifier()

No description

Return Value

void

string getCacheEntryIdentifier()

Unique identifier of this privilege

Return Value

string

bool matchesSubject(PrivilegeSubjectInterface $subject)

No description

Parameters

PrivilegeSubjectInterface $subject

(one of NodePrivilegeSubject or MethodPrivilegeSubject)

Return Value

bool

Exceptions

InvalidPrivilegeTypeException

bool matchesMethod(string $className, string $methodName)

No description

Parameters

string $className
string $methodName

Return Value

bool

PointcutFilterInterface getPointcutFilterComposite()

No description

Return Value

PointcutFilterInterface

protected void initializeMethodPrivilege()

No description

Return Value

void

Exceptions

Exception

protected mixed evaluateNodeContext()

Evaluates the matcher with this objects nodeContext and returns the result.

Return Value

mixed

protected string buildMethodPrivilegeMatcher()

No description

Return Value

string

array getNodePropertyNames()

No description

Return Value

array