com.retek.component.media.impl
Class SellingListImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.media.impl.SellingListImpl
All Implemented Interfaces:
BusinessObject, DistributedObject, SellingList

public class SellingListImpl
extends DistributedObjectImpl
implements SellingList


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.SellingList
END_DATE, NAME, SELLING_LIST_ITEM, SELLING_LIST_SORT_ORDER, START_DATE, TRIGGER, TRIGGER_MEDIA, TRIGGER_SELLING_ITEM, TRIGGER_SELLING_SKU, TRIGGER_SKU
 
Constructor Summary
SellingListImpl(DistributedContext context, DistributedReference reference)
           
SellingListImpl(DistributedContext context, DistributedReference reference, boolean createHollow)
           
 
Method Summary
 boolean areTriggersEqual(SellingList that)
           
 java.util.List getAvailableSortedSellingListItems()
           
 Banner getBanner()
           
 ChannelType getChannelType()
           
 SellingListDto getDto()
           
 RDate getEndDate()
           
 java.lang.String getName()
           
 SellingListType getSellingListType()
           
 java.util.List getSortedSellingListItems()
          This is a very expensive operation (e.g.
 SellingListSortOrder getSortOrder()
           
 RDate getStartDate()
           
 SellingListStatus getStatus()
           
 Media getTriggerMedia()
           
 SellingItem getTriggerSellingItem()
           
 SellingSku getTriggerSellingSku()
           
 Sku getTriggerSku()
           
 java.util.Set getUnsortedSellingListItems()
           
 boolean hasSellingListItems()
           
protected  Dto readLatest()
           
 void replaceSellingListItems(java.util.List sellingListItems)
           
 void setBanner(Banner banner)
           
 void setChannelType(ChannelType channelType)
           
 void setEndDate(RDate endDate)
           
 void setName(java.lang.String name)
           
 void setSellingListType(SellingListType sellingListType)
           
 void setSortOrder(SellingListSortOrder sortOrder)
           
 void setStartDate(RDate startDate)
           
 void setTrigger(Media media)
           
 void setTrigger(SellableItem sellableItem)
           
 void setTrigger(SellingItem sellingItem)
           
 void setTrigger(SellingSku sellingSku)
           
 void submit(java.util.List sellingListItems, User user)
           
 
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
 

Constructor Detail

SellingListImpl

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

SellingListImpl

public SellingListImpl(DistributedContext context,
                       DistributedReference reference)
                throws SystemException
Method Detail

getDto

public SellingListDto getDto()
                      throws SystemException
Throws:
SystemException

setBanner

public void setBanner(Banner banner)
               throws SystemException
Throws:
SystemException

setChannelType

public void setChannelType(ChannelType channelType)
                    throws SystemException
Throws:
SystemException

setEndDate

public void setEndDate(RDate endDate)
                throws SystemException
Specified by:
setEndDate in interface SellingList
Throws:
SystemException

setSellingListType

public void setSellingListType(SellingListType sellingListType)
                        throws SystemException
Throws:
SystemException

getSellingListType

public SellingListType getSellingListType()
                                   throws SystemException
Specified by:
getSellingListType in interface SellingList
Throws:
SystemException

setStartDate

public void setStartDate(RDate startDate)
                  throws SystemException
Specified by:
setStartDate in interface SellingList
Throws:
SystemException

setTrigger

public void setTrigger(Media media)
                throws SystemException
Specified by:
setTrigger in interface SellingList
Throws:
SystemException

setTrigger

public void setTrigger(SellingItem sellingItem)
                throws SystemException
Specified by:
setTrigger in interface SellingList
Throws:
SystemException

setTrigger

public void setTrigger(SellingSku sellingSku)
                throws SystemException
Specified by:
setTrigger in interface SellingList
Throws:
SystemException

setTrigger

public void setTrigger(SellableItem sellableItem)
                throws SystemException
Specified by:
setTrigger in interface SellingList
Throws:
SystemException

setSortOrder

public void setSortOrder(SellingListSortOrder sortOrder)
                  throws SystemException
Specified by:
setSortOrder in interface SellingList
Throws:
SystemException

setName

public void setName(java.lang.String name)
             throws SystemException
Specified by:
setName in interface SellingList
Throws:
SystemException

replaceSellingListItems

public void replaceSellingListItems(java.util.List sellingListItems)
                             throws SystemException,
                                    BusinessException
Throws:
SystemException
BusinessException

getStartDate

public RDate getStartDate()
                   throws SystemException
Specified by:
getStartDate in interface SellingList
Throws:
SystemException

getEndDate

public RDate getEndDate()
                 throws SystemException
Specified by:
getEndDate in interface SellingList
Throws:
SystemException

getStatus

public SellingListStatus getStatus()
                            throws SystemException
Specified by:
getStatus in interface SellingList
Throws:
SystemException

getUnsortedSellingListItems

public java.util.Set getUnsortedSellingListItems()
                                          throws SystemException
Specified by:
getUnsortedSellingListItems in interface SellingList
Throws:
SystemException

getSortedSellingListItems

public java.util.List getSortedSellingListItems()
                                         throws SystemException
Description copied from interface: SellingList
This is a very expensive operation (e.g. if the sort order requires inventory info for each item in the list). Use with caution. Consider using SellingList.getUnsortedSellingListItems() instead.

Specified by:
getSortedSellingListItems in interface SellingList
Returns:
the selling list with items sorted according to the SellingListSortOrder.
Throws:
SystemException

getAvailableSortedSellingListItems

public java.util.List getAvailableSortedSellingListItems()
                                                  throws SystemException,
                                                         BusinessException
Specified by:
getAvailableSortedSellingListItems in interface SellingList
Throws:
SystemException
BusinessException

hasSellingListItems

public boolean hasSellingListItems()
                            throws SystemException
Specified by:
hasSellingListItems in interface SellingList
Throws:
SystemException

getTriggerMedia

public Media getTriggerMedia()
                      throws SystemException
Specified by:
getTriggerMedia in interface SellingList
Throws:
SystemException

getTriggerSellingItem

public SellingItem getTriggerSellingItem()
                                  throws SystemException
Specified by:
getTriggerSellingItem in interface SellingList
Throws:
SystemException

getTriggerSellingSku

public SellingSku getTriggerSellingSku()
                                throws SystemException
Specified by:
getTriggerSellingSku in interface SellingList
Throws:
SystemException

getTriggerSku

public Sku getTriggerSku()
                  throws SystemException,
                         BusinessException
Specified by:
getTriggerSku in interface SellingList
Throws:
SystemException
BusinessException

getChannelType

public ChannelType getChannelType()
                           throws SystemException
Specified by:
getChannelType in interface SellingList
Throws:
SystemException

getBanner

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

getSortOrder

public SellingListSortOrder getSortOrder()
                                  throws SystemException
Specified by:
getSortOrder in interface SellingList
Throws:
SystemException

getName

public java.lang.String getName()
                         throws SystemException
Specified by:
getName in interface SellingList
Throws:
SystemException

areTriggersEqual

public boolean areTriggersEqual(SellingList that)
                         throws SystemException,
                                BusinessException
Specified by:
areTriggersEqual in interface SellingList
Throws:
SystemException
BusinessException

submit

public void submit(java.util.List sellingListItems,
                   User user)
            throws SystemException,
                   BusinessException
Specified by:
submit in interface SellingList
Throws:
SystemException
BusinessException

readLatest

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


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