Class DefaultQuoteApprovalContributor

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> createRows​(QuoteModel quoteModel)  
      static java.lang.String cutOffZeros​(java.lang.String argument)
      Cuts of the leading zeros for document ID display and document item display.
      java.util.Set<java.lang.String> getColumns()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultQuoteApprovalContributor

        public DefaultQuoteApprovalContributor()
    • Method Detail

      • createRows

        public java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> createRows​(QuoteModel quoteModel)
        Specified by:
        createRows in interface RawItemContributor<QuoteModel>
        Parameters:
        quoteModel - The item model from which parts of the CSV string shall be created
        Returns:
        Name / value pairs. The names must correspond to the column names as returned in RawItemContributor.getColumns(). Each list entry corresponds to one line of the CSV string
      • cutOffZeros

        public static java.lang.String cutOffZeros​(java.lang.String argument)
        Cuts of the leading zeros for document ID display and document item display. If an format exception occurs, the input is returned.
        Parameters:
        argument - the String with leading zeros
        Returns:
        the String without leading zeros