MoveNodeAggregate
final class MoveNodeAggregate implements CommandInterface, JsonSerializable, RebasableToOtherWorkspaceInterface (View source)
The "Move node aggregate" command
In contentStreamId
and dimensionSpacePoint,
move node aggregate nodeAggregateId
into newParentNodeAggregateId (or keep the current parent)
between newPrecedingSiblingNodeAggregateId
and newSucceedingSiblingNodeAggregateId (or as last of all siblings)
using relationDistributionStrategy
Why can you specify both newPrecedingSiblingNodeAggregateId and newSucceedingSiblingNodeAggregateId?
- it can happen that in one subgraph, only one of these match.
- See the PHPDoc of the attributes (a few lines down) for the exact behavior.
Methods
static MoveNodeAggregate
create(WorkspaceName $workspaceName, DimensionSpacePoint $dimensionSpacePoint, NodeAggregateId $nodeAggregateId, RelationDistributionStrategy $relationDistributionStrategy, NodeAggregateId|null $newParentNodeAggregateId = null, NodeAggregateId|null $newPrecedingSiblingNodeAggregateId = null, NodeAggregateId|null $newSucceedingSiblingNodeAggregateId = null)
No description
static CommandInterface
fromArray(array $array)
No description
array
jsonSerialize()
No description
Details
static MoveNodeAggregate
create(WorkspaceName $workspaceName, DimensionSpacePoint $dimensionSpacePoint, NodeAggregateId $nodeAggregateId, RelationDistributionStrategy $relationDistributionStrategy, NodeAggregateId|null $newParentNodeAggregateId = null, NodeAggregateId|null $newPrecedingSiblingNodeAggregateId = null, NodeAggregateId|null $newSucceedingSiblingNodeAggregateId = null)
No description
static CommandInterface
fromArray(array $array)
No description
array
jsonSerialize()
No description
RebasableToOtherWorkspaceInterface
createCopyForWorkspace(WorkspaceName $targetWorkspaceName)
No description