PHP Class Neos\ContentRepository\Service\AuthorizationService

Exibir arquivo Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$securityContext Neos\Flow\Security\Context

Public Methods

Method 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 method

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

getNodeTypeNamesDeniedForCreation() public method

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

isGrantedToCreateNode() public method

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
return boolean

isGrantedToEditNode() public method

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
return boolean

isGrantedToEditNodeProperty() public method

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

isGrantedToReadNodeProperty() public method

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

isGrantedToRemoveNode() public method

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
return boolean

Property Details

$nodeTypeManager protected_oe property

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
return Neos\ContentRepository\Domain\Service\NodeTypeManager

$privilegeManager protected_oe property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
return Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$securityContext protected_oe property

protected Context,Neos\Flow\Security $securityContext
return Neos\Flow\Security\Context