Class LineItemHelper
- Object
-
- LineItemHelper
-
- Direct Known Subclasses:
ContractHelper
,QuoteHelper
public class LineItemHelper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LineItemHelper.LineItem
This class represents either a line item or a folder of a document (e.g.
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>
calculableLineItemCollection
protected Map<String,Object>
idToLineItem
protected Map<String,List<Map<String,Object>>>
parentIdToLineItems
protected LineItemHelper.LineItem
root
-
Constructor Summary
Constructors Constructor Description LineItemHelper(Map<String,Object> calculableLineItemCollection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<LineItemHelper.LineItem>
findAllWithLabel(String label)
LineItemHelper.LineItem
findByLineId(String lineItemId)
LineItemHelper.LineItem
getRoot()
LineItemHelper.LineItem
lineItemFromMap(Map<String,Object> lineItemMap)
Creates the LineItem object from the given map.
-
-
-
Field Detail
-
root
protected final LineItemHelper.LineItem root
-
-
Method Detail
-
lineItemFromMap
public LineItemHelper.LineItem lineItemFromMap(Map<String,Object> lineItemMap)
Creates the LineItem object from the given map. The structure of the map can be found, for example, when reviewing the result of quoteProcessor.getQuoteView()- Parameters:
lineItemMap
-- Returns:
-
findByLineId
public LineItemHelper.LineItem findByLineId(String lineItemId)
-
getRoot
public LineItemHelper.LineItem getRoot()
-
findAllWithLabel
public List<LineItemHelper.LineItem> findAllWithLabel(String label)
-
-