Class QuoteStructure
Object
QuoteStructure
This is a helper object that is used to build up the code-generated content of a quote.
A single QuoteStructure object represents a specified level in the quote folder tree, i.e. it does not represent the full quote if you have multiple subfolder levels.
The level is defined by
The level is defined by
parentId
of the structure object.-
Nested Class Summary
Modifier and TypeClassDescriptionclass
A DTO that holds information about the new item (part or folder) to be created. -
Field Summary
Modifier and TypeFieldDescriptionThe list of items to add in this level of the quoteThe level of the quote. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates and adds a new folderCreates and adds a new folderCreates and adds a new partCreates and adds a new partcreateFolder
(String label) Creates a new folder item, but does not add it to the listcreatePart
(String sku) Creates a new "part" item but does not add it
-
Field Details
-
items
The list of items to add in this level of the quote -
parentId
The level of the quote. If parentId == null then the root level is used
-
-
Constructor Details
-
QuoteStructure
public QuoteStructure()
-
-
Method Details
-
createFolder
Creates a new folder item, but does not add it to the list- Parameters:
label
- The folder label- Returns:
- The new folder
-
addFolder
Creates and adds a new folder- Parameters:
label
- The folder label- Returns:
- The new folder
-
addFolder
Creates and adds a new folder- Parameters:
label
- The folder label- Returns:
- The new folder
-
createPart
Creates a new "part" item but does not add it- Parameters:
sku
- The SKU of the new part- Returns:
- The new item
-
addPart
Creates and adds a new part- Parameters:
sku
- The SKU of the new part- Returns:
- The new item
-
addPart
Creates and adds a new part- Parameters:
sku
- The SKU of the new partinputs
- New inputs of the part- Returns:
- The new item
-