Class RebateAgreementStructure
- Object
-
- RebateAgreementStructure
-
public class RebateAgreementStructure extends Object
This is a helper object that is used to build up code generated content of a Rebate Agreement. A single RebateAgreementStructure object represents a specified level in the rebate agreement folder tree, i.e. it is not representing the full rba if you have multiple subfolder levels
The level is defined byparentId
of the structure object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RebateAgreementStructure.Item
A DTO that holds information about the new item (rebate type or folder) to be created.
-
Field Summary
Fields Modifier and Type Field Description List<RebateAgreementStructure.Item>
items
The list of items to add in this level of the rbaString
parentId
The level of the rba.
-
Constructor Summary
Constructors Constructor Description RebateAgreementStructure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RebateAgreementStructure.Item
addFolder(String label)
Creates and adds a new folderRebateAgreementStructure.Item
addFolder(String label, List<Map<String,Object>> inputs)
Creates and adds a new folderRebateAgreementStructure.Item
addItem(String name)
Creates and adds a new itemRebateAgreementStructure.Item
addItem(String name, List<Map<String,Object>> inputs)
Creates and adds a new itemRebateAgreementStructure.Item
createFolder(String label)
Creates a new folder item, but does not add it to the listRebateAgreementStructure.Item
createItem(String name)
Creates a new "part" item but does not add it
-
-
-
Field Detail
-
items
public List<RebateAgreementStructure.Item> items
The list of items to add in this level of the rba
-
parentId
public String parentId
The level of the rba. If parentId == null then the root level is used
-
-
Method Detail
-
createFolder
public RebateAgreementStructure.Item createFolder(String label)
Creates a new folder item, but does not add it to the list- Parameters:
label
- The folder label- Returns:
- The new folder
-
addFolder
public RebateAgreementStructure.Item addFolder(String label)
Creates and adds a new folder- Parameters:
label
- The folder label- Returns:
- The new folder
-
addFolder
public RebateAgreementStructure.Item addFolder(String label, List<Map<String,Object>> inputs)
Creates and adds a new folder- Parameters:
label
- The folder labelinputs
- New inputs of the folder- Returns:
- The new folder
-
createItem
public RebateAgreementStructure.Item createItem(String name)
Creates a new "part" item but does not add it- Parameters:
name
- The uniqueName of the new Rebate Type- Returns:
- The new item
-
addItem
public RebateAgreementStructure.Item addItem(String name)
Creates and adds a new item- Parameters:
name
- The uniqueName of the new Rebate Type- Returns:
- The new item
-
-