com.retek.component.media.impl
Class SellingSkuImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.media.impl.AbstractMediaThresholdableItem
              extended bycom.retek.component.media.impl.SellingSkuImpl
All Implemented Interfaces:
BusinessObject, com.retek.swing11.commons.type.Displayable, DistributedObject, MediaThresholdableItem, ReceivableItem, SellingSku, ThresholdableItem, Triggerable
Direct Known Subclasses:
PackSellingSkuComponentImpl, PackSellingSkuImpl

public class SellingSkuImpl
extends AbstractMediaThresholdableItem
implements SellingSku


Nested Class Summary
 
Nested classes inherited from class com.retek.commons.component.impl.DistributedObjectImpl
DistributedObjectImpl.DtoBurgular
 
Field Summary
protected  SellableItem sellableItem
           
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.media.SellingSku
ADDL_DOMESTIC_DELIVERY_CHARGE, ADDL_INTL_DELIVERY_CHARGE, DESCRIPTION, MEDIA_PRICE, SHIPPING_METHOD
 
Constructor Summary
SellingSkuImpl(DistributedContext context, DistributedReference reference, boolean createHollow)
           
SellingSkuImpl(DistributedContext context, DistributedReference reference, SellingItem sellingItem, Item item)
           
 
Method Summary
 void addValueAddedService(ValueAddedService valueAddedService)
           
protected  void addValueAddedServiceInstances(java.util.List monogramList, java.util.List personalizationList)
           
protected  void attachValueAddedServices(Sku sku)
           
protected  void copyValueAddedServiceAttributes(ValueAddedServiceImpl valueAddedService, com.retek.component.media.impl.SellingSkuImpl.ItemSupplierAttributeCorrelation correlation, Banner banner)
           
 Money getAdditionalDomesticDeliveryCharge()
           
 Money getAdditionalInternationalDeliveryCharge()
           
 java.lang.String getDescription()
          If Selling Sku's Description is null then get the Sellable ietms description and return it
 java.lang.String getDisplayCode()
           
 java.lang.String getItemDisplayCode()
           
 java.util.Set getMonogramServices()
          This method returns monogram value added services across multiple suppliers for the selling sku.
 java.util.Set getMonogramServices(java.util.Collection itemSuppliers)
          This method returns the monogram value added services for ONLY the specified item supplier for the selling sku.
 java.util.Set getMonogramServices(java.util.Collection itemSuppliers, boolean ignorePersonalizationActiveFlag)
           
 java.util.Set getMonogramServices(ItemSupplier itemSupplier)
          This method returns the monogram value added services for ONLY the specified item supplier for the selling sku.
 java.util.Set getPersonalizationServices()
          This method returns personalization value added services across multiple suppliers for the selling sku.
 java.util.Set getPersonalizationServices(java.util.Collection itemSuppliers)
          This method returns personalization value added services across multiple item suppliers for the selling sku.
 java.util.Set getPersonalizationServices(java.util.Collection itemSuppliers, boolean ignorePersonalizationActiveFlag)
           
 java.util.Set getPersonalizationServices(ItemSupplier itemSupplier)
          This method returns the personalization value added services for ONLY the specified item supplier for the selling sku.
 java.util.Set getPersonalizationServices(ItemSupplier itemSupplier, boolean ignorePersonalizationActiveFlag)
           
 java.util.Set getPersonalizationSuppliers()
           
 Money getRushDeliveryOverideCharge()
           
 SellableItem getSellableItem()
           
 java.lang.String getSellableItemId()
           
 SellingItem getSellingItem()
           
 SellingSkuDto getSellingSkuDto()
           
 Money getSuggestedRetailPrice()
           
 Money getUnitPrice()
           
protected  void initValueAddedServices()
           
 boolean isFeaturedSku()
           
 boolean isGiftCardable()
           
 boolean isGiftServiceable()
           
 boolean isGiftWrappable()
           
 boolean isInventoryNotAvailable()
           
 boolean isPack()
           
 boolean isPartial()
           
 boolean isPersonalizationAvailable()
           
 boolean isSaleItem()
           
 boolean isStandardDeliveryCharge()
           
 boolean match(SellingSku sellingSku)
           
 boolean matchReceiveableItem(ReceivableItem receiveableItem)
           
 boolean matchThresholdableItem(ThresholdableItem thresholdableItem)
           
protected  Dto readLatest()
           
 void setAdditionalDomesticDeliveryCharge(Money additionalCharge)
           
 void setAdditionalInternationalDeliveryCharge(Money additionalInternationalCharge)
           
 void setDescription(java.lang.String description)
           
 void setFeaturedSku(boolean featuredSku)
           
 void setInventoryNotAvailable(boolean inventoryNotAvailable)
           
 void setRushDeliveryOverrideCharge(Money rushDeliveryOverrideCharge)
           
 void setSaleItem(boolean isMarked)
           
 void setSellableItem(SellableItem sItem)
           
 void setStandardDeliveryCharge(boolean isStandardDeliveryCharge)
           
 void setUnitPrice(Money itemUnitPrice)
           
 java.lang.String toDisplayString()
           
 
Methods inherited from class com.retek.component.media.impl.AbstractMediaThresholdableItem
match
 
Methods inherited from class com.retek.commons.component.impl.DistributedObjectImpl
attributesToString, createEmptyDto, debugToString, discardChanges, discardChangesShallow, equals, getGenericDto, getId, getReference, getReference, getVersion, hashCode, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isHollow, isPersisted, markAllDeleted, refresh, toString, wrap, wrap, wrap, wrap
 
Methods inherited from class com.retek.commons.component.impl.BusinessObjectImpl
checkRelation, checkRelation, getBusinessInterface, getContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.retek.commons.component.DistributedObject
debugToString, discardChanges, getContext, getId, getReference, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isPersisted, refresh
 
Methods inherited from interface com.retek.commons.component.BusinessObject
getBusinessInterface
 
Methods inherited from interface com.retek.commons.util.type.Triggerable
getReference
 
Methods inherited from interface com.retek.component.media.ReceivableItem
match
 
Methods inherited from interface com.retek.component.item.ThresholdableItem
match
 

Field Detail

sellableItem

protected SellableItem sellableItem
Constructor Detail

SellingSkuImpl

public SellingSkuImpl(DistributedContext context,
                      DistributedReference reference,
                      boolean createHollow)
               throws SystemException

SellingSkuImpl

public SellingSkuImpl(DistributedContext context,
                      DistributedReference reference,
                      SellingItem sellingItem,
                      Item item)
               throws SystemException,
                      BusinessException
Method Detail

initValueAddedServices

protected void initValueAddedServices()
                               throws SystemException,
                                      BusinessException
Throws:
SystemException
BusinessException

attachValueAddedServices

protected void attachValueAddedServices(Sku sku)
                                 throws SystemException,
                                        BusinessException
Throws:
SystemException
BusinessException

addValueAddedServiceInstances

protected void addValueAddedServiceInstances(java.util.List monogramList,
                                             java.util.List personalizationList)
                                      throws SystemException,
                                             BusinessException
Throws:
SystemException
BusinessException

copyValueAddedServiceAttributes

protected void copyValueAddedServiceAttributes(ValueAddedServiceImpl valueAddedService,
                                               com.retek.component.media.impl.SellingSkuImpl.ItemSupplierAttributeCorrelation correlation,
                                               Banner banner)
                                        throws SystemException,
                                               BusinessException
Throws:
SystemException
BusinessException

getSellingSkuDto

public SellingSkuDto getSellingSkuDto()
                               throws SystemException
Throws:
SystemException

getDescription

public java.lang.String getDescription()
                                throws SystemException
If Selling Sku's Description is null then get the Sellable ietms description and return it

Specified by:
getDescription in interface ReceivableItem
Specified by:
getDescription in class AbstractMediaThresholdableItem
Throws:
SystemException

getDisplayCode

public java.lang.String getDisplayCode()
                                throws SystemException
Specified by:
getDisplayCode in interface SellingSku
Throws:
SystemException

setDescription

public void setDescription(java.lang.String description)
                    throws SystemException
Specified by:
setDescription in interface SellingSku
Throws:
SystemException

getAdditionalDomesticDeliveryCharge

public Money getAdditionalDomesticDeliveryCharge()
                                          throws SystemException
Specified by:
getAdditionalDomesticDeliveryCharge in interface SellingSku
Throws:
SystemException

getAdditionalInternationalDeliveryCharge

public Money getAdditionalInternationalDeliveryCharge()
                                               throws SystemException
Specified by:
getAdditionalInternationalDeliveryCharge in interface SellingSku
Throws:
SystemException

getRushDeliveryOverideCharge

public Money getRushDeliveryOverideCharge()
                                   throws SystemException
Specified by:
getRushDeliveryOverideCharge in interface SellingSku
Throws:
SystemException

getSuggestedRetailPrice

public Money getSuggestedRetailPrice()
                              throws SystemException,
                                     BusinessException
Specified by:
getSuggestedRetailPrice in interface SellingSku
Throws:
SystemException
BusinessException

matchReceiveableItem

public boolean matchReceiveableItem(ReceivableItem receiveableItem)
                             throws SystemException
Specified by:
matchReceiveableItem in interface SellingSku
Throws:
SystemException

matchThresholdableItem

public boolean matchThresholdableItem(ThresholdableItem thresholdableItem)
                               throws SystemException
Specified by:
matchThresholdableItem in interface SellingSku
Throws:
SystemException

setAdditionalDomesticDeliveryCharge

public void setAdditionalDomesticDeliveryCharge(Money additionalCharge)
                                         throws SystemException
Specified by:
setAdditionalDomesticDeliveryCharge in interface SellingSku
Throws:
SystemException

setAdditionalInternationalDeliveryCharge

public void setAdditionalInternationalDeliveryCharge(Money additionalInternationalCharge)
                                              throws SystemException
Specified by:
setAdditionalInternationalDeliveryCharge in interface SellingSku
Throws:
SystemException

setRushDeliveryOverrideCharge

public void setRushDeliveryOverrideCharge(Money rushDeliveryOverrideCharge)
                                   throws SystemException
Specified by:
setRushDeliveryOverrideCharge in interface SellingSku
Throws:
SystemException

isPartial

public boolean isPartial()
                  throws SystemException,
                         BusinessException
Specified by:
isPartial in interface SellingSku
Throws:
SystemException
BusinessException

isFeaturedSku

public boolean isFeaturedSku()
                      throws SystemException
Specified by:
isFeaturedSku in interface SellingSku
Throws:
SystemException

setFeaturedSku

public void setFeaturedSku(boolean featuredSku)
                    throws SystemException
Specified by:
setFeaturedSku in interface SellingSku
Throws:
SystemException

isInventoryNotAvailable

public boolean isInventoryNotAvailable()
                                throws SystemException
Specified by:
isInventoryNotAvailable in interface SellingSku
Throws:
SystemException

setInventoryNotAvailable

public void setInventoryNotAvailable(boolean inventoryNotAvailable)
                              throws SystemException
Specified by:
setInventoryNotAvailable in interface SellingSku
Throws:
SystemException

getUnitPrice

public Money getUnitPrice()
                   throws SystemException,
                          BusinessException
Specified by:
getUnitPrice in interface SellingSku
Throws:
SystemException
BusinessException

setUnitPrice

public void setUnitPrice(Money itemUnitPrice)
                  throws SystemException,
                         BusinessException
Specified by:
setUnitPrice in interface SellingSku
Throws:
SystemException
BusinessException

getSellingItem

public SellingItem getSellingItem()
                           throws SystemException
Specified by:
getSellingItem in interface SellingSku
Throws:
SystemException

setSellableItem

public void setSellableItem(SellableItem sItem)
                     throws SystemException
Throws:
SystemException

getSellableItem

public SellableItem getSellableItem()
                             throws SystemException
Specified by:
getSellableItem in interface SellingSku
Throws:
SystemException

getSellableItemId

public java.lang.String getSellableItemId()
                                   throws SystemException
Specified by:
getSellableItemId in interface SellingSku
Throws:
SystemException

addValueAddedService

public void addValueAddedService(ValueAddedService valueAddedService)
                          throws SystemException
Specified by:
addValueAddedService in interface SellingSku
Throws:
SystemException

getPersonalizationSuppliers

public java.util.Set getPersonalizationSuppliers()
                                          throws SystemException,
                                                 BusinessException
Specified by:
getPersonalizationSuppliers in interface SellingSku
Throws:
SystemException
BusinessException

getMonogramServices

public java.util.Set getMonogramServices()
                                  throws SystemException
Description copied from interface: SellingSku
This method returns monogram value added services across multiple suppliers for the selling sku.

Specified by:
getMonogramServices in interface SellingSku
Returns:
Set of monogram value added services for ALL suppliers
Throws:
SystemException

getPersonalizationServices

public java.util.Set getPersonalizationServices()
                                         throws SystemException
Description copied from interface: SellingSku
This method returns personalization value added services across multiple suppliers for the selling sku.

Specified by:
getPersonalizationServices in interface SellingSku
Returns:
Set of personalization value added services for ALL suppliers
Throws:
SystemException

getMonogramServices

public java.util.Set getMonogramServices(java.util.Collection itemSuppliers,
                                         boolean ignorePersonalizationActiveFlag)
                                  throws SystemException,
                                         BusinessException
Specified by:
getMonogramServices in interface SellingSku
Throws:
SystemException
BusinessException

getMonogramServices

public java.util.Set getMonogramServices(java.util.Collection itemSuppliers)
                                  throws SystemException,
                                         BusinessException
Description copied from interface: SellingSku
This method returns the monogram value added services for ONLY the specified item supplier for the selling sku.

Specified by:
getMonogramServices in interface SellingSku
Returns:
Set of monogram value added services for ONLY the specified item suppliers
Throws:
SystemException
BusinessException

getMonogramServices

public java.util.Set getMonogramServices(ItemSupplier itemSupplier)
                                  throws SystemException,
                                         BusinessException
Description copied from interface: SellingSku
This method returns the monogram value added services for ONLY the specified item supplier for the selling sku.

Specified by:
getMonogramServices in interface SellingSku
Returns:
Set of monogram value added services for ONLY the specified item suppliers
Throws:
SystemException
BusinessException

getPersonalizationServices

public java.util.Set getPersonalizationServices(java.util.Collection itemSuppliers,
                                                boolean ignorePersonalizationActiveFlag)
                                         throws SystemException,
                                                BusinessException
Specified by:
getPersonalizationServices in interface SellingSku
Throws:
SystemException
BusinessException

getPersonalizationServices

public java.util.Set getPersonalizationServices(java.util.Collection itemSuppliers)
                                         throws SystemException,
                                                BusinessException
Description copied from interface: SellingSku
This method returns personalization value added services across multiple item suppliers for the selling sku.

Specified by:
getPersonalizationServices in interface SellingSku
Returns:
Set of personalization value added services for ALL item suppliers that have active personalization
Throws:
SystemException
BusinessException

getPersonalizationServices

public java.util.Set getPersonalizationServices(ItemSupplier itemSupplier,
                                                boolean ignorePersonalizationActiveFlag)
                                         throws SystemException,
                                                BusinessException
Throws:
SystemException
BusinessException

getPersonalizationServices

public java.util.Set getPersonalizationServices(ItemSupplier itemSupplier)
                                         throws SystemException,
                                                BusinessException
Description copied from interface: SellingSku
This method returns the personalization value added services for ONLY the specified item supplier for the selling sku.

Specified by:
getPersonalizationServices in interface SellingSku
Returns:
Set of personalization value added services for ONLY the specified item suppliers
Throws:
SystemException
BusinessException

readLatest

protected Dto readLatest()
                  throws SystemException
Overrides:
readLatest in class DistributedObjectImpl
Throws:
SystemException

isSaleItem

public boolean isSaleItem()
                   throws SystemException
Specified by:
isSaleItem in interface SellingSku
Throws:
SystemException

setSaleItem

public void setSaleItem(boolean isMarked)
                 throws SystemException
Specified by:
setSaleItem in interface SellingSku
Throws:
SystemException

isStandardDeliveryCharge

public boolean isStandardDeliveryCharge()
                                 throws SystemException
Specified by:
isStandardDeliveryCharge in interface SellingSku
Throws:
SystemException

setStandardDeliveryCharge

public void setStandardDeliveryCharge(boolean isStandardDeliveryCharge)
                               throws SystemException
Specified by:
setStandardDeliveryCharge in interface SellingSku
Throws:
SystemException

isPack

public boolean isPack()
               throws SystemException
Specified by:
isPack in interface SellingSku
Throws:
SystemException

isGiftCardable

public boolean isGiftCardable()
                       throws SystemException
Specified by:
isGiftCardable in interface SellingSku
Throws:
SystemException

isGiftServiceable

public boolean isGiftServiceable()
                          throws SystemException
Specified by:
isGiftServiceable in interface SellingSku
Throws:
SystemException

isGiftWrappable

public boolean isGiftWrappable()
                        throws SystemException
Specified by:
isGiftWrappable in interface SellingSku
Throws:
SystemException

isPersonalizationAvailable

public boolean isPersonalizationAvailable()
                                   throws SystemException
Specified by:
isPersonalizationAvailable in interface SellingSku
Throws:
SystemException

getItemDisplayCode

public java.lang.String getItemDisplayCode()
                                    throws SystemException
Specified by:
getItemDisplayCode in interface ReceivableItem
Specified by:
getItemDisplayCode in class AbstractMediaThresholdableItem
Throws:
SystemException

toDisplayString

public java.lang.String toDisplayString()
Specified by:
toDisplayString in interface com.retek.swing11.commons.type.Displayable

match

public boolean match(SellingSku sellingSku)
              throws SystemException
Specified by:
match in interface MediaThresholdableItem
Specified by:
match in class AbstractMediaThresholdableItem
Throws:
SystemException


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28