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 classLineItemHelper.LineItemThis 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>calculableLineItemCollectionprotected Map<String,Object>idToLineItemprotected Map<String,List<Map<String,Object>>>parentIdToLineItemsprotected LineItemHelper.LineItemroot
-
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.LineItemfindByLineId(String lineItemId)LineItemHelper.LineItemgetRoot()LineItemHelper.LineItemlineItemFromMap(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)
-
-