interface EntityPrivilegeInterface implements PrivilegeInterface (View source)

An entity privilege

This privilege is capable of filtering entities retrieved from the persistence layer and of blocking creation, update and delete operations on them. Read access is usually controlled by rewriting SQL queries, other operations are blocked by throwing an exception.

Methods

string
getCacheEntryIdentifier()

Returns a string which distinctly identifies this object and thus can be used as an identifier for cache entries related to this object.

void
injectObjectManager(ObjectManagerInterface $objectManager)

This object is created very early so we can't rely on AOP for the property injection

string
getPermission()

No description

bool
isGranted()

No description

bool
isAbstained()

No description

bool
isDenied()

No description

getPrivilegeTarget()

Returns the related privilege target

string
getPrivilegeTargetIdentifier()

Unique name of the related privilege target (for example "Neos.Flow:PublicMethods")

string
getMatcher()

A matcher string, describing the privilegeTarget (e.g. pointcut expression for methods or EEL expression for entities)

bool
hasParameters()

No description

bool
matchesSubject(PrivilegeSubjectInterface $subject)

Returns true, if this privilege covers the given subject

bool
matchesEntityType(string $entityType)

No description

string
getSqlConstraint(ClassMetadata $targetEntity, string $targetTableAlias)

No description

Details

string getCacheEntryIdentifier()

Returns a string which distinctly identifies this object and thus can be used as an identifier for cache entries related to this object.

Return Value

string

void injectObjectManager(ObjectManagerInterface $objectManager)

This object is created very early so we can't rely on AOP for the property injection

Parameters

ObjectManagerInterface $objectManager

Return Value

void

string getPermission()

No description

Return Value

string

bool isGranted()

No description

Return Value

bool

bool isAbstained()

No description

Return Value

bool

bool isDenied()

No description

Return Value

bool

PrivilegeTarget getPrivilegeTarget()

Returns the related privilege target

Return Value

PrivilegeTarget

string getPrivilegeTargetIdentifier()

Unique name of the related privilege target (for example "Neos.Flow:PublicMethods")

Return Value

string

string getMatcher()

A matcher string, describing the privilegeTarget (e.g. pointcut expression for methods or EEL expression for entities)

Return Value

string

bool hasParameters()

No description

Return Value

bool

bool matchesSubject(PrivilegeSubjectInterface $subject)

Returns true, if this privilege covers the given subject

Parameters

PrivilegeSubjectInterface $subject

Return Value

bool

Exceptions

InvalidPrivilegeTypeException

bool matchesEntityType(string $entityType)

No description

Parameters

string $entityType

Return Value

bool

string getSqlConstraint(ClassMetadata $targetEntity, string $targetTableAlias)

No description

Parameters

ClassMetadata $targetEntity
string $targetTableAlias

Return Value

string