Class XBERevService

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

    @ParametersAreNonnullByDefault
    @Service
    public class XBERevService
    extends XBEDefaultService<org.exbin.xbup.core.catalog.base.XBCRev>
    implements org.exbin.xbup.core.catalog.base.service.XBCRevService, java.io.Serializable
    Interface for XBERev 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
      org.exbin.xbup.core.catalog.base.XBCRev createRev​(org.exbin.xbup.core.catalog.base.XBCSpec spec)  
      long findMaxRevXB​(org.exbin.xbup.core.catalog.base.XBCSpec spec)  
      XBERev findRevByXB​(org.exbin.xbup.core.catalog.base.XBCSpec spec, long xbIndex)  
      XBERev getRev​(org.exbin.xbup.core.catalog.base.XBCSpec spec, long index)  
      java.util.List<org.exbin.xbup.core.catalog.base.XBCRev> getRevs​(org.exbin.xbup.core.catalog.base.XBCSpec spec)  
      long getRevsCount​(org.exbin.xbup.core.catalog.base.XBCSpec spec)  
      long getRevsLimitSum​(org.exbin.xbup.core.catalog.base.XBCSpec spec, long revision)  
      void init()  
      void removeItemDepth​(org.exbin.xbup.core.catalog.base.XBCRev rev)  
      • 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

      • XBERevService

        public XBERevService()
      • XBERevService

        public XBERevService​(XBECatalog catalog)
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • findRevByXB

        public XBERev findRevByXB​(org.exbin.xbup.core.catalog.base.XBCSpec spec,
                                  long xbIndex)
        Specified by:
        findRevByXB in interface org.exbin.xbup.core.catalog.base.service.XBCRevService
      • getRev

        public XBERev getRev​(org.exbin.xbup.core.catalog.base.XBCSpec spec,
                             long index)
        Specified by:
        getRev in interface org.exbin.xbup.core.catalog.base.service.XBCRevService
      • getRevs

        public java.util.List<org.exbin.xbup.core.catalog.base.XBCRev> getRevs​(org.exbin.xbup.core.catalog.base.XBCSpec spec)
        Specified by:
        getRevs in interface org.exbin.xbup.core.catalog.base.service.XBCRevService
      • getRevsCount

        public long getRevsCount​(org.exbin.xbup.core.catalog.base.XBCSpec spec)
        Specified by:
        getRevsCount in interface org.exbin.xbup.core.catalog.base.service.XBCRevService
      • findMaxRevXB

        public long findMaxRevXB​(org.exbin.xbup.core.catalog.base.XBCSpec spec)
        Specified by:
        findMaxRevXB in interface org.exbin.xbup.core.catalog.base.service.XBCRevService
      • removeItemDepth

        public void removeItemDepth​(org.exbin.xbup.core.catalog.base.XBCRev rev)
        Specified by:
        removeItemDepth in interface org.exbin.xbup.core.catalog.base.service.XBCRevService
      • createRev

        public org.exbin.xbup.core.catalog.base.XBCRev createRev​(org.exbin.xbup.core.catalog.base.XBCSpec spec)
        Specified by:
        createRev in interface org.exbin.xbup.core.catalog.base.service.XBCRevService
      • getRevsLimitSum

        public long getRevsLimitSum​(org.exbin.xbup.core.catalog.base.XBCSpec spec,
                                    long revision)
        Specified by:
        getRevsLimitSum in interface org.exbin.xbup.core.catalog.base.service.XBCRevService