The ClaimableTools
component (/atg/commerce/claimable/ClaimableTools
) provides two pieces of functionality:
Low-level access to the Claimable repository.
Naming for various claimable item properties.
The first use of the ClaimableTools
component is simply to create and claim any type of claimable item. For claiming items, it can obtain any super-type of type claimable
since they all share the same common base type of claimable. Additionally, it takes the item-descriptor type as an argument and then creates and adds the claimable item to the repository.
The second use of the ClaimableTools
component is to provide configurable values for the various properties of claimable items. For example, if someone changes the name of a field in the XML file, you can reflect that change in the code by adjusting the property values of the ClaimableTools
component.