org.broadleafcommerce.core.order.domain
Class FulfillmentOptionImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.domain.FulfillmentOptionImpl
All Implemented Interfaces:
Serializable, FulfillmentOption
Direct Known Subclasses:
BandedPriceFulfillmentOptionImpl, BandedWeightFulfillmentOptionImpl, FixedPriceFulfillmentOptionImpl

@Entity
public class FulfillmentOptionImpl
extends Object
implements FulfillmentOption

See Also:
Serialized Form

Field Summary
protected  String fulfillmentType
           
protected  Long id
           
protected  String longDescription
           
protected  String name
           
protected  Boolean useFlatRates
           
 
Constructor Summary
FulfillmentOptionImpl()
           
 
Method Summary
 boolean equals(Object o)
           
 FulfillmentType getFulfillmentType()
          Gets the type of fulfillment that this option supports
 Long getId()
           
 String getLongDescription()
          Gets the long description for this option which can be shown to the user to provide more information about the option they are selecting.
 String getName()
          Gets the name displayed to the user when they selected the FulfillmentOption for their order.
 Boolean getUseFlatRates()
          Tells the FulfillmentPricingProvider whether it should try to use the flat rate cost for a Sku rather than try to factor that Sku into its shipping calculation.
 int hashCode()
           
 void setFulfillmentType(FulfillmentType fulfillmentType)
          Sets the type of fulfillment that this option supports
 void setId(Long id)
           
 void setLongDescription(String longDescription)
          Sets the long description for this option to show to the user when they select an option for fulfilling their order
 void setName(String name)
          Set the display name for this option that will be shown to the user to select from such as "2-day" or "Express" or "Super-saver shipping"
 void setUseFlatRates(Boolean useFlatRates)
          Tells the FulfillmentPricingProvider whether it should try to use the flat rate cost for a Sku rather than try to factor that Sku into its shipping calculation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

name

protected String name

longDescription

protected String longDescription

useFlatRates

protected Boolean useFlatRates

fulfillmentType

protected String fulfillmentType
Constructor Detail

FulfillmentOptionImpl

public FulfillmentOptionImpl()
Method Detail

getId

public Long getId()
Specified by:
getId in interface FulfillmentOption

setId

public void setId(Long id)
Specified by:
setId in interface FulfillmentOption

getName

public String getName()
Description copied from interface: FulfillmentOption
Gets the name displayed to the user when they selected the FulfillmentOption for their order. This might be "2-day" or "Super-saver shipping"

Specified by:
getName in interface FulfillmentOption
Returns:
the display name for this option

setName

public void setName(String name)
Description copied from interface: FulfillmentOption
Set the display name for this option that will be shown to the user to select from such as "2-day" or "Express" or "Super-saver shipping"

Specified by:
setName in interface FulfillmentOption
Parameters:
name - - the display name for this option

getLongDescription

public String getLongDescription()
Description copied from interface: FulfillmentOption
Gets the long description for this option which can be shown to the user to provide more information about the option they are selecting. An example might be that this is shipped the next business day or that it requires additional processing time

Specified by:
getLongDescription in interface FulfillmentOption
Returns:
the description to display to the user

setLongDescription

public void setLongDescription(String longDescription)
Description copied from interface: FulfillmentOption
Sets the long description for this option to show to the user when they select an option for fulfilling their order

Specified by:
setLongDescription in interface FulfillmentOption
Parameters:
longDescription - - the description to show to the user

getUseFlatRates

public Boolean getUseFlatRates()
Description copied from interface: FulfillmentOption
Tells the FulfillmentPricingProvider whether it should try to use the flat rate cost for a Sku rather than try to factor that Sku into its shipping calculation. This defaults to true

Specified by:
getUseFlatRates in interface FulfillmentOption
Returns:
true if the FulfillmentPricingProvider should use the flat rate on a Sku when it's available rather than try to calculate shipping for it, false otherwise. Default value is true

setUseFlatRates

public void setUseFlatRates(Boolean useFlatRates)
Description copied from interface: FulfillmentOption
Tells the FulfillmentPricingProvider whether it should try to use the flat rate cost for a Sku rather than try to factor that Sku into its shipping calculation

Specified by:
setUseFlatRates in interface FulfillmentOption

getFulfillmentType

public FulfillmentType getFulfillmentType()
Description copied from interface: FulfillmentOption
Gets the type of fulfillment that this option supports

Specified by:
getFulfillmentType in interface FulfillmentOption
Returns:
the type of this option

setFulfillmentType

public void setFulfillmentType(FulfillmentType fulfillmentType)
Description copied from interface: FulfillmentOption
Sets the type of fulfillment that this option supports

Specified by:
setFulfillmentType in interface FulfillmentOption

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012. All Rights Reserved.