final class CreateNodeAggregateWithNodeAndSerializedProperties implements JsonSerializable, RebasableToOtherWorkspaceInterface (View source)

internal  implementation detail, use {@see \Neos\ContentRepository\Core\Feature\NodeCreation\Command\CreateNodeAggregateWithNode} instead.
 

The properties of {CreateNodeAggregateWithNode} are directly serialized; and then this command is called and triggers the actual processing.

Methods

create(WorkspaceName $workspaceName, NodeAggregateId $nodeAggregateId, NodeTypeName $nodeTypeName, OriginDimensionSpacePoint $originDimensionSpacePoint, NodeAggregateId $parentNodeAggregateId, NodeAggregateId|null $succeedingSiblingNodeAggregateId = null, SerializedPropertyValues|null $initialPropertyValues = null, SerializedNodeReferences|null $references = null)

No description

fromArray(array $array)

No description

withTetheredDescendantNodeAggregateIds(NodeAggregateIdsByNodePaths $tetheredDescendantNodeAggregateIds)

We precalculate all $tetheredDescendantNodeAggregateIds via {NodeAggregateIdsByNodePaths::completeForNodeOfType} so that when rebasing the command, it stays fully deterministic.

withNodeName(NodeName $nodeName) deprecated

The node's optional name.

array
jsonSerialize()

No description

Details

static CreateNodeAggregateWithNodeAndSerializedProperties create(WorkspaceName $workspaceName, NodeAggregateId $nodeAggregateId, NodeTypeName $nodeTypeName, OriginDimensionSpacePoint $originDimensionSpacePoint, NodeAggregateId $parentNodeAggregateId, NodeAggregateId|null $succeedingSiblingNodeAggregateId = null, SerializedPropertyValues|null $initialPropertyValues = null, SerializedNodeReferences|null $references = null)

No description

Parameters

WorkspaceName $workspaceName

The workspace in which the create operation is to be performed

NodeAggregateId $nodeAggregateId

The unique identifier of the node aggregate to create

NodeTypeName $nodeTypeName

Name of the node type of the new node

OriginDimensionSpacePoint $originDimensionSpacePoint

Origin of the new node in the dimension space. Will also be used to calculate a set of dimension points where the new node will cover from the configured specializations.

NodeAggregateId $parentNodeAggregateId

The id of the node aggregate underneath which the new node is added

NodeAggregateId|null $succeedingSiblingNodeAggregateId

Node aggregate id of the node's succeeding sibling (optional). If not given, the node will be added as the parent's first child

SerializedPropertyValues|null $initialPropertyValues

The node's initial property values (serialized). Will be merged over the node type's default property values

SerializedNodeReferences|null $references

The node's initial references (serialized).

Return Value

CreateNodeAggregateWithNodeAndSerializedProperties

static RebasableToOtherWorkspaceInterface fromArray(array $array)

No description

Parameters

array $array

Return Value

RebasableToOtherWorkspaceInterface

CreateNodeAggregateWithNodeAndSerializedProperties withTetheredDescendantNodeAggregateIds(NodeAggregateIdsByNodePaths $tetheredDescendantNodeAggregateIds)

We precalculate all $tetheredDescendantNodeAggregateIds via {NodeAggregateIdsByNodePaths::completeForNodeOfType} so that when rebasing the command, it stays fully deterministic.

See also the documentation of the higher level API {\Neos\ContentRepository\Core\Feature\NodeCreation\Command\CreateNodeAggregateWithNode::withTetheredDescendantNodeAggregateIds}

Parameters

NodeAggregateIdsByNodePaths $tetheredDescendantNodeAggregateIds

Return Value

CreateNodeAggregateWithNodeAndSerializedProperties

CreateNodeAggregateWithNodeAndSerializedProperties withNodeName(NodeName $nodeName) deprecated

deprecated the concept regarding node-names for non-tethered nodes is outdated.

The node's optional name.

Set if there is a meaningful relation to its parent that should be named.

array jsonSerialize()

No description

Return Value

array

RebasableToOtherWorkspaceInterface createCopyForWorkspace(WorkspaceName $targetWorkspaceName)

No description

Parameters

WorkspaceName $targetWorkspaceName

Return Value

RebasableToOtherWorkspaceInterface