WorkspaceController
class WorkspaceController extends AbstractServiceController (View source)
Service Controller for managing Workspaces
Traits
A trait to add backend translation based on the backend users settings
Properties
protected Service | $_localizationService | from BackendUserTranslationTrait | |
protected UserService | $_userService | from BackendUserTranslationTrait | |
protected array | $supportedMediaTypes | from AbstractServiceController | |
protected ThrowableStorageInterface | $throwableStorage2 | Cant be named here $throwableStorage see https://github.com/neos/neos-development-collection/issues/3858 |
from AbstractServiceController |
protected string | $defaultViewObjectName | ||
protected NodeView | $view | ||
protected NodeDataRepository | $nodeDataRepository | ||
protected PublishingService | $publishingService | ||
protected WorkspaceRepository | $workspaceRepository | ||
protected PropertyMapper | $propertyMapper |
Methods
Set the locale according to the user settings
A preliminary error action for handling validation errors
Catch exceptions while processing an exception and respond to JSON format TODO: This is an explicit exception handling that will be replaced by format-enabled exception handlers.
No description
Publishes the given node to the specified targetWorkspace
Publishes the given nodes to the specified targetWorkspace
Discards the given nodes
Publish everything in the workspace with the given workspace name
Get every unpublished node in the workspace with the given workspace name
Discard everything in the workspace with the given workspace name
Details
protected void
initializeObject()
Set the locale according to the user settings
void
errorAction()
A preliminary error action for handling validation errors
void
processRequest(ActionRequest $request, ActionResponse $response)
Catch exceptions while processing an exception and respond to JSON format TODO: This is an explicit exception handling that will be replaced by format-enabled exception handlers.
protected array
convertException(Exception $exception)
No description
protected void
initializeAction()
No description
void
publishNodeAction(NodeInterface $node, string $targetWorkspaceName = null)
Publishes the given node to the specified targetWorkspace
void
publishNodesAction(array $nodes, string $targetWorkspaceName = null)
Publishes the given nodes to the specified targetWorkspace
void
discardNodeAction(NodeInterface $node)
Discards the given node
void
discardNodesAction(array $nodes)
Discards the given nodes
void
publishAllAction(string $sourceWorkspaceName, string $targetWorkspaceName)
Publish everything in the workspace with the given workspace name
void
getWorkspaceWideUnpublishedNodesAction(Workspace $workspace)
Get every unpublished node in the workspace with the given workspace name
void
discardAllAction(Workspace $workspace)
Discard everything in the workspace with the given workspace name