PHP 클래스 Neos\ContentRepository\Service\AuthorizationService

파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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