Class LineItemHelper.LineItem

Object
LineItem
Enclosing class:
LineItemHelper

public static class LineItemHelper.LineItem extends Object
This class represents either a line item or a folder of a document (e.g. quote/contract/rebate)
  • Field Details

  • Method Details

    • asMap

      public Map<String,Object> asMap()
    • isRoot

      public boolean isRoot()
    • isFolder

      public boolean isFolder()
    • getLabel

      public String getLabel()
    • getLineId

      public String getLineId()
    • getSKU

      public String getSKU()
    • getRebateTypeUN

      public String getRebateTypeUN()
    • getContractTermTypeUN

      public String getContractTermTypeUN()
    • getChildren

      public List<LineItemHelper.LineItem> getChildren()
      Provides list of all children of this folder.
      Returns:
      List of LineItem objects, or empty list, if no children.
    • getSiblings

      public List<LineItemHelper.LineItem> getSiblings()
    • getInputs

      public List<Map<String,Object>> getInputs()
    • getInputByName

      public Map<String,Object> getInputByName(String inputName)
    • getOutputByName

      public Map<String,Object> getOutputByName(String outputName)
    • getOutputs

      public List<Map<String,Object>> getOutputs()
    • getParent

      public LineItemHelper.LineItem getParent()
    • getSubLineItems

      public List<LineItemHelper.LineItem> getSubLineItems()
    • getReviewStatus

      public String getReviewStatus()
      Gets the review status for this line item based on the current user's review context.

      The review status is determined by finding a review entry that matches:

      • The current user's review user group (from ReviewContext)
      • A lineItemGroupId that the current user is a member of (from ReviewContext)
      • Is an active review (isInReview = true)

      The status can be one of:

      • UNREVIEWED - The line item has not been reviewed yet
      • ACCEPTED - The line item has been accepted
      • REJECTED - The line item has been rejected
      • SKIPPED - The line item review was skipped
      Returns:
      The review status string, or null if no matching active review exists