Class SalesDocumentUtil


  • public class SalesDocumentUtil
    extends java.lang.Object
    • Method Detail

      • copyAttributesOfItem

        public static void copyAttributesOfItem​(Item source,
                                                Item destination)
      • createExtensionMap

        public static java.util.Map<java.lang.String,​java.lang.Object> createExtensionMap​(java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> set)
        Temporary helper method to create a HashMap from incoming Set of key/value-pairs. Method is necessary as long as getExtensionMap is not available in the BusinessObject-interface to transfer an extension map from one object to another one.
        Parameters:
        set - Set of keys/values
        Returns:
        new HashMap with all keys/values of the Set
      • filterPreviousMessages

        public static MessageList filterPreviousMessages​(MessageList bufferedMessges,
                                                         Item modifiedItem)
        keep previous messages except those for current item
      • determineItemsToDelete

        public static java.util.List<TechKey> determineItemsToDelete​(ItemList items)
      • resetItemWithChangedProduct

        public static void resetItemWithChangedProduct​(Item item)
      • addTeckKeyToMessages

        public static void addTeckKeyToMessages​(Item modifiedItem,
                                                MessageList messageList)
        enhance current item messages with current item techKey to keep reference to them in eventual basket modification and update
      • prepareItemWithChangedProduct

        public static void prepareItemWithChangedProduct​(Item item)