PublishingServiceInterface
interface PublishingServiceInterface (View source)
ContentRepository Publishing Service Interface
Methods
Returns a list of nodes contained in the given workspace which are not yet published
Returns the number of unpublished nodes contained in the given workspace
Publishes the given node to the specified target workspace. If no workspace is specified, "live" is assumed.
Publishes the given nodes to the specified target workspace. If no workspace is specified, "live" is assumed.
Discards the given nodes.
Details
NodeInterface[]
getUnpublishedNodes(Workspace $workspace)
Returns a list of nodes contained in the given workspace which are not yet published
int
getUnpublishedNodesCount(Workspace $workspace)
Returns the number of unpublished nodes contained in the given workspace
void
publishNode(NodeInterface $node, Workspace $targetWorkspace = null)
Publishes the given node to the specified target workspace. If no workspace is specified, "live" is assumed.
void
publishNodes(array $nodes, Workspace $targetWorkspace = null)
Publishes the given nodes to the specified target workspace. If no workspace is specified, "live" is assumed.
void
discardNode(NodeInterface $node)
Discards the given node.
void
discardNodes(array $nodes)
Discards the given nodes.
void
discardAllNodes(Workspace $workspace)
Discards all unpublished nodes of the given workspace.