NOTE: This class only exists for backwards compatibility with not-yet refactored service end points and service controllers.
Inheritance: extends Neos\Flow\Mvc\View\JsonView
 /**
  * Search a page, needed for internal links.
  *
  * @deprecated will be removed with 3.0, use Service/NodesController->indexAction() instead
  * @param string $query
  * @return void
  */
 public function searchPageAction($query)
 {
     $searchResult = array();
     $documentNodeTypes = $this->nodeTypeManager->getSubNodeTypes('Neos.Neos:Document');
     /** @var NodeInterface $node */
     foreach ($this->nodeSearchService->findByProperties($query, $documentNodeTypes, $this->createContext('live')) as $node) {
         $searchResult[$node->getPath()] = $this->processNodeForEditorPlugins($node);
     }
     $this->view->assign('value', array('searchResult' => $searchResult, 'success' => true));
 }
Ejemplo n.º 2
0
 /**
  * Deletes the specified node and all of its sub nodes
  *
  * We need to call persistAll() in order to return the nextUri. We can't persist only the nodes in NodeDataRepository
  * because they might be connected to images / resources which need to be removed at the same time.
  *
  * @param Node $node
  * @return void
  */
 public function deleteAction(Node $node)
 {
     if ($this->request->getHttpRequest()->isMethodSafe() === false) {
         $this->persistenceManager->persistAll();
     }
     $q = new FlowQuery(array($node));
     $node->remove();
     $closestDocumentNode = $q->closest('[instanceof Neos.Neos:Document]')->get(0);
     $nextUri = $this->uriBuilder->reset()->setFormat('html')->setCreateAbsoluteUri(true)->uriFor('show', array('node' => $closestDocumentNode), 'Frontend\\Node', 'Neos.Neos');
     $this->view->assign('value', array('data' => array('nextUri' => $nextUri), 'success' => true));
 }
Ejemplo n.º 3
0
 /**
  * Get every unpublished node in the workspace with the given workspace name
  *
  * @param Workspace $workspace
  * @return void
  */
 public function getWorkspaceWideUnpublishedNodesAction($workspace)
 {
     $this->view->assignNodes($this->publishingService->getUnpublishedNodes($workspace));
 }