MethodPrivilegeInterface
interface MethodPrivilegeInterface implements PrivilegeInterface (View source)
Contract for a privilege used to restrict method calls
Methods
Returns a string which distinctly identifies this object and thus can be used as an identifier for cache entries related to this object.
This object is created very early so we can't rely on AOP for the property injection
Unique name of the related privilege target (for example "Neos.Flow:PublicMethods")
A matcher string, describing the privilegeTarget (e.g. pointcut expression for methods or EEL expression for entities)
Returns true, if this privilege covers the given subject
Returns true, if this privilege covers the given method
Returns the pointcut filter composite, matching all methods covered by this privilege
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.
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
PrivilegeTarget
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)
PrivilegeParameterInterface[]
getParameters()
No description
bool
hasParameters()
No description
bool
matchesSubject(PrivilegeSubjectInterface $subject)
Returns true, if this privilege covers the given subject
bool
matchesMethod(string $className, string $methodName)
Returns true, if this privilege covers the given method
PointcutFilterComposite
getPointcutFilterComposite()
Returns the pointcut filter composite, matching all methods covered by this privilege