Interface OrderMultishipOption
- All Superinterfaces:
MultiTenantCloneable<OrderMultishipOption>
- All Known Implementing Classes:
OrderMultishipOptionImpl
Represents a given set of options for an OrderItem in an Order in the
multiship context. This class is used to store current multiship settings
for an Order without having to generate the necessary FulfillmentGroups and
FulfillmentGroupItems. It also can be used to re-create the multiship set
should the Order change
- Author:
- Andre Azzolini (apazzolini)
-
Method Summary
Modifier and TypeMethodDescriptionGets the associated Address with this OrderMultishipOptionGets the associated FulfillmentOption with this OrderMultishipOptiongetId()Returns the internal id of this OrderMultishipOptiongetOrder()Returns the Order associated with this OrderMultishipOptionGets the OrderItem associated with this OrderMultishipOption.voidsetAddress(Address address) Sets the associated Address with this OrderMultishipOptionvoidsetFulfillmentOption(FulfillmentOption fulfillmentOption) Sets the associated FulfillmentOption with this OrderMultishipOptionvoidSets the internal id of this OrderMultishipOptionvoidSets the associated Order with this OrderMultishipOptionvoidsetOrderItem(OrderItem orderItem) Sets the associated OrderItem with this OrderMultishipOptionMethods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Long getId()Returns the internal id of this OrderMultishipOption- Returns:
- the internal id
-
setId
Sets the internal id of this OrderMultishipOption- Parameters:
id- the internal id
-
getOrder
Order getOrder()Returns the Order associated with this OrderMultishipOption- Returns:
- the associated Order
-
setOrder
Sets the associated Order with this OrderMultishipOption- Parameters:
order- the associated order
-
getOrderItem
OrderItem getOrderItem()Gets the OrderItem associated with this OrderMultishipOption. Note that the default Broadleaf implementation will produce an equal number of instances of OrderMultishipOption to the quantity of the OrderItem- Returns:
- the associated OrderItem
-
setOrderItem
Sets the associated OrderItem with this OrderMultishipOption- Parameters:
orderItem- the associated OrderItem- See Also:
-
getAddress
Address getAddress()Gets the associated Address with this OrderMultishipOption- Returns:
- the associated Address
-
setAddress
Sets the associated Address with this OrderMultishipOption- Parameters:
address- the associated Address
-
getFulfillmentOption
FulfillmentOption getFulfillmentOption()Gets the associated FulfillmentOption with this OrderMultishipOption- Returns:
- the associated FulfillmentOption
-
setFulfillmentOption
Sets the associated FulfillmentOption with this OrderMultishipOption- Parameters:
fulfillmentOption- the associated FulfillmentOption
-