PHP Class Neos\Neos\Service\Controller\WorkspaceController

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

Protected Properties

Property Type Description
$defaultViewObjectName string
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$propertyMapper Neos\Flow\Property\PropertyMapper
$propertyMappingConfigurationBuilder Neos\Flow\Property\PropertyMappingConfigurationBuilder
$publishingService Neos\Neos\Service\PublishingService
$view Neos\Neos\Service\View\NodeView
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

Public Methods

Method Description
discardAllAction ( Workspace $workspace ) : void Discard everything in the workspace with the given workspace name
discardNodeAction ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Discards the given node
discardNodesAction ( array $nodes ) : void Discards the given nodes
getWorkspaceWideUnpublishedNodesAction ( Workspace $workspace ) : void Get every unpublished node in the workspace with the given workspace name
publishAllAction ( string $sourceWorkspaceName, string $targetWorkspaceName ) : void Publish everything in the workspace with the given workspace name
publishNodeAction ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $targetWorkspaceName = null ) : void Publishes the given node to the specified targetWorkspace
publishNodesAction ( array $nodes, string $targetWorkspaceName = null ) : void Publishes the given nodes to the specified targetWorkspace

Protected Methods

Method Description
initializeAction ( ) : void

Method Details

discardAllAction() public method

Discard everything in the workspace with the given workspace name
public discardAllAction ( Workspace $workspace ) : void
$workspace Neos\ContentRepository\Domain\Model\Workspace
return void

discardNodeAction() public method

Discards the given node
public discardNodeAction ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
return void

discardNodesAction() public method

Discards the given nodes
public discardNodesAction ( array $nodes ) : void
$nodes array
return void

getWorkspaceWideUnpublishedNodesAction() public method

Get every unpublished node in the workspace with the given workspace name
public getWorkspaceWideUnpublishedNodesAction ( Workspace $workspace ) : void
$workspace Neos\ContentRepository\Domain\Model\Workspace
return void

initializeAction() protected method

protected initializeAction ( ) : void
return void

publishAllAction() public method

Publish everything in the workspace with the given workspace name
public publishAllAction ( string $sourceWorkspaceName, string $targetWorkspaceName ) : void
$sourceWorkspaceName string Name of the source workspace containing the content to publish
$targetWorkspaceName string Name of the target workspace the content should be published to
return void

publishNodeAction() public method

Publishes the given node to the specified targetWorkspace
public publishNodeAction ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $targetWorkspaceName = null ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$targetWorkspaceName string
return void

publishNodesAction() public method

Publishes the given nodes to the specified targetWorkspace
public publishNodesAction ( array $nodes, string $targetWorkspaceName = null ) : void
$nodes array
$targetWorkspaceName string
return void

Property Details

$defaultViewObjectName protected property

protected string $defaultViewObjectName
return string

$nodeDataRepository protected property

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
return Neos\ContentRepository\Domain\Repository\NodeDataRepository

$propertyMapper protected property

protected PropertyMapper,Neos\Flow\Property $propertyMapper
return Neos\Flow\Property\PropertyMapper

$propertyMappingConfigurationBuilder protected property

protected PropertyMappingConfigurationBuilder,Neos\Flow\Property $propertyMappingConfigurationBuilder
return Neos\Flow\Property\PropertyMappingConfigurationBuilder

$publishingService protected property

protected PublishingService,Neos\Neos\Service $publishingService
return Neos\Neos\Service\PublishingService

$view protected property

protected NodeView,Neos\Neos\Service\View $view
return Neos\Neos\Service\View\NodeView

$workspaceRepository protected property

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
return Neos\ContentRepository\Domain\Repository\WorkspaceRepository