PHP Class Neos\ContentRepository\Service\AuthorizationService

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$securityContext Neos\Flow\Security\Context

Méthodes publiques

Méthode Description
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

Method Details

getDeniedNodePropertiesForEditing() public méthode

public getDeniedNodePropertiesForEditing ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : string[]
$node Neos\ContentRepository\Domain\Model\NodeInterface
Résultat string[] Array of granted node property names

getNodeTypeNamesDeniedForCreation() public méthode

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
Résultat string[] Array of granted node type names

isGrantedToCreateNode() public méthode

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
Résultat boolean

isGrantedToEditNode() public méthode

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
Résultat boolean

isGrantedToEditNodeProperty() public méthode

public isGrantedToEditNodeProperty ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName string
Résultat boolean

isGrantedToReadNodeProperty() public méthode

public isGrantedToReadNodeProperty ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName string
Résultat boolean

isGrantedToRemoveNode() public méthode

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
Résultat boolean

Property Details

$nodeTypeManager protected_oe property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
Résultat Neos\ContentRepository\Domain\Service\NodeTypeManager

$privilegeManager protected_oe property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
Résultat Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$securityContext protected_oe property

protected Context,Neos\Flow\Security $securityContext
Résultat Neos\Flow\Security\Context