PHP Class Neos\Neos\EventLog\Integrations\ContentRepositoryIntegrationService

Inheritance: extends AbstractIntegrationService
Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$changedNodes array
$currentNodeAddEvents array
$currentlyAdopting integer
$currentlyCopying boolean
$currentlyMoving boolean
$entityManager Doctrine\Common\Persistence\ObjectManager
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$scheduledNodeEventUpdates array

Public Methods

Method Description
afterAdoptNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Context $context, $recursive ) : void
afterNodeCopy ( Neos\ContentRepository\Domain\Model\NodeInterface $copiedNode, Neos\ContentRepository\Domain\Model\NodeInterface $targetParentNode ) : void
afterNodeCreate ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Add the created node to the previously created "Added Node" event
afterNodeMove ( Neos\ContentRepository\Domain\Model\NodeInterface $movedNode, Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, integer $moveOperation ) : void
afterNodePublishing ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Workspace $targetWorkspace ) : void
beforeAdoptNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Context $context, $recursive ) : void
beforeNodeCopy ( Neos\ContentRepository\Domain\Model\NodeInterface $sourceNode, Neos\ContentRepository\Domain\Model\NodeInterface $targetParentNode ) : void
beforeNodeCreate ( ) : void Emit a "Node Added" event
beforeNodeMove ( Neos\ContentRepository\Domain\Model\NodeInterface $movedNode, Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, integer $moveOperation )
beforeNodePropertyChange ( Neos\ContentRepository\Domain\Model\NodeInterface $node, $propertyName, $oldValue, $value ) : void Emit an event when node properties have been changed
beforeNodePublishing ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Workspace $targetWorkspace ) : void
generateNodeEvents ( ) : void
nodePropertyChanged ( Neos\ContentRepository\Domain\Model\NodeInterface $node, $propertyName, $oldValue, $value ) : void Add the new label to a previously created node property changed event
nodeRemoved ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Emits a "Node Removed" event
nodeUpdated ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Emit a "Node Updated" event
preFlush ( ) : void React on the Doctrine preFlush event and trigger the respective internal node events
reset ( ) : void
updateEventsAfterPublish ( ) : void

Method Details

afterAdoptNode() public method

public afterAdoptNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Context $context, $recursive ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$context Neos\ContentRepository\Domain\Service\Context
$recursive
return void

afterNodeCopy() public method

public afterNodeCopy ( Neos\ContentRepository\Domain\Model\NodeInterface $copiedNode, Neos\ContentRepository\Domain\Model\NodeInterface $targetParentNode ) : void
$copiedNode Neos\ContentRepository\Domain\Model\NodeInterface
$targetParentNode Neos\ContentRepository\Domain\Model\NodeInterface
return void

afterNodeCreate() public method

Add the created node to the previously created "Added Node" event
public afterNodeCreate ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
return void

afterNodeMove() public method

public afterNodeMove ( Neos\ContentRepository\Domain\Model\NodeInterface $movedNode, Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, integer $moveOperation ) : void
$movedNode Neos\ContentRepository\Domain\Model\NodeInterface
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$moveOperation integer
return void

afterNodePublishing() public method

public afterNodePublishing ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Workspace $targetWorkspace ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$targetWorkspace Neos\ContentRepository\Domain\Model\Workspace
return void

beforeAdoptNode() public method

public beforeAdoptNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Context $context, $recursive ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$context Neos\ContentRepository\Domain\Service\Context
$recursive
return void

beforeNodeCopy() public method

public beforeNodeCopy ( Neos\ContentRepository\Domain\Model\NodeInterface $sourceNode, Neos\ContentRepository\Domain\Model\NodeInterface $targetParentNode ) : void
$sourceNode Neos\ContentRepository\Domain\Model\NodeInterface
$targetParentNode Neos\ContentRepository\Domain\Model\NodeInterface
return void

beforeNodeCreate() public method

Emit a "Node Added" event
public beforeNodeCreate ( ) : void
return void

beforeNodeMove() public method

public beforeNodeMove ( Neos\ContentRepository\Domain\Model\NodeInterface $movedNode, Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode, integer $moveOperation )
$movedNode Neos\ContentRepository\Domain\Model\NodeInterface
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
$moveOperation integer

beforeNodePropertyChange() public method

Emit an event when node properties have been changed
public beforeNodePropertyChange ( Neos\ContentRepository\Domain\Model\NodeInterface $node, $propertyName, $oldValue, $value ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName
$oldValue
$value
return void

beforeNodePublishing() public method

public beforeNodePublishing ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Workspace $targetWorkspace ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$targetWorkspace Neos\ContentRepository\Domain\Model\Workspace
return void

generateNodeEvents() public method

public generateNodeEvents ( ) : void
return void

nodePropertyChanged() public method

Add the new label to a previously created node property changed event
public nodePropertyChanged ( Neos\ContentRepository\Domain\Model\NodeInterface $node, $propertyName, $oldValue, $value ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName
$oldValue
$value
return void

nodeRemoved() public method

Emits a "Node Removed" event
public nodeRemoved ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
return void

nodeUpdated() public method

Emit a "Node Updated" event
public nodeUpdated ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
return void

preFlush() public method

React on the Doctrine preFlush event and trigger the respective internal node events
public preFlush ( ) : void
return void

reset() public method

public reset ( ) : void
return void

updateEventsAfterPublish() public method

public updateEventsAfterPublish ( ) : void
return void

Property Details

$changedNodes protected property

protected array $changedNodes
return array

$currentNodeAddEvents protected property

protected array $currentNodeAddEvents
return array

$currentlyAdopting protected property

protected int $currentlyAdopting
return integer

$currentlyCopying protected property

protected bool $currentlyCopying
return boolean

$currentlyMoving protected property

protected bool $currentlyMoving
return boolean

$entityManager protected property

protected ObjectManager,Doctrine\Common\Persistence $entityManager
return Doctrine\Common\Persistence\ObjectManager

$persistenceManager protected property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface

$scheduledNodeEventUpdates protected property

protected array $scheduledNodeEventUpdates
return array