Class LineItemHelper
Object
LineItemHelper
- Direct Known Subclasses:
ContractHelper,QuoteHelper,RebateAgreementHelper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class represents either a line item or a folder of a document (e.g. quote/contract/rebate)static final recordContext information for review workflow.static final recordReview sub-step information. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LineItemHelper.ReviewContextprotected final LineItemHelper.LineItem -
Constructor Summary
ConstructorsConstructorDescriptionLineItemHelper(Map<String, Object> calculableLineItemCollection, LineItemHelper.ReviewContext reviewContext) -
Method Summary
Modifier and TypeMethodDescriptionfindAllWithLabel(String label) findByLineId(String lineItemId) getFlattedInputs(List<Map<String, Object>> inputs) protected List<LineItemHelper.LineItem> This method returns line items that have an active review assignment for the current user's groupgetRoot()lineItemFromMap(Map<String, Object> lineItemMap) Creates the LineItem object from the given map.
-
Field Details
-
calculableLineItemCollection
-
reviewContext
-
parentIdToLineItems
-
idToLineItem
-
root
-
-
Constructor Details
-
LineItemHelper
public LineItemHelper(Map<String, Object> calculableLineItemCollection, LineItemHelper.ReviewContext reviewContext)
-
-
Method Details
-
getFlattedInputs
-
lineItemFromMap
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
-
getRoot
-
findAllWithLabel
-
getItemsForReview
This method returns line items that have an active review assignment for the current user's groupThis method filters all line items to find those that have an active review assignment for the current user group. A line item is considered "for review" when it has a review entry with matching userGroupName and isInReview=true.
- Returns:
- List of LineItem objects for items in the current user's review scope, or empty list if not in review or no items are assigned
-