Class ItemBufferImpl

  • All Implemented Interfaces:
    ItemBuffer

    public class ItemBufferImpl
    extends java.lang.Object
    implements ItemBuffer
    Standard implementation for ItemBuffer.
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemBufferImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearERPBuffer()
      Clears the buffer for the ERP state of the document.
      java.util.Map<java.lang.String,​Item> getItemsERPState()
      The list of items which represents the ERP status.
      void init()
      Initialization
      void removeItemERPState​(java.lang.String idAsString)
      Removes item from ERP state map, together with sub items (free goods!)
      void setItemsERPState​(java.util.Map<java.lang.String,​Item> itemsERPState)
      The list of items which represents the ERP status.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ItemBufferImpl

        public ItemBufferImpl()
    • Method Detail

      • init

        public void init()
        Initialization
      • getItemsERPState

        public java.util.Map<java.lang.String,​Item> getItemsERPState()
        Description copied from interface: ItemBuffer
        The list of items which represents the ERP status. We use it to compile a delta to the status we get from the BO layer. Aim is to optimise the LO-API call
        Specified by:
        getItemsERPState in interface ItemBuffer
        Returns:
        list of items
      • setItemsERPState

        public void setItemsERPState​(java.util.Map<java.lang.String,​Item> itemsERPState)
        Description copied from interface: ItemBuffer
        The list of items which represents the ERP status. We use it to compile a delta to the status we get from the BO layer. Aim is to optimise the LO-API call
        Specified by:
        setItemsERPState in interface ItemBuffer
        Parameters:
        itemsERPState - list of items
      • removeItemERPState

        public void removeItemERPState​(java.lang.String idAsString)
        Description copied from interface: ItemBuffer
        Removes item from ERP state map, together with sub items (free goods!)
        Specified by:
        removeItemERPState in interface ItemBuffer
        Parameters:
        idAsString - item ID
      • clearERPBuffer

        public void clearERPBuffer()
        Description copied from interface: ItemBuffer
        Clears the buffer for the ERP state of the document.
        Specified by:
        clearERPBuffer in interface ItemBuffer