Class XBENodeService

  • All Implemented Interfaces:
    java.io.Serializable, org.exbin.xbup.core.catalog.base.service.XBCNodeService, org.exbin.xbup.core.catalog.base.service.XBCService<org.exbin.xbup.core.catalog.base.XBCNode>

    @ParametersAreNonnullByDefault
    @Service
    public class XBENodeService
    extends XBEDefaultService<org.exbin.xbup.core.catalog.base.XBCNode>
    implements org.exbin.xbup.core.catalog.base.service.XBCNodeService, java.io.Serializable
    Interface for XBENode items service.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.exbin.xbup.core.catalog.base.service.XBCDefaultItemService

        itemManager
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long findMaxSubNodeXB​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      XBENode findNodeByXBPath​(java.lang.Long[] catalogPath)  
      XBENode findOwnerByXBPath​(java.lang.Long[] catalogPath)  
      XBENode findParentByXBPath​(java.lang.Long[] catalogPath)  
      java.util.Optional<org.exbin.xbup.core.catalog.base.XBCNode> getMainRootNode()  
      java.lang.Long[] getNodeXBPath​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      XBENode getSubNode​(org.exbin.xbup.core.catalog.base.XBCNode node, long xbIndex)  
      java.util.List<org.exbin.xbup.core.catalog.base.XBCNode> getSubNodes​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      long getSubNodesCount​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      XBENode getSubNodeSeq​(org.exbin.xbup.core.catalog.base.XBCNode node, long seq)  
      long getSubNodesSeq​(org.exbin.xbup.core.catalog.base.XBCNode node)  
      void init()  
      • Methods inherited from class org.exbin.xbup.core.catalog.base.service.XBCDefaultItemService

        createItem, getAllItems, getItem, getItemsCount, persistItem, removeItem
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.exbin.xbup.core.catalog.base.service.XBCService

        createItem, getAllItems, getItem, getItemsCount, persistItem, removeItem
    • Constructor Detail

      • XBENodeService

        public XBENodeService()
      • XBENodeService

        public XBENodeService​(XBECatalog catalog)
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • getMainRootNode

        @Nonnull
        public java.util.Optional<org.exbin.xbup.core.catalog.base.XBCNode> getMainRootNode()
        Specified by:
        getMainRootNode in interface org.exbin.xbup.core.catalog.base.service.XBCNodeService
      • findMaxSubNodeXB

        public java.lang.Long findMaxSubNodeXB​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        findMaxSubNodeXB in interface org.exbin.xbup.core.catalog.base.service.XBCNodeService
      • findNodeByXBPath

        public XBENode findNodeByXBPath​(java.lang.Long[] catalogPath)
        Specified by:
        findNodeByXBPath in interface org.exbin.xbup.core.catalog.base.service.XBCNodeService
      • findOwnerByXBPath

        public XBENode findOwnerByXBPath​(java.lang.Long[] catalogPath)
        Specified by:
        findOwnerByXBPath in interface org.exbin.xbup.core.catalog.base.service.XBCNodeService
      • findParentByXBPath

        public XBENode findParentByXBPath​(java.lang.Long[] catalogPath)
        Specified by:
        findParentByXBPath in interface org.exbin.xbup.core.catalog.base.service.XBCNodeService
      • getNodeXBPath

        public java.lang.Long[] getNodeXBPath​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getNodeXBPath in interface org.exbin.xbup.core.catalog.base.service.XBCNodeService
      • getSubNode

        public XBENode getSubNode​(org.exbin.xbup.core.catalog.base.XBCNode node,
                                  long xbIndex)
        Specified by:
        getSubNode in interface org.exbin.xbup.core.catalog.base.service.XBCNodeService
      • getSubNodeSeq

        public XBENode getSubNodeSeq​(org.exbin.xbup.core.catalog.base.XBCNode node,
                                     long seq)
        Specified by:
        getSubNodeSeq in interface org.exbin.xbup.core.catalog.base.service.XBCNodeService
      • getSubNodes

        public java.util.List<org.exbin.xbup.core.catalog.base.XBCNode> getSubNodes​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getSubNodes in interface org.exbin.xbup.core.catalog.base.service.XBCNodeService
      • getSubNodesCount

        public long getSubNodesCount​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getSubNodesCount in interface org.exbin.xbup.core.catalog.base.service.XBCNodeService
      • getSubNodesSeq

        public long getSubNodesSeq​(org.exbin.xbup.core.catalog.base.XBCNode node)
        Specified by:
        getSubNodesSeq in interface org.exbin.xbup.core.catalog.base.service.XBCNodeService