class EditNodePrivilege extends AbstractNodePrivilege (View source)

A privilege to restrict editing of nodes and their properties

Properties

protected CompilingEvaluator $eelCompilingEvaluator from  AbstractNodePrivilege
protected string $nodeContextClassName from  AbstractNodePrivilege
protected NodePrivilegeContext $nodeContext from  AbstractNodePrivilege
protected MethodPrivilegeInterface $methodPrivilege from  AbstractNodePrivilege
protected bool $initialized from  AbstractNodePrivilege

Methods

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

Constructor

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

This is the pointcut expression for all methods to intercept. It targets all public methods that could change the outer state of a node.

Details

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

Constructor

Parameters

PrivilegeTarget $privilegeTarget
string $matcher
string $permission
$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 initializeMethodPrivilege()

No description

Exceptions

Exception

protected mixed evaluateNodeContext()

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

Return Value

mixed

protected string buildMethodPrivilegeMatcher()

This is the pointcut expression for all methods to intercept. It targets all public methods that could change the outer state of a node.

Note: NodeInterface::setIndex() is excluded because that might be called by the system when redistributing nodes on one level

Return Value

string