PHP 클래스 Neos\ContentRepository\Security\Authorization\Privilege\Node\NodePrivilegeContext

파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$contentDimensionPresetSource Neos\ContentRepository\Domain\Service\ContentDimensionPresetSourceInterface
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactory
$node Neos\ContentRepository\Domain\Model\NodeInterface
$securityContext Neos\Flow\Security\Context

공개 메소드들

메소드 설명
__construct ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null )
isAncestorNodeOf ( string $nodePathOrIdentifier ) : boolean Matches if the selected node is an *ancestor* of the given node specified by $nodePathOrIdentifier
isAncestorOrDescendantNodeOf ( string $nodePathOrIdentifier ) : boolean Matches if the selected node is a *descendant* or *ancestor* of the given node specified by $nodePathOrIdentifier
isDescendantNodeOf ( string $nodePathOrIdentifier ) : boolean Matches if the selected node is a *descendant* of the given node specified by $nodePathOrIdentifier
isInDimensionPreset ( string $dimensionName, string | array $presets ) : boolean Matches if the currently-selected preset in the passed $dimensionName is one of $presets.
isInWorkspace ( array $workspaceNames ) : boolean Matches if the selected node belongs to one of the given $workspaceNames
nodeIsOfType ( string | array $nodeTypes ) : boolean Matches if the selected node is of the given NodeType(s). If multiple types are specified, only one entry has to match
setNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void

보호된 메소드들

메소드 설명
getNodeByIdentifier ( string $nodeIdentifier ) : Neos\ContentRepository\Domain\Model\NodeInterface Returns a node from the given $nodeIdentifier (disabling authorization checks)
resolveNodePath ( string $nodePathOrIdentifier ) : boolean | string Resolves the given $nodePathOrIdentifier and returns its absolute path and or a boolean if the result directly matches the currently selected node

메소드 상세

__construct() 공개 메소드

public __construct ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null )
$node Neos\ContentRepository\Domain\Model\NodeInterface

getNodeByIdentifier() 보호된 메소드

Returns a node from the given $nodeIdentifier (disabling authorization checks)
protected getNodeByIdentifier ( string $nodeIdentifier ) : Neos\ContentRepository\Domain\Model\NodeInterface
$nodeIdentifier string
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

isAncestorNodeOf() 공개 메소드

Example: isAncestorNodeOf('/sites/some/path') matches for the nodes "/sites", "/sites/some" and "/sites/some/path" but not for "/sites/some/other"
public isAncestorNodeOf ( string $nodePathOrIdentifier ) : boolean
$nodePathOrIdentifier string The identifier or absolute path of the node to match
리턴 boolean TRUE if the given node matches otherwise false

isAncestorOrDescendantNodeOf() 공개 메소드

Example: isAncestorOrDescendantNodeOf('/sites/some') matches for the nodes "/sites", "/sites/some", "/sites/some/sub" but not "/sites/other"
public isAncestorOrDescendantNodeOf ( string $nodePathOrIdentifier ) : boolean
$nodePathOrIdentifier string The identifier or absolute path of the node to match
리턴 boolean TRUE if the given node matches otherwise false

isDescendantNodeOf() 공개 메소드

Example: isDescendantNodeOf('/sites/some/path') matches for the nodes "/sites/some/path", "/sites/some/path/subnode" but not for "/sites/some/other"
public isDescendantNodeOf ( string $nodePathOrIdentifier ) : boolean
$nodePathOrIdentifier string The identifier or absolute path of the node to match
리턴 boolean TRUE if the given node matches otherwise false

isInDimensionPreset() 공개 메소드

Example: isInDimensionPreset('language', 'de') checks whether the currently-selected language preset (in the Neos backend) is "de". Implementation Note: We deliberately work on the Dimension Preset Name, and not on the dimension values itself; as the preset is user-visible and the actual dimension-values for a preset are just implementation details.
public isInDimensionPreset ( string $dimensionName, string | array $presets ) : boolean
$dimensionName string
$presets string | array
리턴 boolean

isInWorkspace() 공개 메소드

Example: isInWorkspace(['live', 'user-admin']) matches if the selected node is in one of the workspaces "user-admin" or "live"
public isInWorkspace ( array $workspaceNames ) : boolean
$workspaceNames array An array of workspace names, e.g. ["live", "user-admin"]
리턴 boolean TRUE if the selected node matches the $workspaceNames, otherwise FALSE

nodeIsOfType() 공개 메소드

Example: nodeIsOfType(['Neos.ContentRepository:NodeType1', 'Neos.ContentRepository:NodeType2']) matches if the selected node is of (sub) type *Neos.ContentRepository:NodeType1* or *Neos.ContentRepository:NodeType1*
public nodeIsOfType ( string | array $nodeTypes ) : boolean
$nodeTypes string | array A single or an array of fully qualified NodeType name(s), e.g. "Neos.Neos:Document"
리턴 boolean TRUE if the selected node matches the $nodeTypes, otherwise FALSE

resolveNodePath() 보호된 메소드

Resolves the given $nodePathOrIdentifier and returns its absolute path and or a boolean if the result directly matches the currently selected node
protected resolveNodePath ( string $nodePathOrIdentifier ) : boolean | string
$nodePathOrIdentifier string identifier or absolute path for the node to resolve
리턴 boolean | string TRUE if the node matches the selected node, FALSE if the corresponding node does not exist. Otherwise the resolved absolute path with trailing slash

setNode() 공개 메소드

public setNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void

프로퍼티 상세

$contentDimensionPresetSource 보호되어 있는 프로퍼티

protected ContentDimensionPresetSourceInterface,Neos\ContentRepository\Domain\Service $contentDimensionPresetSource
리턴 Neos\ContentRepository\Domain\Service\ContentDimensionPresetSourceInterface

$contextFactory 보호되어 있는 프로퍼티

protected ContextFactory,Neos\ContentRepository\Domain\Service $contextFactory
리턴 Neos\ContentRepository\Domain\Service\ContextFactory

$node 보호되어 있는 프로퍼티

protected NodeInterface,Neos\ContentRepository\Domain\Model $node
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

$securityContext 보호되어 있는 프로퍼티

protected Context,Neos\Flow\Security $securityContext
리턴 Neos\Flow\Security\Context