Class DefaultQuoteApprovalContributor
- java.lang.Object
-
- de.hybris.platform.sap.c4c.quote.outbound.impl.DefaultQuoteApprovalContributor
-
- All Implemented Interfaces:
RawItemContributor<QuoteModel>
public class DefaultQuoteApprovalContributor extends java.lang.Object implements RawItemContributor<QuoteModel>
-
-
Constructor Summary
Constructors Constructor Description 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.StringcutOffZeros(java.lang.String argument)Cuts of the leading zeros for document ID display and document item display.java.util.Set<java.lang.String>getColumns()
-
-
-
Method Detail
-
getColumns
public java.util.Set<java.lang.String> getColumns()
- Specified by:
getColumnsin interfaceRawItemContributor<QuoteModel>- Returns:
- Columns to be included in the CSV string
-
createRows
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> createRows(QuoteModel quoteModel)
- Specified by:
createRowsin interfaceRawItemContributor<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
-
-