Property | Type | Description | |
---|---|---|---|
$baseWorkspace | Content from the base workspace will shine through in this workspace as long as they are not modified in this workspace. | ||
$description | string | An optional user-defined description | |
$name | string | ||
$nodeDataRepository | |||
$nodeService | Neos\ContentRepository\Domain\Service\NodeServiceInterface | ||
$now | Neos\Flow\Utility\Now | ||
$owner | string | We can't use a real many-to-many relation here, because the User implementation will come from a different package (e.g. Neos) which ContentRepository does not depend on. This relation may be implemented with a target entity listener at a later stage, when we implemented support for it in Flow core. See also: http://doctrine-orm.readthedocs.org/projects/doctrine-orm/en/latest/cookbook/resolve-target-entity-listener.html | |
$persistenceManager | Neos\Flow\Persistence\PersistenceManagerInterface | ||
$publishingService | Neos\ContentRepository\Domain\Service\PublishingServiceInterface | ||
$reflectionService | |||
$rootNodeData | Root node data of this workspace | ||
$title | string | A user-defined, human-friendly title for this workspace |
Method | Description | |
---|---|---|
__construct ( string $name, |
Constructs a new workspace | |
getBaseWorkspace ( ) : |
Returns the base workspace, if any | |
getBaseWorkspaces ( ) : |
Returns all base workspaces, if any | |
getDescription ( ) : string | Returns the workspace description | |
getName ( ) : string | Returns the name of this workspace | |
getNodeCount ( ) : integer | Returns the number of nodes in this workspace. | |
getOwner ( ) : Neos\ContentRepository\Domain\Model\UserInterface | Returns the workspace owner. | |
getRootNodeData ( ) : |
Returns the root node data of this workspace | |
getTitle ( ) : string | Returns the workspace title | |
initializeObject ( integer $initializationCause ) : void | Initializes this workspace. | |
isInternalWorkspace ( ) : boolean | Checks if this workspace is shared across all editors | |
isPersonalWorkspace ( ) : boolean | Checks if this workspace is a user's personal workspace | |
isPrivateWorkspace ( ) : boolean | Checks if this workspace is shared only across users with access to internal workspaces, for example "reviewers" | |
isPublicWorkspace ( ) : boolean | Checks if this workspace is public to everyone, even without authentication | |
publish ( |
Publishes the content of this workspace to another workspace. | |
publishNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
Publishes the given node to the target workspace. | |
publishNodes ( array $nodes, |
Publishes the given nodes to the target workspace. | |
setBaseWorkspace ( |
Sets the base workspace | |
setDescription ( string $description ) : void | Sets the workspace description | |
setOwner ( Neos\ContentRepository\Domain\Model\UserInterface | string $user ) | Returns the workspace owner. | |
setTitle ( string $title ) : void | Sets workspace title |
Method | Description | |
---|---|---|
adjustShadowNodeData ( |
Adjust the given $shadowNodeData by removing it or moving it to the $targetWorkspace, as needed. | |
adjustShadowNodePath ( |
Adjusts the path of $shadowNodeData to $path, if needed/possible. | |
emitAfterNodePublishing ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
Emits a signal when a node has been published. | |
emitBaseWorkspaceChanged ( |
Emits a signal after the base workspace has been changed | |
emitBeforeNodePublishing ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
Emits a signal just before a node is being published | |
findNodeDataInTargetWorkspace ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
Returns the NodeData instance with the given identifier from the target workspace. | |
handleShadowNodeData ( |
Look for a shadow node of $publishedNodeData either adjust or remove it based on $targetWorkspace if the shadow node is marked as removed. | |
moveNodeVariantToTargetWorkspace ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
Move the given node instance to the target workspace | |
replaceNodeData ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
Replace the node data of a node instance with a given target node data | |
verifyPublishingTargetWorkspace ( |
Checks if the specified workspace is a base workspace of this workspace and if not, throws an exception |
public __construct ( string $name, |
||
$name | string | Name of this workspace |
$baseWorkspace | A workspace this workspace is based on (if any) | |
$owner | Neos\ContentRepository\Domain\Model\UserInterface | The user that created the workspace (if any, "system" workspaces have none) |
protected adjustShadowNodeData ( |
||
$shadowNodeData | ||
$publishedNodeData | ||
$targetWorkspace | ||
$targetNodeData | ||
return | void |
protected adjustShadowNodePath ( |
||
$shadowNodeData | ||
$path | ||
$targetWorkspace | ||
$dimensionValues | array | |
return | void |
protected emitAfterNodePublishing ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node that was published |
$targetWorkspace | The publishing target workspace | |
return | void |
protected emitBaseWorkspaceChanged ( |
||
$workspace | This workspace | |
$oldBaseWorkspace | The workspace which was the base workspace before the change | |
$newBaseWorkspace | The new base workspace | |
return | void |
protected emitBeforeNodePublishing ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node to be published |
$targetWorkspace | The publishing target workspace | |
return | void |
protected findNodeDataInTargetWorkspace ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | |
$targetWorkspace | ||
return |
public getBaseWorkspace ( ) : |
||
return |
public getBaseWorkspaces ( ) : |
||
return |
public getDescription ( ) : string | ||
return | string |
public getNodeCount ( ) : integer | ||
return | integer |
public getOwner ( ) : Neos\ContentRepository\Domain\Model\UserInterface | ||
return | Neos\ContentRepository\Domain\Model\UserInterface |
public getRootNodeData ( ) : |
||
return |
protected handleShadowNodeData ( |
||
$publishedNodeData | ||
$targetWorkspace | ||
$targetNodeData | ||
return | boolean | false if no shadow node was found, true otherwise |
public initializeObject ( integer $initializationCause ) : void | ||
$initializationCause | integer | |
return | void |
public isInternalWorkspace ( ) : boolean | ||
return | boolean |
public isPersonalWorkspace ( ) : boolean | ||
return | boolean |
public isPrivateWorkspace ( ) : boolean | ||
return | boolean |
public isPublicWorkspace ( ) : boolean | ||
return | boolean |
protected moveNodeVariantToTargetWorkspace ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node to publish |
$targetWorkspace | The workspace to publish to | |
return | void |
public publishNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node to publish |
$targetWorkspace | The workspace to publish to | |
return | void |
public publishNodes ( array $nodes, |
||
$nodes | array | |
$targetWorkspace | The workspace to publish to | |
return | void |
protected replaceNodeData ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node instance with node data to be published |
$targetNodeData | The existing node data in the target workspace | |
return | void |
public setBaseWorkspace ( |
||
$baseWorkspace | ||
return | void |
public setDescription ( string $description ) : void | ||
$description | string | |
return | void |
protected verifyPublishingTargetWorkspace ( |
||
$targetWorkspace | The publishing target workspace | |
return | void |
protected Workspace,Neos\ContentRepository\Domain\Model $baseWorkspace | ||
return |
protected string $description | ||
return | string |
protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository | ||
return |
protected NodeServiceInterface,Neos\ContentRepository\Domain\Service $nodeService | ||
return | Neos\ContentRepository\Domain\Service\NodeServiceInterface |
protected string $owner | ||
return | string |
protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager | ||
return | Neos\Flow\Persistence\PersistenceManagerInterface |
protected PublishingServiceInterface,Neos\ContentRepository\Domain\Service $publishingService | ||
return | Neos\ContentRepository\Domain\Service\PublishingServiceInterface |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
return |
protected NodeData,Neos\ContentRepository\Domain\Model $rootNodeData | ||
return |
protected string $title | ||
return | string |