PHP Класс Neos\ContentRepository\Service\AuthorizationService

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$securityContext Neos\Flow\Security\Context

Открытые методы

Метод Описание
getDeniedNodePropertiesForEditing ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : string[]
getNodeTypeNamesDeniedForCreation ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode ) : string[] Returns the node types that the currently authenticated user is *denied* to create within the given $referenceNode
isGrantedToCreateNode ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, NodeType $typeOfNewNode = null ) : boolean Returns TRUE if the currently authenticated user is allowed to create a node of type $typeOfNewNode within the given $referenceNode
isGrantedToEditNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean Returns TRUE if the currently authenticated user is allowed to edit the given $node, otherwise FALSE
isGrantedToEditNodeProperty ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : boolean
isGrantedToReadNodeProperty ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : boolean
isGrantedToRemoveNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean Returns TRUE if the currently authenticated user is allowed to remove the given $node

Описание методов

getDeniedNodePropertiesForEditing() публичный Метод

public getDeniedNodePropertiesForEditing ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : string[]
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат string[] Array of granted node property names

getNodeTypeNamesDeniedForCreation() публичный Метод

Returns the node types that the currently authenticated user is *denied* to create within the given $referenceNode
public getNodeTypeNamesDeniedForCreation ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode ) : string[]
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
Результат string[] Array of granted node type names

isGrantedToCreateNode() публичный Метод

Returns TRUE if the currently authenticated user is allowed to create a node of type $typeOfNewNode within the given $referenceNode
public isGrantedToCreateNode ( Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, NodeType $typeOfNewNode = null ) : boolean
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$typeOfNewNode Neos\ContentRepository\Domain\Model\NodeType
Результат boolean

isGrantedToEditNode() публичный Метод

Returns TRUE if the currently authenticated user is allowed to edit the given $node, otherwise FALSE
public isGrantedToEditNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат boolean

isGrantedToEditNodeProperty() публичный Метод

public isGrantedToEditNodeProperty ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName string
Результат boolean

isGrantedToReadNodeProperty() публичный Метод

public isGrantedToReadNodeProperty ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName string
Результат boolean

isGrantedToRemoveNode() публичный Метод

Returns TRUE if the currently authenticated user is allowed to remove the given $node
public isGrantedToRemoveNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат boolean

Описание свойств

$nodeTypeManager защищенное свойство

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
Результат Neos\ContentRepository\Domain\Service\NodeTypeManager

$privilegeManager защищенное свойство

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
Результат Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$securityContext защищенное свойство

protected Context,Neos\Flow\Security $securityContext
Результат Neos\Flow\Security\Context