com.retek.component.supplier.impl
Class SupplierImpl

java.lang.Object
  extended bycom.retek.commons.domain.core.impl.BusinessObjectImpl
      extended bycom.retek.component.supplier.impl.SupplierImpl
All Implemented Interfaces:
BusinessObject, java.lang.Comparable, com.retek.swing11.commons.type.Displayable, Supplier, SupplierRib

public class SupplierImpl
extends BusinessObjectImpl
implements Supplier, SupplierRib


Field Summary
 
Fields inherited from interface com.retek.component.supplier.Supplier
ADDRESS_CITY, ADDRESS_COUNTRY, ADDRESS_LINE_1, CALL_SCHEDULE_CONTACT_LEVEL, LOCATIONS, SEQUENCE_NUMBER
 
Constructor Summary
SupplierImpl(DistributedContext context, SupplierDto dto)
           
 
Method Summary
 void addCallSchedule(SupplierCallSchedule callSchedule)
           
 void addContactMethod(SupplierContactMethod supplierContactMethod)
           
 void addLocation(SupplierLocation location)
           
 void addPersonalizationColor(PersonalizationColor newColor)
           
 void addPersonalizationFont(PersonalizationFont newFont)
           
 void addPersonalizationRestrictedCharacter(java.lang.Character character)
           
 void addSupplierPersonalizationStyleType(PersonalizationStyleType supplierPersonalizationType)
           
 void clearContactMethods()
           
 SupplierCallSchedule findCallSchedule(ContactDayType contactDayType)
           
 java.util.Set getAllCallSchedules()
           
 java.util.Set getAllContactMethods()
           
 java.util.Set getAllLocations()
           
 java.util.Set getAllPoDeliveryContactMethods()
           
 java.lang.String getContactFax()
           
 java.lang.String getContactName()
           
 java.lang.String getContactPhone()
           
 DistributedContext getContext()
           
 java.lang.String getCurrencyCode()
           
 java.lang.Integer getDefaultItemLeadTime()
           
 java.lang.String getDescription()
           
 java.lang.String getDirectShipPoLevel()
           
 java.lang.String getDirectShipPoLines()
           
 AbstractDto getDto()
           
 boolean getGiftWrapIndicator()
           
 java.lang.String getLanguage()
           
 SupplierLocation getLocationByRibId(SupplierLocationType type, java.lang.String sequenceNumber)
           
 java.lang.String getName()
           
 boolean getOrderTypeSeparateIndicator()
           
 java.lang.String getPaymentMethod()
           
 java.util.Set getPersonalizationColors()
           
 java.util.Set getPersonalizationFonts()
           
 java.util.Set getPersonalizationRestrictedCharacters()
           
 boolean getPersonalizationSeparateIndicator()
           
 java.util.Set getPersonalizationStyleTypes()
           
 SupplierLocation getPrimaryLocationForLocationType(SupplierLocationType supplierLocationType)
           
 SupplierContactMethod getPrimaryPoDeliveryContactMethod()
           
 java.lang.String getReturnCourier()
           
 Money getReturnMinimumDollarAmount()
           
 java.lang.String getShippingMethod()
           
 SupplierContactMethod getSupplierContactMethod(java.lang.String id)
           
 SupplierStatus getSupplierStatus()
           
 java.lang.String getTerms()
           
 java.lang.String getUnitsPerDirectShipContact()
           
 boolean isBackorderAccepted()
           
 boolean isDirectShip()
           
 boolean isRestrictedCharacter(java.lang.Character c)
           
 boolean isReturnAllowed()
           
 boolean removePersonalizationColor(PersonalizationColor color)
           
 boolean removePersonalizationFont(PersonalizationFont font)
           
 boolean removePersonalizationRestrictedCharacter(java.lang.Character character)
           
 boolean removePersonalizationStyleType(PersonalizationStyleType styleType)
           
 void setBackorderAccepted(boolean backorderIndicator)
           
 void setCallSchedules(java.util.Set contactDays)
          Creates a call schedule for each contact day in the passed set.
 void setContactFax(java.lang.String contactFax)
           
 void setContactName(java.lang.String contactName)
           
 void setContactPhone(java.lang.String contactPhone)
           
 void setCurrencyCode(java.lang.String currencyCode)
           
 void setDefaultItemLeadTime(java.lang.Integer defaultItemLeadTime)
           
 void setDirectShipPoLevel(java.lang.String directShipPoLevel)
           
 void setDirectShipPoLines(java.lang.String directShipPoLines)
           
 void setGiftWrapIndicator(boolean giftWrapIndicator)
           
 void setLanguage(java.lang.String language)
           
 void setName(java.lang.String name)
           
 void setOrderTypeSeparateIndicator(boolean orderTypeSeparateIndicator)
           
 void setPaymentMethod(java.lang.String paymentMethod)
           
 void setPersonalizationSeparateIndicator(boolean personalizationSeparateIndicator)
           
 void setPrimaryLocationForLocationType(SupplierLocation location)
           
 void setPrimaryPoDeliveryContactMethod(SupplierContactMethod method)
           
 void setReturnAllowed(boolean returnAllowIndicator)
           
 void setReturnCourier(java.lang.String returnCourier)
           
 void setReturnMinimumDollarAmount(Money returnMinimumDollarAmount)
           
 void setShippingMethod(java.lang.String shippingMethod)
           
 void setSupplierStatus(SupplierStatus supplierStatus)
           
 void setTerms(java.lang.String terms)
           
 void setUnitsPerDirectShipContact(java.lang.String unitsPerDirectShipContact)
           
 void submit()
           
 java.lang.String toDisplayString()
           
 
Methods inherited from class com.retek.commons.domain.core.impl.BusinessObjectImpl
compareTo, equals, getId, hashCode, isPersisted, isValid, setDescription, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.retek.component.supplier.Supplier
isPersisted
 
Methods inherited from interface com.retek.commons.domain.core.BusinessObject
getId
 

Constructor Detail

SupplierImpl

public SupplierImpl(DistributedContext context,
                    SupplierDto dto)
Method Detail

getContext

public DistributedContext getContext()

getName

public java.lang.String getName()
Specified by:
getName in interface Supplier

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Supplier
Overrides:
getDescription in class BusinessObjectImpl

isBackorderAccepted

public boolean isBackorderAccepted()
Specified by:
isBackorderAccepted in interface Supplier

getContactFax

public java.lang.String getContactFax()
Specified by:
getContactFax in interface Supplier

getContactName

public java.lang.String getContactName()
Specified by:
getContactName in interface Supplier

getContactPhone

public java.lang.String getContactPhone()
Specified by:
getContactPhone in interface Supplier

getCurrencyCode

public java.lang.String getCurrencyCode()
Specified by:
getCurrencyCode in interface Supplier

getDefaultItemLeadTime

public java.lang.Integer getDefaultItemLeadTime()
Specified by:
getDefaultItemLeadTime in interface Supplier

getLanguage

public java.lang.String getLanguage()
Specified by:
getLanguage in interface Supplier

getPaymentMethod

public java.lang.String getPaymentMethod()
Specified by:
getPaymentMethod in interface Supplier

isReturnAllowed

public boolean isReturnAllowed()
Specified by:
isReturnAllowed in interface Supplier

getReturnCourier

public java.lang.String getReturnCourier()
Specified by:
getReturnCourier in interface Supplier

getReturnMinimumDollarAmount

public Money getReturnMinimumDollarAmount()
Specified by:
getReturnMinimumDollarAmount in interface Supplier

getShippingMethod

public java.lang.String getShippingMethod()
Specified by:
getShippingMethod in interface Supplier

getSupplierStatus

public SupplierStatus getSupplierStatus()
Specified by:
getSupplierStatus in interface Supplier

getTerms

public java.lang.String getTerms()
Specified by:
getTerms in interface Supplier

getDirectShipPoLevel

public java.lang.String getDirectShipPoLevel()
Specified by:
getDirectShipPoLevel in interface Supplier

getDirectShipPoLines

public java.lang.String getDirectShipPoLines()
Specified by:
getDirectShipPoLines in interface Supplier

getGiftWrapIndicator

public boolean getGiftWrapIndicator()
Specified by:
getGiftWrapIndicator in interface Supplier

getOrderTypeSeparateIndicator

public boolean getOrderTypeSeparateIndicator()
Specified by:
getOrderTypeSeparateIndicator in interface Supplier

getPersonalizationSeparateIndicator

public boolean getPersonalizationSeparateIndicator()
Specified by:
getPersonalizationSeparateIndicator in interface Supplier

getAllContactMethods

public java.util.Set getAllContactMethods()
Specified by:
getAllContactMethods in interface Supplier

getAllPoDeliveryContactMethods

public java.util.Set getAllPoDeliveryContactMethods()
Specified by:
getAllPoDeliveryContactMethods in interface Supplier

getPrimaryPoDeliveryContactMethod

public SupplierContactMethod getPrimaryPoDeliveryContactMethod()
Specified by:
getPrimaryPoDeliveryContactMethod in interface Supplier

getUnitsPerDirectShipContact

public java.lang.String getUnitsPerDirectShipContact()
Specified by:
getUnitsPerDirectShipContact in interface Supplier

getAllLocations

public java.util.Set getAllLocations()
Specified by:
getAllLocations in interface Supplier

getPrimaryLocationForLocationType

public SupplierLocation getPrimaryLocationForLocationType(SupplierLocationType supplierLocationType)
Specified by:
getPrimaryLocationForLocationType in interface Supplier

getLocationByRibId

public SupplierLocation getLocationByRibId(SupplierLocationType type,
                                           java.lang.String sequenceNumber)
Specified by:
getLocationByRibId in interface SupplierRib

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Supplier

setBackorderAccepted

public void setBackorderAccepted(boolean backorderIndicator)
Specified by:
setBackorderAccepted in interface Supplier

setContactFax

public void setContactFax(java.lang.String contactFax)
Specified by:
setContactFax in interface Supplier

setContactName

public void setContactName(java.lang.String contactName)
Specified by:
setContactName in interface Supplier

setContactPhone

public void setContactPhone(java.lang.String contactPhone)
Specified by:
setContactPhone in interface Supplier

setCurrencyCode

public void setCurrencyCode(java.lang.String currencyCode)
Specified by:
setCurrencyCode in interface Supplier

setDefaultItemLeadTime

public void setDefaultItemLeadTime(java.lang.Integer defaultItemLeadTime)
Specified by:
setDefaultItemLeadTime in interface Supplier

setLanguage

public void setLanguage(java.lang.String language)
Specified by:
setLanguage in interface Supplier

setPaymentMethod

public void setPaymentMethod(java.lang.String paymentMethod)
Specified by:
setPaymentMethod in interface Supplier

setReturnAllowed

public void setReturnAllowed(boolean returnAllowIndicator)
Specified by:
setReturnAllowed in interface Supplier

setReturnCourier

public void setReturnCourier(java.lang.String returnCourier)
Specified by:
setReturnCourier in interface Supplier

setReturnMinimumDollarAmount

public void setReturnMinimumDollarAmount(Money returnMinimumDollarAmount)
Specified by:
setReturnMinimumDollarAmount in interface Supplier

setShippingMethod

public void setShippingMethod(java.lang.String shippingMethod)
Specified by:
setShippingMethod in interface Supplier

setSupplierStatus

public void setSupplierStatus(SupplierStatus supplierStatus)
Specified by:
setSupplierStatus in interface Supplier

setTerms

public void setTerms(java.lang.String terms)
Specified by:
setTerms in interface Supplier

setDirectShipPoLevel

public void setDirectShipPoLevel(java.lang.String directShipPoLevel)
Specified by:
setDirectShipPoLevel in interface Supplier

setDirectShipPoLines

public void setDirectShipPoLines(java.lang.String directShipPoLines)
Specified by:
setDirectShipPoLines in interface Supplier

setGiftWrapIndicator

public void setGiftWrapIndicator(boolean giftWrapIndicator)
Specified by:
setGiftWrapIndicator in interface Supplier

setOrderTypeSeparateIndicator

public void setOrderTypeSeparateIndicator(boolean orderTypeSeparateIndicator)
Specified by:
setOrderTypeSeparateIndicator in interface Supplier

setPersonalizationSeparateIndicator

public void setPersonalizationSeparateIndicator(boolean personalizationSeparateIndicator)
Specified by:
setPersonalizationSeparateIndicator in interface Supplier

setUnitsPerDirectShipContact

public void setUnitsPerDirectShipContact(java.lang.String unitsPerDirectShipContact)
Specified by:
setUnitsPerDirectShipContact in interface Supplier

addContactMethod

public void addContactMethod(SupplierContactMethod supplierContactMethod)
Specified by:
addContactMethod in interface Supplier

setPrimaryPoDeliveryContactMethod

public void setPrimaryPoDeliveryContactMethod(SupplierContactMethod method)
Specified by:
setPrimaryPoDeliveryContactMethod in interface Supplier

getPersonalizationRestrictedCharacters

public java.util.Set getPersonalizationRestrictedCharacters()
Specified by:
getPersonalizationRestrictedCharacters in interface Supplier

isRestrictedCharacter

public boolean isRestrictedCharacter(java.lang.Character c)
Specified by:
isRestrictedCharacter in interface Supplier

addPersonalizationRestrictedCharacter

public void addPersonalizationRestrictedCharacter(java.lang.Character character)
Specified by:
addPersonalizationRestrictedCharacter in interface Supplier

addSupplierPersonalizationStyleType

public void addSupplierPersonalizationStyleType(PersonalizationStyleType supplierPersonalizationType)
Specified by:
addSupplierPersonalizationStyleType in interface Supplier

addPersonalizationFont

public void addPersonalizationFont(PersonalizationFont newFont)
                            throws SystemException
Specified by:
addPersonalizationFont in interface Supplier
Throws:
SystemException

removePersonalizationRestrictedCharacter

public boolean removePersonalizationRestrictedCharacter(java.lang.Character character)
                                                 throws SystemException
Specified by:
removePersonalizationRestrictedCharacter in interface Supplier
Throws:
SystemException

removePersonalizationStyleType

public boolean removePersonalizationStyleType(PersonalizationStyleType styleType)
                                       throws SystemException
Specified by:
removePersonalizationStyleType in interface Supplier
Throws:
SystemException

removePersonalizationFont

public boolean removePersonalizationFont(PersonalizationFont font)
                                  throws SystemException
Specified by:
removePersonalizationFont in interface Supplier
Throws:
SystemException

removePersonalizationColor

public boolean removePersonalizationColor(PersonalizationColor color)
                                   throws SystemException
Specified by:
removePersonalizationColor in interface Supplier
Throws:
SystemException

addPersonalizationColor

public void addPersonalizationColor(PersonalizationColor newColor)
                             throws SystemException
Specified by:
addPersonalizationColor in interface Supplier
Throws:
SystemException

addLocation

public void addLocation(SupplierLocation location)
Specified by:
addLocation in interface Supplier

setPrimaryLocationForLocationType

public void setPrimaryLocationForLocationType(SupplierLocation location)
Specified by:
setPrimaryLocationForLocationType in interface Supplier

getPersonalizationStyleTypes

public java.util.Set getPersonalizationStyleTypes()
Specified by:
getPersonalizationStyleTypes in interface Supplier

getDto

public AbstractDto getDto()
Specified by:
getDto in class BusinessObjectImpl

submit

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

isDirectShip

public boolean isDirectShip()
Specified by:
isDirectShip in interface Supplier

clearContactMethods

public void clearContactMethods()
Specified by:
clearContactMethods in interface SupplierRib

getSupplierContactMethod

public SupplierContactMethod getSupplierContactMethod(java.lang.String id)
Specified by:
getSupplierContactMethod in interface Supplier

getPersonalizationFonts

public java.util.Set getPersonalizationFonts()
                                      throws SystemException
Specified by:
getPersonalizationFonts in interface Supplier
Throws:
SystemException

getPersonalizationColors

public java.util.Set getPersonalizationColors()
                                       throws SystemException
Specified by:
getPersonalizationColors in interface Supplier
Throws:
SystemException

addCallSchedule

public void addCallSchedule(SupplierCallSchedule callSchedule)
Specified by:
addCallSchedule in interface Supplier

setCallSchedules

public void setCallSchedules(java.util.Set contactDays)
                      throws SystemException,
                             BusinessException
Description copied from interface: Supplier
Creates a call schedule for each contact day in the passed set. Replaces any previous call schedules for this supplier with those created for the passed set. Default contact level for each call schedule is "order".

Specified by:
setCallSchedules in interface Supplier
Throws:
SystemException
BusinessException

getAllCallSchedules

public java.util.Set getAllCallSchedules()
Specified by:
getAllCallSchedules in interface Supplier

findCallSchedule

public SupplierCallSchedule findCallSchedule(ContactDayType contactDayType)
Specified by:
findCallSchedule in interface Supplier

toDisplayString

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


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