final class NodePropertiesWereSet implements EventInterface, PublishableToWorkspaceInterface, EmbedsContentStreamId, EmbedsNodeAggregateId, EmbedsWorkspaceName (View source)

When a node property is changed, this event is triggered.

The projectors need to MERGE all the SerializedPropertyValues in these events (per node) to get an up to date view of all the properties of a node.

NOTE: if a value is set to NULL in SerializedPropertyValues, this means the key should be unset, because we treat NULL and "not set" the same from an API perspective.

Methods

__construct(WorkspaceName $workspaceName, ContentStreamId $contentStreamId, NodeAggregateId $nodeAggregateId, OriginDimensionSpacePoint $originDimensionSpacePoint, DimensionSpacePointSet $affectedDimensionSpacePoints, SerializedPropertyValues $propertyValues, PropertyNames $propertiesToUnset)

No description

getWorkspaceName()

No description

static EventInterface
fromArray(array $values)

No description

array
jsonSerialize()

No description

Details

__construct(WorkspaceName $workspaceName, ContentStreamId $contentStreamId, NodeAggregateId $nodeAggregateId, OriginDimensionSpacePoint $originDimensionSpacePoint, DimensionSpacePointSet $affectedDimensionSpacePoints, SerializedPropertyValues $propertyValues, PropertyNames $propertiesToUnset)

No description

Parameters

WorkspaceName $workspaceName
ContentStreamId $contentStreamId
NodeAggregateId $nodeAggregateId
OriginDimensionSpacePoint $originDimensionSpacePoint
DimensionSpacePointSet $affectedDimensionSpacePoints
SerializedPropertyValues $propertyValues
PropertyNames $propertiesToUnset

ContentStreamId getContentStreamId()

No description

Return Value

ContentStreamId

NodeAggregateId getNodeAggregateId()

No description

Return Value

NodeAggregateId

WorkspaceName getWorkspaceName()

No description

Return Value

WorkspaceName

OriginDimensionSpacePoint getOriginDimensionSpacePoint()

No description

PublishableToWorkspaceInterface withWorkspaceNameAndContentStreamId(WorkspaceName $targetWorkspaceName, ContentStreamId $contentStreamId)

No description

Parameters

WorkspaceName $targetWorkspaceName
ContentStreamId $contentStreamId

Return Value

PublishableToWorkspaceInterface

NodePropertiesWereSet mergeProperties(NodePropertiesWereSet $other)

No description

Parameters

NodePropertiesWereSet $other

Return Value

NodePropertiesWereSet

static EventInterface fromArray(array $values)

No description

Parameters

array $values

Return Value

EventInterface

array jsonSerialize()

No description

Return Value

array