Class NavigationLayoutService

java.lang.Object
io.meeds.layout.service.NavigationLayoutService

@Service public class NavigationLayoutService extends Object
  • Constructor Details

    • NavigationLayoutService

      public NavigationLayoutService()
  • Method Details

    • createNode

      public org.exoplatform.portal.mop.navigation.NodeData createNode(NavigationCreateModel nodeModel, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException, IllegalArgumentException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
      IllegalArgumentException
    • createDraftNode

      public org.exoplatform.portal.mop.navigation.NodeData createDraftNode(Long nodeId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • updateNode

      public void updateNode(long nodeId, NavigationUpdateModel nodeModel, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException, IllegalArgumentException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
      IllegalArgumentException
    • deleteNode

      public void deleteNode(long nodeId, long delay, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • undoDeleteNode

      public void undoDeleteNode(long nodeId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • init

      @PostConstruct public void init()
    • destroy

      @PreDestroy public void destroy()
      Lets a deletion that is running end, up to STOP_TIMEOUT seconds, then runs the deletions still waiting for their delay.
    • deletePendingNodes

      public void deletePendingNodes()
      Runs the deletions still waiting for their delay, which would be lost with this node: their undo is no longer possible.
    • moveNode

      public void moveNode(long nodeId, Long destinationParentId, Long previousNodeId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • getNode

      public org.exoplatform.portal.mop.navigation.NodeData getNode(long nodeId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • getNodeLabels

      public NodeLabel getNodeLabels(long nodeId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • getNodeUri

      public String getNodeUri(long nodeId, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getNodeUri

      public String getNodeUri(org.exoplatform.portal.mop.navigation.NodeData node)
    • deleteNode

      public void deleteNode(long nodeId)
    • findNode

      public org.exoplatform.portal.mop.navigation.NodeContext<org.exoplatform.portal.mop.navigation.NodeContext<Object>> findNode(org.exoplatform.portal.mop.navigation.NodeContext<org.exoplatform.portal.mop.navigation.NodeContext<Object>> node, String name)
    • toNodeLabel

      public NodeLabel toNodeLabel(Map<Locale,org.exoplatform.portal.mop.State> nodeLabels)