PHP Interface Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface

Inheritance: extends Neos\Cache\CacheAwareInterface
显示文件 Open project: neos/flow-development-collection Interface Usage Examples

Public Methods

Method Description
getMatcher ( ) : string A matcher string, describing the privilegeTarget (e.g. pointcut expression for methods or EEL expression for entities)
getParameters ( ) : Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterInterface[]
getPermission ( ) : string
getPrivilegeTarget ( ) : PrivilegeTarget Returns the related privilege target
getPrivilegeTargetIdentifier ( ) : string Unique name of the related privilege target (for example "Neos.Flow:PublicMethods")
hasParameters ( ) : boolean
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void This object is created very early so we can't rely on AOP for the property injection
isAbstained ( ) : boolean
isDenied ( ) : boolean
isGranted ( ) : boolean
matchesSubject ( PrivilegeSubjectInterface $subject ) : boolean Returns TRUE, if this privilege covers the given subject

Method Details

getMatcher() public method

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

getParameters() public method

public getParameters ( ) : Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterInterface[]
return Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterInterface[]

getPermission() public method

public getPermission ( ) : string
return string

getPrivilegeTarget() public method

Returns the related privilege target
public getPrivilegeTarget ( ) : PrivilegeTarget
return PrivilegeTarget

getPrivilegeTargetIdentifier() public method

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

hasParameters() public method

public hasParameters ( ) : boolean
return boolean

injectObjectManager() public method

This object is created very early so we can't rely on AOP for the property injection
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
return void

isAbstained() public method

public isAbstained ( ) : boolean
return boolean

isDenied() public method

public isDenied ( ) : boolean
return boolean

isGranted() public method

public isGranted ( ) : boolean
return boolean

matchesSubject() public method

Returns TRUE, if this privilege covers the given subject
public matchesSubject ( PrivilegeSubjectInterface $subject ) : boolean
$subject PrivilegeSubjectInterface
return boolean