@Entity public class PriceListImpl extends Object implements PriceList, org.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiable, org.broadleafcommerce.common.admin.domain.AdminMainEntity, PriceListAdminPresentation, org.broadleafcommerce.common.admin.domain.TypedEntity
PriceListAdminPresentation.FieldOrder, PriceListAdminPresentation.GroupName, PriceListAdminPresentation.GroupOrder, PriceListAdminPresentation.TabName, PriceListAdminPresentation.TabOrder| Modifier and Type | Field and Description |
|---|---|
protected Date |
activeEndDate |
protected Date |
activeStartDate |
protected org.broadleafcommerce.common.currency.domain.BroadleafCurrency |
currency |
protected String |
customerQualificationType |
protected String |
friendlyName |
protected Boolean |
hasPromotionMessage |
protected Long |
id |
protected PriceList |
parentPriceList |
protected List<PriceAdjustment> |
priceAdjustmentList |
protected Map<String,PriceListRuleXref> |
priceListMatchRules |
protected String |
priceListType |
protected List<PriceModifier> |
priceModifierList |
protected Long |
priority |
protected List<PriceListPromotionMessageXref> |
promotionMessageXrefs |
protected Boolean |
requireAssignmentToCustomer
Deprecated.
|
protected List<SkuBundleItemPriceData> |
skuBundleItemPriceDataList |
protected List<SkuPriceData> |
skuPriceDataList |
| Constructor and Description |
|---|
PriceListImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkParentPriceListHierarchy() |
<G extends PriceList> |
createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) |
boolean |
equals(Object o) |
Date |
getActiveEndDate()
Returns the active end date of this PriceList.
|
List<org.broadleafcommerce.core.promotionMessage.domain.PromotionMessage> |
getActivePromotionMessagesByPlacement(org.broadleafcommerce.core.promotionMessage.domain.type.PromotionMessagePlacementType placementType)
Returns the active
PromotionMessages for this offer by PromotionMessagePlacementType |
Date |
getActiveStartDate()
Returns the activeStartDate of this PriceList.
|
org.broadleafcommerce.common.currency.domain.BroadleafCurrency |
getCurrency()
Returns the currency associated with this pricelist
|
String |
getCurrencyCode() |
String |
getCustomerQualificationType()
A return value of ALL_CUSTOMERS indicates that the PriceList will only be in play for all customers.
|
String |
getDefaultType() |
String |
getFriendlyName()
Return the friendly name of the PriceList
|
Boolean |
getHasPromotionMessage()
Returns whether or not the PriceList has any associated
PromotionMessages |
Long |
getId()
Returns the unique id for this PriceList
|
String |
getMainEntityName() |
PriceList |
getParentPriceList()
Retuns the parent PriceList if applicable.
|
Map<String,PriceListRuleXref> |
getPriceListMatchRules()
List of Rules that determine if this PriceList should be used.
|
List<PriceModifier> |
getPriceModifierList()
Returns a list of price modifiers based on the priority order
|
Long |
getPriority()
Returns the priority of this PriceList.
|
List<PriceAdjustment> |
getProductOptionPriceAdjustmentList()
Returns the list of
SkuBundleItemPriceData objects which represent the prices that have been
overridden for this PriceList. |
List<org.broadleafcommerce.core.promotionMessage.domain.PromotionMessage> |
getPromotionMessages()
Returns the list of promotion messages associated with this pricelist
|
List<PriceListPromotionMessageXref> |
getPromotionMessageXrefs()
Returns the list of promotion message xrefs associated with this pricelist
|
boolean |
getRequireAssignmentToCustomer()
A return value of true indicates that the PriceList will only be in play if it is directly attached
to a customer (possibly via an account or other custom entity and resolver).
|
List<SkuBundleItemPriceData> |
getSkuBundleItemPriceDataList()
Returns the list of
SkuBundleItemPriceData objects which represent the prices that have been
overridden for this PriceList. |
List<SkuPriceData> |
getSkuPriceDataList()
Returns the list of
SkuPriceData objects which represent the SKU prices that have been overridden for
this PriceList. |
org.broadleafcommerce.common.BroadleafEnumerationType |
getType()
Returns the
PriceListType for this PriceList. |
String |
getTypeFieldName() |
PriceList |
getValidParentPriceList()
Provides a safe way to recursively request parent price lists.
|
int |
hashCode() |
boolean |
isDecendantOf(PriceList parent)
|
void |
setActiveEndDate(Date endDate)
Sets the active end date for the PriceList.
|
void |
setActiveStartDate(Date startDate)
Sets the active start date for the PriceList.
|
void |
setCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
sets the currency associated with this PriceList
|
void |
setCustomerQualificationType(String customerQualificationType)
Setting this to ALL_CUSTOMERS indicates that the PriceList will only be in play for all customers.
|
void |
setFriendlyName(String friendlyName)
Set the friendly name of this PriceList
|
void |
setHasPromotionMessage(Boolean hasPromotionMessage)
Sets whether or not the PriceList has any associated
PromotionMessages |
void |
setId(Long id)
Unique id for this PriceList
|
void |
setParentPriceList(PriceList parentPriceList)
Sets the parent PriceList if applicable.
|
void |
setPriceListMatchRules(Map<String,PriceListRuleXref> priceListMatchRules)
Sets the list of Rules that determine if this PriceList should be used.
|
void |
setPriceModifierList(List<PriceModifier> priceModifierList)
Sets the list of PriceModifiers to use with this PriceList
|
void |
setPriority(Long priority)
If two PriceLists are active for the same PricingContext, than the one with the lowest priority will apply.
|
void |
setProductOptionPriceAdjustmentList(List<PriceAdjustment> productOptionPriceAdjustmentList)
Sets the list of
SkuPriceData objects which represent the SKU prices that have been overridden for
this PriceList. |
void |
setPromotionMessageXrefs(List<PriceListPromotionMessageXref> promotionMessageXrefs)
Sets a list of promotion message xrefs associated with this pricelist
|
void |
setRequireAssignmentToCustomer(boolean requireAssignmentToCustomer)
Setting this to true indicates that the PriceList will only be in play if it is directly attached
to a customer (possibly via an account or other custom entity and resolver).
|
void |
setSkuBundleItemPriceDataList(List<SkuBundleItemPriceData> skuBundleItemPriceDataList)
Sets the list of
SkuPriceData objects which represent the SKU prices that have been overridden for
this PriceList. |
void |
setSkuPriceDataList(List<SkuPriceData> skuPriceDataList)
Sets the list of
SkuPriceData objects which represent the SKU prices that have been overridden for
this PriceList. |
void |
setType(org.broadleafcommerce.common.BroadleafEnumerationType priceListType)
Sets the
PriceListType. |
void |
updateRequireAssignmentToCustomer()
Updates the value of requireAssignmentToCustomer based on the customerQualificationType.
|
protected Long id
protected String priceListType
protected String friendlyName
protected org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency
protected Date activeStartDate
protected Date activeEndDate
protected PriceList parentPriceList
protected Long priority
protected String customerQualificationType
protected Map<String,PriceListRuleXref> priceListMatchRules
protected List<PriceModifier> priceModifierList
protected List<SkuBundleItemPriceData> skuBundleItemPriceDataList
protected List<SkuPriceData> skuPriceDataList
protected List<PriceAdjustment> priceAdjustmentList
@Deprecated protected Boolean requireAssignmentToCustomer
protected Boolean hasPromotionMessage
protected List<PriceListPromotionMessageXref> promotionMessageXrefs
public String getFriendlyName()
PriceListgetFriendlyName in interface PriceListpublic void setFriendlyName(String friendlyName)
PriceListsetFriendlyName in interface PriceListpublic Long getId()
PriceListpublic void setId(Long id)
PriceListpublic org.broadleafcommerce.common.BroadleafEnumerationType getType()
PriceListPriceListType for this PriceList. If null, the returned type will be
PriceListType.STANDARDpublic void setType(org.broadleafcommerce.common.BroadleafEnumerationType priceListType)
PriceListPriceListType.public org.broadleafcommerce.common.currency.domain.BroadleafCurrency getCurrency()
PriceListgetCurrency in interface PriceListpublic void setCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
PriceListsetCurrency in interface PriceListpublic String getCurrencyCode()
getCurrencyCode in interface org.broadleafcommerce.common.currency.util.CurrencyCodeIdentifiablepublic PriceList getParentPriceList()
PriceListgetParentPriceList in interface PriceListpublic void setParentPriceList(PriceList parentPriceList)
PriceListsetParentPriceList in interface PriceListpublic PriceList getValidParentPriceList()
PriceListgetValidParentPriceList in interface PriceListpublic boolean checkParentPriceListHierarchy()
public List<PriceModifier> getPriceModifierList()
PriceListgetPriceModifierList in interface PriceListpublic void setPriceModifierList(List<PriceModifier> priceModifierList)
PriceListsetPriceModifierList in interface PriceListpublic Date getActiveStartDate()
PriceListgetActiveStartDate in interface PriceListpublic void setActiveStartDate(Date startDate)
PriceListsetActiveStartDate in interface PriceListpublic Date getActiveEndDate()
PriceListgetActiveEndDate in interface PriceListpublic void setActiveEndDate(Date endDate)
PriceListsetActiveEndDate in interface PriceListpublic void setPriority(Long priority)
PriceListsetPriority in interface PriceListpublic Long getPriority()
PriceListgetPriority in interface PriceListpublic Map<String,PriceListRuleXref> getPriceListMatchRules()
PriceListgetPriceListMatchRules in interface PriceListpublic void setPriceListMatchRules(Map<String,PriceListRuleXref> priceListMatchRules)
PriceListsetPriceListMatchRules in interface PriceListpublic List<SkuPriceData> getSkuPriceDataList()
PriceListSkuPriceData objects which represent the SKU prices that have been overridden for
this PriceList.getSkuPriceDataList in interface PriceListpublic void setSkuPriceDataList(List<SkuPriceData> skuPriceDataList)
PriceListSkuPriceData objects which represent the SKU prices that have been overridden for
this PriceList.setSkuPriceDataList in interface PriceListpublic List<SkuBundleItemPriceData> getSkuBundleItemPriceDataList()
PriceListSkuBundleItemPriceData objects which represent the prices that have been
overridden for this PriceList.getSkuBundleItemPriceDataList in interface PriceListpublic void setSkuBundleItemPriceDataList(List<SkuBundleItemPriceData> skuBundleItemPriceDataList)
PriceListSkuPriceData objects which represent the SKU prices that have been overridden for
this PriceList.setSkuBundleItemPriceDataList in interface PriceListpublic List<PriceAdjustment> getProductOptionPriceAdjustmentList()
PriceListSkuBundleItemPriceData objects which represent the prices that have been
overridden for this PriceList.getProductOptionPriceAdjustmentList in interface PriceListpublic void setProductOptionPriceAdjustmentList(List<PriceAdjustment> productOptionPriceAdjustmentList)
PriceListSkuPriceData objects which represent the SKU prices that have been overridden for
this PriceList.setProductOptionPriceAdjustmentList in interface PriceListpublic void setRequireAssignmentToCustomer(boolean requireAssignmentToCustomer)
PriceListsetRequireAssignmentToCustomer in interface PriceListpublic boolean getRequireAssignmentToCustomer()
PriceListgetRequireAssignmentToCustomer in interface PriceListpublic void updateRequireAssignmentToCustomer()
PriceListupdateRequireAssignmentToCustomer in interface PriceListpublic String getCustomerQualificationType()
PriceListgetCustomerQualificationType in interface PriceListpublic void setCustomerQualificationType(String customerQualificationType)
PriceListsetCustomerQualificationType in interface PriceListpublic boolean isDecendantOf(PriceList parent)
PriceListPriceList is a parent of this PriceList or
if the passed in PriceList matches this PriceList.isDecendantOf in interface PriceListpublic Boolean getHasPromotionMessage()
PriceListPromotionMessagesgetHasPromotionMessage in interface PriceListpublic void setHasPromotionMessage(Boolean hasPromotionMessage)
PriceListPromotionMessagessetHasPromotionMessage in interface PriceListpublic List<PriceListPromotionMessageXref> getPromotionMessageXrefs()
PriceListgetPromotionMessageXrefs in interface PriceListpublic void setPromotionMessageXrefs(List<PriceListPromotionMessageXref> promotionMessageXrefs)
PriceListsetPromotionMessageXrefs in interface PriceListpublic List<org.broadleafcommerce.core.promotionMessage.domain.PromotionMessage> getPromotionMessages()
PriceListgetPromotionMessages in interface PriceListPromotionMessagespublic List<org.broadleafcommerce.core.promotionMessage.domain.PromotionMessage> getActivePromotionMessagesByPlacement(org.broadleafcommerce.core.promotionMessage.domain.type.PromotionMessagePlacementType placementType)
PriceListPromotionMessages for this offer by PromotionMessagePlacementTypegetActivePromotionMessagesByPlacement in interface PriceListPromotionMessagespublic String getMainEntityName()
getMainEntityName in interface org.broadleafcommerce.common.admin.domain.AdminMainEntitypublic <G extends PriceList> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<PriceList>CloneNotSupportedExceptionpublic String getTypeFieldName()
getTypeFieldName in interface org.broadleafcommerce.common.admin.domain.TypedEntitypublic String getDefaultType()
getDefaultType in interface org.broadleafcommerce.common.admin.domain.TypedEntityCopyright © 2018. All rights reserved.