class ContentRepositoryIntegrationService extends AbstractIntegrationService (View source)

Monitors Neos.ContentRepository changes

Constants

NODE_ADDED

NODE_UPDATED

NODE_LABEL_CHANGED

NODE_REMOVED

DOCUMENT_PUBLISHED

NODE_COPY

NODE_MOVE

NODE_ADOPT

Properties

protected EventEmittingService $eventEmittingService from  AbstractIntegrationService
protected EntityManagerInterface $entityManager
protected PersistenceManagerInterface $persistenceManager
protected array $changedNodes
protected array $currentNodeAddEvents
protected bool $currentlyCopying
protected bool $currentlyMoving
protected int $currentlyAdopting
protected array $scheduledNodeEventUpdates

Methods

void
preFlush()

React on the Doctrine preFlush event and trigger the respective internal node events

void
beforeNodeCreate()

Emit a "Node Added" event

void
afterNodeCreate(NodeInterface $node)

Add the created node to the previously created "Added Node" event

void
nodeUpdated(NodeInterface $node)

Emit a "Node Updated" event

void
beforeNodePropertyChange(NodeInterface $node, $propertyName, $oldValue, $value)

Emit an event when node properties have been changed

void
nodePropertyChanged(NodeInterface $node, $propertyName, $oldValue, $value)

Add the new label to a previously created node property changed event

void
nodeRemoved(NodeInterface $node)

Emits a "Node Removed" event

void
beforeNodePublishing(NodeInterface $node, Workspace $targetWorkspace)

No description

void
beforeNodeCopy(NodeInterface $sourceNode, NodeInterface $targetParentNode)

Emits a "Node Copy" event

void
afterNodeCopy(NodeInterface $copiedNode, NodeInterface $targetParentNode)

No description

beforeNodeMove(NodeInterface $movedNode, NodeInterface $referenceNode, int $moveOperation)

Emits a "Node Move" event

void
afterNodeMove(NodeInterface $movedNode, NodeInterface $referenceNode, int $moveOperation)

No description

void
beforeAdoptNode(NodeInterface $node, Context $context, $recursive)

Emits a "Node Adopt" event

void
afterAdoptNode(NodeInterface $node, Context $context, $recursive)

No description

void
generateNodeEvents()

No description

void
afterNodePublishing(NodeInterface $node, Workspace $targetWorkspace)

No description

void
updateEventsAfterPublish()

Binds events to a Node.Published event for each document node published

void
reset()

No description

Details

void preFlush()

React on the Doctrine preFlush event and trigger the respective internal node events

Return Value

void

void beforeNodeCreate()

Emit a "Node Added" event

Return Value

void

void afterNodeCreate(NodeInterface $node)

Add the created node to the previously created "Added Node" event

Parameters

NodeInterface $node

Return Value

void

void nodeUpdated(NodeInterface $node)

Emit a "Node Updated" event

Parameters

NodeInterface $node

Return Value

void

void beforeNodePropertyChange(NodeInterface $node, $propertyName, $oldValue, $value)

Emit an event when node properties have been changed

Parameters

NodeInterface $node
$propertyName
$oldValue
$value

Return Value

void

void nodePropertyChanged(NodeInterface $node, $propertyName, $oldValue, $value)

Add the new label to a previously created node property changed event

Parameters

NodeInterface $node
$propertyName
$oldValue
$value

Return Value

void

void nodeRemoved(NodeInterface $node)

Emits a "Node Removed" event

Parameters

NodeInterface $node

Return Value

void

void beforeNodePublishing(NodeInterface $node, Workspace $targetWorkspace)

No description

Parameters

NodeInterface $node
Workspace $targetWorkspace

Return Value

void

void beforeNodeCopy(NodeInterface $sourceNode, NodeInterface $targetParentNode)

Emits a "Node Copy" event

Parameters

NodeInterface $sourceNode
NodeInterface $targetParentNode

Return Value

void

Exceptions

Exception

void afterNodeCopy(NodeInterface $copiedNode, NodeInterface $targetParentNode)

No description

Parameters

NodeInterface $copiedNode
NodeInterface $targetParentNode

Return Value

void

Exceptions

Exception

beforeNodeMove(NodeInterface $movedNode, NodeInterface $referenceNode, int $moveOperation)

Emits a "Node Move" event

Parameters

NodeInterface $movedNode
NodeInterface $referenceNode
int $moveOperation

void afterNodeMove(NodeInterface $movedNode, NodeInterface $referenceNode, int $moveOperation)

No description

Parameters

NodeInterface $movedNode
NodeInterface $referenceNode
int $moveOperation

Return Value

void

Exceptions

Exception

void beforeAdoptNode(NodeInterface $node, Context $context, $recursive)

Emits a "Node Adopt" event

Parameters

NodeInterface $node
Context $context
$recursive

Return Value

void

void afterAdoptNode(NodeInterface $node, Context $context, $recursive)

No description

Parameters

NodeInterface $node
Context $context
$recursive

Return Value

void

void generateNodeEvents()

No description

Return Value

void

void afterNodePublishing(NodeInterface $node, Workspace $targetWorkspace)

No description

Parameters

NodeInterface $node
Workspace $targetWorkspace

Return Value

void

void updateEventsAfterPublish()

Binds events to a Node.Published event for each document node published

Return Value

void

void reset()

No description

Return Value

void