com.retek.component.media.impl
Class SellingItemImpl

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.SellingItemImpl
All Implemented Interfaces:
BusinessObject, com.retek.swing11.commons.type.Displayable, DistributedObject, MediaThresholdableItem, ReceivableItem, SellingItem, ThresholdableItem

public class SellingItemImpl
extends AbstractMediaThresholdableItem
implements SellingItem


Nested Class Summary
 
Nested classes inherited from class com.retek.commons.component.impl.DistributedObjectImpl
DistributedObjectImpl.DtoBurgular
 
Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.media.SellingItem
AREA, DELETION, DEPICTION_COLLECTION, DESCRIPTION, DISPLAYCODE, KEY, PAGE_SPREAD, PERCENT_OF_PAGE, PLACEMENT, SELLING_SKU, SKU_DELETION, STATUS_NOT_AVAILABLE, WEB_STORE
 
Constructor Summary
SellingItemImpl(DistributedContext context, DistributedReference reference, boolean createHollow)
           
SellingItemImpl(DistributedContext context, DistributedReference reference, Item item)
           
SellingItemImpl(DistributedContext context, DistributedReference reference, Item item, java.util.Set sellingSkus)
           
SellingItemImpl(DistributedContext context, DistributedReference reference, java.util.Set items)
           
 
Method Summary
 void addItemId(java.lang.String itemId)
           
 void addSellingItemDepiction(SellingItemDepiction sellingItemDepiction)
           
 Banner getBanner()
           
 java.lang.String getClazz()
           
 java.lang.String getDepartment()
           
 java.lang.String getDescription()
           
 java.util.Set getDifferentiators(DifferentiatorType type)
           
 java.util.Collection getDifferentiatorTypes()
           
 java.lang.String getDisplayCode()
           
 SellingItemDto getDto()
           
 java.lang.String getIncorrectDisplayCode()
           
 ItemCollection getItemCollection()
           
 java.lang.String getItemDisplayCode()
           
 java.util.Set getItemIds()
           
 java.util.Set getItems()
           
 Media getMedia()
           
 java.lang.String getMediaSellingItemDisplayCode()
           
 java.lang.String getMediaSellingItemDisplayCodeNoSeparator()
           
 java.lang.String getMediaSellingItemDisplayCodeWithSeparator()
           
 SellableItem getSellableItemBySellingSkuDisplayCode(java.lang.String sellingSkuDisplayCode)
           
 java.util.Set getSellingItemDepictionPageSpreads()
           
 java.util.Set getSellingItemDepictions()
           
 SellingItem getSellingItemJustForUI(SellingSku sku)
           
 java.util.Set getSellingItemsJustForUI()
           
 SellingSku getSellingSkuByDifferentiators(java.util.Set differentiators)
           
 SellingSku getSellingSkuByDisplayCode(java.lang.String displayCode)
           
 java.util.Set getSellingSkus()
           
 java.lang.String getStatus()
           
 java.lang.String getSubclass()
           
 boolean isCareCardIndicator()
          In the future, the implementation should be checking on a String type care card code on this getDto(), which can have a non-null value if one of the items' careInstructionsIndicator is true.
 boolean isMultiItem()
           
 boolean isSalePageIndicator()
           
 boolean isWebStoreItem()
           
 boolean match(SellingSku sellingSku)
           
static java.lang.String parseMediaDisplayCode(java.lang.String mediaSellingItemDisplayNumber)
           
static java.lang.String parseSellingItemDisplayCode(java.lang.String mediaSellingItemDisplayNumber)
           
protected  Dto readLatest()
           
 void remove()
           
 void removeAllSellingItemDepictions()
           
 void removeSellingItemDepiction(SellingItemDepiction depiction)
           
 void removeSellingSkuByDisplayCode(java.lang.String displayCode)
           
 void setDescription(java.lang.String description)
           
 void setIncorrectDisplayCode(java.lang.String sellingItemMisPrintedNumber)
           
 void setMedia(Media media)
           
 void setSalePageIndicator(boolean salePageIndicator)
           
 void setWebStoreItem(boolean webStoreItem)
           
 void submit()
           
 java.lang.String toDisplayString()
           
 void validateDepictions()
           
 
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.component.media.ReceivableItem
match
 
Methods inherited from interface com.retek.component.item.ThresholdableItem
match
 

Constructor Detail

SellingItemImpl

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

SellingItemImpl

public SellingItemImpl(DistributedContext context,
                       DistributedReference reference,
                       Item item)
                throws SystemException,
                       BusinessException

SellingItemImpl

public SellingItemImpl(DistributedContext context,
                       DistributedReference reference,
                       Item item,
                       java.util.Set sellingSkus)
                throws SystemException,
                       BusinessException

SellingItemImpl

public SellingItemImpl(DistributedContext context,
                       DistributedReference reference,
                       java.util.Set items)
                throws SystemException,
                       BusinessException
Method Detail

getDto

public SellingItemDto getDto()
                      throws SystemException
Throws:
SystemException

getSellingItemsJustForUI

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

getSellingItemJustForUI

public SellingItem getSellingItemJustForUI(SellingSku sku)
                                    throws SystemException,
                                           BusinessException
Specified by:
getSellingItemJustForUI in interface SellingItem
Throws:
SystemException
BusinessException

submit

public void submit()
            throws SystemException,
                   BusinessException
Specified by:
submit in interface SellingItem
Throws:
SystemException
BusinessException

remove

public void remove()
            throws SystemException,
                   BusinessException
Specified by:
remove in interface SellingItem
Throws:
SystemException
BusinessException

getDisplayCode

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

getMediaSellingItemDisplayCode

public java.lang.String getMediaSellingItemDisplayCode()
                                                throws SystemException
Specified by:
getMediaSellingItemDisplayCode in interface SellingItem
Throws:
SystemException

getMediaSellingItemDisplayCodeNoSeparator

public java.lang.String getMediaSellingItemDisplayCodeNoSeparator()
                                                           throws SystemException
Specified by:
getMediaSellingItemDisplayCodeNoSeparator in interface SellingItem
Throws:
SystemException

getMediaSellingItemDisplayCodeWithSeparator

public java.lang.String getMediaSellingItemDisplayCodeWithSeparator()
                                                             throws SystemException
Specified by:
getMediaSellingItemDisplayCodeWithSeparator in interface SellingItem
Throws:
SystemException

getMedia

public Media getMedia()
               throws SystemException
Specified by:
getMedia in interface SellingItem
Throws:
SystemException

getBanner

public Banner getBanner()
                 throws SystemException
Specified by:
getBanner in interface SellingItem
Throws:
SystemException

getDifferentiatorTypes

public java.util.Collection getDifferentiatorTypes()
                                            throws SystemException,
                                                   BusinessException
Specified by:
getDifferentiatorTypes in interface SellingItem
Throws:
SystemException
BusinessException

getDifferentiators

public java.util.Set getDifferentiators(DifferentiatorType type)
                                 throws SystemException
Specified by:
getDifferentiators in interface SellingItem
Throws:
SystemException

getItemCollection

public ItemCollection getItemCollection()
                                 throws SystemException,
                                        BusinessException
Specified by:
getItemCollection in interface SellingItem
Throws:
SystemException
BusinessException

getDepartment

public java.lang.String getDepartment()
                               throws SystemException,
                                      BusinessException
Specified by:
getDepartment in interface SellingItem
Throws:
SystemException
BusinessException

getStatus

public java.lang.String getStatus()
                           throws SystemException,
                                  BusinessException
Specified by:
getStatus in interface SellingItem
Throws:
SystemException
BusinessException

getSubclass

public java.lang.String getSubclass()
                             throws SystemException,
                                    BusinessException
Specified by:
getSubclass in interface SellingItem
Throws:
SystemException
BusinessException

getClazz

public java.lang.String getClazz()
                          throws SystemException,
                                 BusinessException
Specified by:
getClazz in interface SellingItem
Throws:
SystemException
BusinessException

isWebStoreItem

public boolean isWebStoreItem()
                       throws SystemException
Specified by:
isWebStoreItem in interface SellingItem
Throws:
SystemException

isSalePageIndicator

public boolean isSalePageIndicator()
                            throws SystemException
Specified by:
isSalePageIndicator in interface SellingItem
Throws:
SystemException

isMultiItem

public boolean isMultiItem()
                    throws SystemException
Specified by:
isMultiItem in interface SellingItem
Throws:
SystemException

getSellingSkus

public java.util.Set getSellingSkus()
                             throws SystemException
Specified by:
getSellingSkus in interface SellingItem
Throws:
SystemException

getItems

public java.util.Set getItems()
                       throws SystemException
Specified by:
getItems in interface SellingItem
Throws:
SystemException

removeSellingSkuByDisplayCode

public void removeSellingSkuByDisplayCode(java.lang.String displayCode)
                                   throws SystemException,
                                          BusinessException
Specified by:
removeSellingSkuByDisplayCode in interface SellingItem
Throws:
SystemException
BusinessException

setMedia

public void setMedia(Media media)
              throws SystemException,
                     BusinessException
Specified by:
setMedia in interface SellingItem
Throws:
SystemException
BusinessException

setSalePageIndicator

public void setSalePageIndicator(boolean salePageIndicator)
                          throws SystemException
Specified by:
setSalePageIndicator in interface SellingItem
Throws:
SystemException

setWebStoreItem

public void setWebStoreItem(boolean webStoreItem)
                     throws SystemException
Specified by:
setWebStoreItem in interface SellingItem
Throws:
SystemException

getSellingSkuByDisplayCode

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

getSellingSkuByDifferentiators

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

getItemIds

public java.util.Set getItemIds()
                         throws SystemException
Specified by:
getItemIds in interface SellingItem
Throws:
SystemException

addItemId

public void addItemId(java.lang.String itemId)
               throws SystemException
Specified by:
addItemId in interface SellingItem
Throws:
SystemException

getIncorrectDisplayCode

public java.lang.String getIncorrectDisplayCode()
                                         throws SystemException
Specified by:
getIncorrectDisplayCode in interface SellingItem
Throws:
SystemException

setIncorrectDisplayCode

public void setIncorrectDisplayCode(java.lang.String sellingItemMisPrintedNumber)
                             throws MediaBusinessException,
                                    SystemException
Specified by:
setIncorrectDisplayCode in interface SellingItem
Throws:
MediaBusinessException
SystemException

getSellableItemBySellingSkuDisplayCode

public SellableItem getSellableItemBySellingSkuDisplayCode(java.lang.String sellingSkuDisplayCode)
                                                    throws SystemException,
                                                           BusinessException
Specified by:
getSellableItemBySellingSkuDisplayCode in interface SellingItem
Throws:
SystemException
BusinessException

getSellingItemDepictions

public java.util.Set getSellingItemDepictions()
                                       throws SystemException
Specified by:
getSellingItemDepictions in interface SellingItem
Throws:
SystemException

getSellingItemDepictionPageSpreads

public java.util.Set getSellingItemDepictionPageSpreads()
                                                 throws SystemException
Specified by:
getSellingItemDepictionPageSpreads in interface SellingItem
Throws:
SystemException

addSellingItemDepiction

public void addSellingItemDepiction(SellingItemDepiction sellingItemDepiction)
                             throws SystemException
Specified by:
addSellingItemDepiction in interface SellingItem
Throws:
SystemException

removeSellingItemDepiction

public void removeSellingItemDepiction(SellingItemDepiction depiction)
                                throws SystemException
Specified by:
removeSellingItemDepiction in interface SellingItem
Throws:
SystemException

removeAllSellingItemDepictions

public void removeAllSellingItemDepictions()
                                    throws SystemException
Specified by:
removeAllSellingItemDepictions in interface SellingItem
Throws:
SystemException

validateDepictions

public void validateDepictions()
                        throws BusinessException,
                               SystemException
Specified by:
validateDepictions in interface SellingItem
Throws:
BusinessException
SystemException

isCareCardIndicator

public boolean isCareCardIndicator()
                            throws SystemException,
                                   BusinessException
In the future, the implementation should be checking on a String type care card code on this getDto(), which can have a non-null value if one of the items' careInstructionsIndicator is true.

Specified by:
isCareCardIndicator in interface SellingItem
Throws:
SystemException
BusinessException

getDescription

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

setDescription

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

readLatest

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

parseMediaDisplayCode

public static java.lang.String parseMediaDisplayCode(java.lang.String mediaSellingItemDisplayNumber)
                                              throws InvalidSellingItemDisplayNumberFormatException
Throws:
InvalidSellingItemDisplayNumberFormatException

parseSellingItemDisplayCode

public static java.lang.String parseSellingItemDisplayCode(java.lang.String mediaSellingItemDisplayNumber)
                                                    throws InvalidSellingItemDisplayNumberFormatException
Throws:
InvalidSellingItemDisplayNumberFormatException

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