Class HeaderBaseImpl
java.lang.Object
de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.impl.SimpleHeaderImpl
de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.impl.HeaderBaseImpl
- All Implemented Interfaces:
BackendAware,BusinessObject,MessageListHolder,HeaderBase,SimpleHeader,Serializable,Cloneable
- Direct Known Subclasses:
HeaderSalesDocument
Common Header Information for all objects of the bo layer that are considered to be sales documents.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanDocument can be changed?protected DateChanged dateprotected DateCreated dateprotected StringCurrencyprotected StringDelivery Priorityprotected StringDistribution channelprotected StringDivisionprotected DocumentTypeDocument typeprotected BigDecimalFreight valueprotected BigDecimalGross valueprotected BigDecimalGross value without freightprotected BigDecimalNet valueprotected BigDecimalNet value without freightprotected PartnerListPartner listprotected DatePosting dateprotected List<ConnectedDocument>List of predecessorsprotected StringProcess typeprotected StringProcess type descriptionprotected StringPurchase order numberprotected DateRequired delivery dateprotected StringSales document number from back endprotected StringOrigin of sales documentprotected StringSales officeprotected StringSales organizationprotected StringShipping conditionprotected List<ConnectedDocument>List of successorsprotected BigDecimalTax valueprotected BigDecimalTotal discountprotected BigDecimalTotal valueprotected DateValid from dateprotected DateValid to dateFields inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
backendObject, backendType, bobMessages, bobState, extensionData, genericFactory, handle, moduleConfigurationAccess, techKeyFields inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.interf.HeaderBase
DOCUMENT_COMPLETION_STATUS_COMPLETED, DOCUMENT_COMPLETION_STATUS_INPROCESS, DOCUMENT_COMPLETION_STATUS_OPENFields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPredecessor(ConnectedDocument predecessorData) Adds aConnectedDocumentto the predecessor list.voidaddSuccessor(ConnectedDocument successorData) Adds aConnectedDocumentto the successor list.voidclear()Drops the state of the object.clone()Instead of a shallow-copy this returns a deep-copy of this HeaderBaseImpl instance.protected DateconsolidateDate(Date date) If year >9999: Set it to 9999create aConnectedDocumentobject.Creates a text object.Get the date, the document was changed the last time.Get the date, the document was created.Get the currency used for this document.Returns the delivery priority keyGet the distribution channel.Get the devision.Returns the type of the document, the header belongs to.Get the price for the freight of the order.Get the price including all taxes but not the freight.Get the gross price without freight.Get the net priceGet the net price without freight.getPartnerId(String partnerFunction) Returns the partner id for the given partner function.getPartnerKey(String partnerFunction) Returns the partner key for the given partner function.Get the business partner listGet the date the order was created from the customer's point of view.Get the predecessor listGet the process type of the document.Get the description of the process typeGet the external purchase order number.Get the requested delivery date.Get the number of the sales document the header belongs to.Get the origin of the sales document.Get the sales office.Get the sales organization for the document.Get the shipping conditions for the document.Get the successor listGet the taxes that have to be paid for the document.Get the date, the document is valid from.Get the date, the document is valid to.booleanCheck whether or not the document is changeable.voidsetChangeable(boolean changeable) Set whether or not the document is changeable using a String parameter.voidsetChangedAt(Date changedAt) Set the date, the document was changed the last time.voidsetCreatedAt(Date createdAt) Set the date, document was created.voidsetCurrency(String currency) Set the currency used for the document the header belongs to.voidsetDeliveryPriority(String deliveryPriority) Sets the delivery priority key.voidsetDisChannel(String disChannel) Set the distribution channel.voidsetDivision(String division) Set the devision.voidsetDocumentType(DocumentType documentType) Set the document type.voidsetFreightValue(BigDecimal freightValue) Set the price for the freight of the order.voidsetGrossValue(BigDecimal grossValue) Set the price including all taxes but not the freight.voidsetGrossValueWOFreight(BigDecimal grossValueWOFreight) Set the gross value without freight.voidsetNetValue(BigDecimal netValue) Set the net pricevoidsetNetValueWOFreight(BigDecimal netValueWOFreight) Set the net price without freight.voidsetPartnerList(PartnerList partnerList) Sets the business partner list.voidsetPostingDate(Date postingDate) Set the date the order was created from the customer's point of view.voidsetProcessType(String processType) Set the the process type of the document.voidsetProcessTypeDesc(String processTypeDesc) Sets the description of the process typevoidsetPurchaseOrderExt(String purchaseOrderExt) Set the external purchase order number.voidsetReqDeliveryDate(Date reqDeliveryDate) Set the requested delivery date.voidsetSalesDocNumber(String salesDocNumber) Set the number of the sales document the header belongs to.voidsetSalesDocumentsOrigin(String salesDocOrigin) Set the origin of the sales document.voidsetSalesOffice(String salesOffice) Set the sales office.voidsetSalesOrg(String salesOrg) Set the sales organization for the document.voidsetShipCond(String shipCond) Set the shipping conditions for the document.voidsetTaxValue(BigDecimal taxValue) Set the taxes that have to be paid for the document.voidsetTechKey(TechKey techKey) Sets the key for the document and sets the docuemnt to dirty, so that a re-read is enforced with netx read.voidsetTotalDiscount(BigDecimal totalDiscount) sets the total discount, which is used for strike through pricesvoidsetValidFrom(Date validFrom) Sets the date, the document is valid from.voidsetValidTo(Date validTo) Sets the date, the document is valid to.toString()Returns a simplifies string representation of the object.Methods inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.impl.SimpleHeaderImpl
getDescription, getText, getTypedExtensionMap, isDirty, setDescription, setDirty, setTextMethods inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
addExtensionData, addMessage, clearMessages, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, determineBackendObject, equals, getBackendBusinessObject, getBackendBusinessObject, getBackendType, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getMessageList, getModuleConfigurationAccess, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hashCode, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setBackendObject, setBackendType, setExtensionMap, setGenericFactory, setHandle, setInvalid, setModuleConfigurationAccess, setValidMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.hybris.platform.sap.core.bol.businessobject.BusinessObject
addExtensionData, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setExtensionMap, setHandle, setInvalid, setValidMethods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageListMethods inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.interf.SimpleHeader
getDescription, getText, getTypedExtensionMap, isDirty, setDescription, setDirty, setText
-
Field Details
-
changeable
protected boolean changeableDocument can be changed? -
changedAt
Changed date -
createdAt
Created date -
currency
Currency -
division
Division -
disChannel
Distribution channel -
documentType
Document type -
freightValue
Freight value -
grossValue
Gross value -
netValue
Net value -
netValueWOFreight
Net value without freight -
grossValueWOFreight
Gross value without freight -
totalValue
Total value -
partnerList
Partner list -
processType
Process type -
processTypeDesc
Process type description -
salesDocNumber
Sales document number from back end -
purchaseOrderExt
Purchase order number -
postingDate
Posting date -
salesDocumentsOrigin
Origin of sales document -
salesOrg
Sales organization -
salesOffice
Sales office -
reqDeliveryDate
Required delivery date -
validFrom
Valid from date -
validTo
Valid to date -
shipCond
Shipping condition -
taxValue
Tax value -
totalDiscount
Total discount -
deliveryPriority
Delivery Priority -
predecessorList
List of predecessors -
successorList
List of successors
-
-
Constructor Details
-
HeaderBaseImpl
public HeaderBaseImpl()
-
-
Method Details
-
addPredecessor
Description copied from interface:HeaderBaseAdds aConnectedDocumentto the predecessor list. Anullreference passed to this function will be ignored, in this case nothing will happen.- Specified by:
addPredecessorin interfaceHeaderBase- Parameters:
predecessorData- ConnectedDocument to be added to the predecessor list
-
addSuccessor
Description copied from interface:HeaderBaseAdds aConnectedDocumentto the successor list. Anullreference passed to this function will be ignored, in this case nothing will happen.- Specified by:
addSuccessorin interfaceHeaderBase- Parameters:
successorData- ConnectedDocument to be added to the successor list
-
clear
public void clear()Drops the state of the object. All reference fields, except partnerList, are set to null, all primitive types are set to the default values they would have after the creation of a new instance. Use this method to reset the state to the state a newly created object would have. The advantage is, that the overhead caused by the normal object creation is omitted.- Specified by:
clearin interfaceSimpleHeader- Overrides:
clearin classSimpleHeaderImpl
-
clone
Instead of a shallow-copy this returns a deep-copy of this HeaderBaseImpl instance.- Specified by:
clonein interfaceHeaderBase- Overrides:
clonein classSimpleHeaderImpl- Returns:
- a deep-copy of this HeaderBase
-
createText
Description copied from interface:HeaderBaseCreates a text object. This method is used by back end objects to get instances of the text object.- Specified by:
createTextin interfaceHeaderBase- Returns:
- newly created text object
-
createConnectedDocument
Description copied from interface:HeaderBasecreate aConnectedDocumentobject.- Specified by:
createConnectedDocumentin interfaceHeaderBase- Returns:
- new ConnectedDocument Instance
-
getChangedAt
Description copied from interface:HeaderBaseGet the date, the document was changed the last time.- Specified by:
getChangedAtin interfaceHeaderBase- Returns:
- the date, the document was changed the last time
-
getCreatedAt
Description copied from interface:HeaderBaseGet the date, the document was created.- Specified by:
getCreatedAtin interfaceHeaderBase- Returns:
- date, the document was created
-
getCurrency
Description copied from interface:HeaderBaseGet the currency used for this document.- Specified by:
getCurrencyin interfaceHeaderBase- Returns:
- the currency used for this document
-
getDeliveryPriority
Description copied from interface:HeaderBaseReturns the delivery priority key- Specified by:
getDeliveryPriorityin interfaceHeaderBase- Returns:
- String
-
getDisChannel
Description copied from interface:HeaderBaseGet the distribution channel.- Specified by:
getDisChannelin interfaceHeaderBase- Returns:
- distribution channel
-
getDivision
Description copied from interface:HeaderBaseGet the devision.- Specified by:
getDivisionin interfaceHeaderBase- Returns:
- the devision
-
getDocumentType
Description copied from interface:HeaderBaseReturns the type of the document, the header belongs to.- Specified by:
getDocumentTypein interfaceHeaderBase- Returns:
- the document type.
-
getFreightValue
Description copied from interface:HeaderBaseGet the price for the freight of the order.- Specified by:
getFreightValuein interfaceHeaderBase- Returns:
- the price for the freight of the
-
getGrossValue
Description copied from interface:HeaderBaseGet the price including all taxes but not the freight.- Specified by:
getGrossValuein interfaceHeaderBase- Returns:
- the value
-
getNetValue
Description copied from interface:HeaderBaseGet the net price- Specified by:
getNetValuein interfaceHeaderBase- Returns:
- the price
-
getNetValueWOFreight
Description copied from interface:HeaderBaseGet the net price without freight.- Specified by:
getNetValueWOFreightin interfaceHeaderBase- Returns:
- the price
-
getPartnerId
Description copied from interface:HeaderBaseReturns the partner id for the given partner function.- Specified by:
getPartnerIdin interfaceHeaderBase- Parameters:
partnerFunction- partnerFucntion to be checked- Returns:
- partner id
-
getPartnerKey
Description copied from interface:HeaderBaseReturns the partner key for the given partner function.- Specified by:
getPartnerKeyin interfaceHeaderBase- Parameters:
partnerFunction- partnerFucntion to be checked- Returns:
- partner GUID
-
getPartnerList
Description copied from interface:HeaderBaseGet the business partner list- Specified by:
getPartnerListin interfaceHeaderBase- Returns:
- PartnerList list of business partners
-
getPostingDate
Description copied from interface:HeaderBaseGet the date the order was created from the customer's point of view.- Specified by:
getPostingDatein interfaceHeaderBase- Returns:
- the posting date
-
getPredecessorList
Description copied from interface:HeaderBaseGet the predecessor list- Specified by:
getPredecessorListin interfaceHeaderBase- Returns:
- list of all predecessor documents
-
getProcessType
Description copied from interface:HeaderBaseGet the process type of the document.- Specified by:
getProcessTypein interfaceHeaderBase- Returns:
- process type
-
getProcessTypeDesc
Description copied from interface:HeaderBaseGet the description of the process type- Specified by:
getProcessTypeDescin interfaceHeaderBase- Returns:
- description of the process type
-
getPurchaseOrderExt
Description copied from interface:HeaderBaseGet the external purchase order number.- Specified by:
getPurchaseOrderExtin interfaceHeaderBase- Returns:
- the purchase order number
-
getReqDeliveryDate
Description copied from interface:HeaderBaseGet the requested delivery date.- Specified by:
getReqDeliveryDatein interfaceHeaderBase- Returns:
- the request delivery date
-
getSalesDocNumber
Description copied from interface:HeaderBaseGet the number of the sales document the header belongs to.- Specified by:
getSalesDocNumberin interfaceHeaderBase- Returns:
- the number of the sales document
-
getSalesDocumentsOrigin
Description copied from interface:HeaderBaseGet the origin of the sales document.- Specified by:
getSalesDocumentsOriginin interfaceHeaderBase- Returns:
- the origin of the sales document
-
getSalesOffice
Description copied from interface:HeaderBaseGet the sales office.- Specified by:
getSalesOfficein interfaceHeaderBase- Returns:
- the sales office
-
getSalesOrg
Description copied from interface:HeaderBaseGet the sales organization for the document.- Specified by:
getSalesOrgin interfaceHeaderBase- Returns:
- the sales organization
-
getShipCond
Description copied from interface:HeaderBaseGet the shipping conditions for the document.- Specified by:
getShipCondin interfaceHeaderBase- Returns:
- the shipping conditions
-
getSuccessorList
Description copied from interface:HeaderBaseGet the successor list- Specified by:
getSuccessorListin interfaceHeaderBase- Returns:
- list of all successor documents
-
getTaxValue
Description copied from interface:HeaderBaseGet the taxes that have to be paid for the document.- Specified by:
getTaxValuein interfaceHeaderBase- Returns:
- the taxes
-
getTotalDiscount
- Specified by:
getTotalDiscountin interfaceHeaderBase- Returns:
- total discount, which is used for strike through prices
-
isChangeable
public boolean isChangeable()Description copied from interface:HeaderBaseCheck whether or not the document is changeable.- Specified by:
isChangeablein interfaceHeaderBase- Returns:
trueif the document is changeable, otherwisefalse.
-
setChangeable
public void setChangeable(boolean changeable) Description copied from interface:HeaderBaseSet whether or not the document is changeable using a String parameter.- Specified by:
setChangeablein interfaceHeaderBase- Parameters:
changeable-" "or""indicates that the document is changeable, all other values that it is changeable.
-
setChangedAt
Description copied from interface:HeaderBaseSet the date, the document was changed the last time.- Specified by:
setChangedAtin interfaceHeaderBase- Parameters:
changedAt- the date, the document was changed the last time
-
setCreatedAt
Description copied from interface:HeaderBaseSet the date, document was created.- Specified by:
setCreatedAtin interfaceHeaderBase- Parameters:
createdAt- the date to be set
-
setCurrency
Description copied from interface:HeaderBaseSet the currency used for the document the header belongs to.- Specified by:
setCurrencyin interfaceHeaderBase- Parameters:
currency- the currency to be set
-
setDeliveryPriority
Description copied from interface:HeaderBaseSets the delivery priority key.- Specified by:
setDeliveryPriorityin interfaceHeaderBase- Parameters:
deliveryPriority- key
-
setDisChannel
Description copied from interface:HeaderBaseSet the distribution channel.- Specified by:
setDisChannelin interfaceHeaderBase- Parameters:
disChannel- the distribution channel to be set
-
setDivision
Description copied from interface:HeaderBaseSet the devision.- Specified by:
setDivisionin interfaceHeaderBase- Parameters:
division- the devision to be set
-
setDocumentType
Description copied from interface:HeaderBaseSet the document type.- Specified by:
setDocumentTypein interfaceHeaderBase- Parameters:
documentType- document type
-
setFreightValue
Description copied from interface:HeaderBaseSet the price for the freight of the order.- Specified by:
setFreightValuein interfaceHeaderBase- Parameters:
freightValue- the price for the freight
-
setGrossValue
Description copied from interface:HeaderBaseSet the price including all taxes but not the freight.- Specified by:
setGrossValuein interfaceHeaderBase- Parameters:
grossValue- the price to be set
-
setNetValue
Description copied from interface:HeaderBaseSet the net price- Specified by:
setNetValuein interfaceHeaderBase- Parameters:
netValue- the price to be set
-
setNetValueWOFreight
Description copied from interface:HeaderBaseSet the net price without freight.- Specified by:
setNetValueWOFreightin interfaceHeaderBase- Parameters:
netValueWOFreight- the price to be set
-
setPartnerList
Description copied from interface:HeaderBaseSets the business partner list.- Specified by:
setPartnerListin interfaceHeaderBase- Parameters:
partnerList- list of business partners
-
setPostingDate
Description copied from interface:HeaderBaseSet the date the order was created from the customer's point of view.- Specified by:
setPostingDatein interfaceHeaderBase- Parameters:
postingDate- the date to be set
-
setProcessType
Description copied from interface:HeaderBaseSet the the process type of the document.- Specified by:
setProcessTypein interfaceHeaderBase- Parameters:
processType- the process type to be set
-
setProcessTypeDesc
Description copied from interface:HeaderBaseSets the description of the process type- Specified by:
setProcessTypeDescin interfaceHeaderBase- Parameters:
processTypeDesc- The processTypeDesc to set
-
setPurchaseOrderExt
Description copied from interface:HeaderBaseSet the external purchase order number.- Specified by:
setPurchaseOrderExtin interfaceHeaderBase- Parameters:
purchaseOrderExt- the number to be set
-
setReqDeliveryDate
Description copied from interface:HeaderBaseSet the requested delivery date.- Specified by:
setReqDeliveryDatein interfaceHeaderBase- Parameters:
reqDeliveryDate- the requested delivery date to be set.
-
setSalesDocNumber
Description copied from interface:HeaderBaseSet the number of the sales document the header belongs to.- Specified by:
setSalesDocNumberin interfaceHeaderBase- Parameters:
salesDocNumber- the number of the sales document
-
setSalesDocumentsOrigin
Description copied from interface:HeaderBaseSet the origin of the sales document.- Specified by:
setSalesDocumentsOriginin interfaceHeaderBase- Parameters:
salesDocOrigin- the origin to be set
-
setSalesOffice
Description copied from interface:HeaderBaseSet the sales office.- Specified by:
setSalesOfficein interfaceHeaderBase- Parameters:
salesOffice- the sales office
-
setSalesOrg
Description copied from interface:HeaderBaseSet the sales organization for the document.- Specified by:
setSalesOrgin interfaceHeaderBase- Parameters:
salesOrg- the sales organization.
-
setShipCond
Description copied from interface:HeaderBaseSet the shipping conditions for the document.- Specified by:
setShipCondin interfaceHeaderBase- Parameters:
shipCond- the shipping conditions
-
setTaxValue
Description copied from interface:HeaderBaseSet the taxes that have to be paid for the document.- Specified by:
setTaxValuein interfaceHeaderBase- Parameters:
taxValue- the taxes to be set
-
setTechKey
Sets the key for the document and sets the docuemnt to dirty, so that a re-read is enforced with netx read.- Specified by:
setTechKeyin interfaceBusinessObject- Overrides:
setTechKeyin classBusinessObjectBase- Parameters:
techKey- the techKey to be set
-
setTotalDiscount
Description copied from interface:HeaderBasesets the total discount, which is used for strike through prices- Specified by:
setTotalDiscountin interfaceHeaderBase- Parameters:
totalDiscount- totalDiscount as BigDecimal
-
toString
Returns a simplifies string representation of the object. Useful for debugging/logging purpose, but not for display on the User Interface.- Overrides:
toStringin classSimpleHeaderImpl- Returns:
- object as string
-
getGrossValueWOFreight
Description copied from interface:HeaderBaseGet the gross price without freight.- Specified by:
getGrossValueWOFreightin interfaceHeaderBase- Returns:
- the gross price without freight
-
setGrossValueWOFreight
Description copied from interface:HeaderBaseSet the gross value without freight.- Specified by:
setGrossValueWOFreightin interfaceHeaderBase- Parameters:
grossValueWOFreight- the price to be set
-
consolidateDate
If year >9999: Set it to 9999- Parameters:
date-- Returns:
- Changed date (if needed)
-
getValidFrom
Description copied from interface:HeaderBaseGet the date, the document is valid from.- Specified by:
getValidFromin interfaceHeaderBase- Returns:
- date, the document is valid from
-
getValidTo
Description copied from interface:HeaderBaseGet the date, the document is valid to.- Specified by:
getValidToin interfaceHeaderBase- Returns:
- date, the document is valid to
-
setValidFrom
Description copied from interface:HeaderBaseSets the date, the document is valid from.- Specified by:
setValidFromin interfaceHeaderBase- Parameters:
validFrom- the validFrom date to be set.
-
setValidTo
Description copied from interface:HeaderBaseSets the date, the document is valid to.- Specified by:
setValidToin interfaceHeaderBase- Parameters:
validTo- the validTo date to be set.
-