Interface HeaderBase
-
- All Superinterfaces:
BusinessObject,java.lang.Cloneable,MessageListHolder,java.io.Serializable,SimpleHeader
- All Known Subinterfaces:
Header
- All Known Implementing Classes:
HeaderBaseImpl,HeaderSalesDocument
public interface HeaderBase extends SimpleHeader
Represents the backend's view of the header of a sales document.- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDOCUMENT_COMPLETION_STATUS_COMPLETEDConstant defining a document that is in the completion status COMPLETED.static java.lang.StringDOCUMENT_COMPLETION_STATUS_INPROCESSConstant defining a document that is in the completion status INPROCESS.static java.lang.StringDOCUMENT_COMPLETION_STATUS_OPENConstant defining a document that is in the completion status OPEN.-
Fields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPredecessor(ConnectedDocument predecessorData)Adds aConnectedDocumentto the predecessor list.voidaddSuccessor(ConnectedDocument successorData)Adds aConnectedDocumentto the successor list.java.lang.Objectclone()Instead of a shallow-copy this returns a deep-copy of this HeaderBaseImpl instance.ConnectedDocumentcreateConnectedDocument()create aConnectedDocumentobject.TextcreateText()Creates a text object.java.util.DategetChangedAt()Get the date, the document was changed the last time.java.util.DategetCreatedAt()Get the date, the document was created.java.lang.StringgetCurrency()Get the currency used for this document.java.lang.StringgetDeliveryPriority()Returns the delivery priority keyjava.lang.StringgetDisChannel()Get the distribution channel.java.lang.StringgetDivision()Get the devision.DocumentTypegetDocumentType()Returns the type of the document, the header belongs to.java.math.BigDecimalgetFreightValue()Get the price for the freight of the order.java.math.BigDecimalgetGrossValue()Get the price including all taxes but not the freight.java.math.BigDecimalgetGrossValueWOFreight()Get the gross price without freight.java.math.BigDecimalgetNetValue()Get the net pricejava.math.BigDecimalgetNetValueWOFreight()Get the net price without freight.java.lang.StringgetPartnerId(java.lang.String partnerFunction)Returns the partner id for the given partner function.TechKeygetPartnerKey(java.lang.String partnerFunction)Returns the partner key for the given partner function.PartnerListgetPartnerList()Get the business partner listjava.util.DategetPostingDate()Get the date the order was created from the customer's point of view.java.util.List<ConnectedDocument>getPredecessorList()Get the predecessor listjava.lang.StringgetProcessType()Get the process type of the document.java.lang.StringgetProcessTypeDesc()Get the description of the process typejava.lang.StringgetPurchaseOrderExt()Get the external purchase order number.java.util.DategetReqDeliveryDate()Get the requested delivery date.java.lang.StringgetSalesDocNumber()Get the number of the sales document the header belongs to.java.lang.StringgetSalesDocumentsOrigin()Get the origin of the sales document.java.lang.StringgetSalesOffice()Get the sales office.java.lang.StringgetSalesOrg()Get the sales organization for the document.java.lang.StringgetShipCond()Get the shipping conditions for the document.java.util.List<ConnectedDocument>getSuccessorList()Get the successor listjava.math.BigDecimalgetTaxValue()Get the taxes that have to be paid for the document.java.math.BigDecimalgetTotalDiscount()java.util.DategetValidFrom()Get the date, the document is valid from.java.util.DategetValidTo()Get the date, the document is valid to.booleanisChangeable()Check whether or not the document is changeable.voidsetChangeable(boolean changeable)Set whether or not the document is changeable using a String parameter.voidsetChangedAt(java.util.Date changedAt)Set the date, the document was changed the last time.voidsetCreatedAt(java.util.Date createdAt)Set the date, document was created.voidsetCurrency(java.lang.String currency)Set the currency used for the document the header belongs to.voidsetDeliveryPriority(java.lang.String deliveryPriority)Sets the delivery priority key.voidsetDisChannel(java.lang.String disChannel)Set the distribution channel.voidsetDivision(java.lang.String division)Set the devision.voidsetDocumentType(DocumentType docType)Set the document type.voidsetFreightValue(java.math.BigDecimal freightValue)Set the price for the freight of the order.voidsetGrossValue(java.math.BigDecimal grossValue)Set the price including all taxes but not the freight.voidsetGrossValueWOFreight(java.math.BigDecimal grossValueWOFreight)Set the gross value without freight.voidsetNetValue(java.math.BigDecimal netValue)Set the net pricevoidsetNetValueWOFreight(java.math.BigDecimal netValueWOFreight)Set the net price without freight.voidsetPartnerList(PartnerList list)Sets the business partner list.voidsetPostingDate(java.util.Date postingDate)Set the date the order was created from the customer's point of view.voidsetProcessType(java.lang.String processType)Set the the process type of the document.voidsetProcessTypeDesc(java.lang.String processTypeDesc)Sets the description of the process typevoidsetPurchaseOrderExt(java.lang.String purchaseOrderExt)Set the external purchase order number.voidsetReqDeliveryDate(java.util.Date reqDeliveryDate)Set the requested delivery date.voidsetSalesDocNumber(java.lang.String salesDocNumber)Set the number of the sales document the header belongs to.voidsetSalesDocumentsOrigin(java.lang.String salesDocOrigin)Set the origin of the sales document.voidsetSalesOffice(java.lang.String salesOffice)Set the sales office.voidsetSalesOrg(java.lang.String salesOrg)Set the sales organization for the document.voidsetShipCond(java.lang.String shipCond)Set the shipping conditions for the document.voidsetTaxValue(java.math.BigDecimal taxValue)Set the taxes that have to be paid for the document.voidsetTotalDiscount(java.math.BigDecimal totalDiscount)sets the total discount, which is used for strike through pricesvoidsetValidFrom(java.util.Date validFrom)Sets the date, the document is valid from.voidsetValidTo(java.util.Date validTo)Sets the date, the document is valid to.-
Methods 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, setTechKey, setValid
-
Methods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageList
-
Methods inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.interf.SimpleHeader
clear, getDescription, getText, getTypedExtensionMap, isDirty, setDescription, setDirty, setText
-
-
-
-
Field Detail
-
DOCUMENT_COMPLETION_STATUS_OPEN
static final java.lang.String DOCUMENT_COMPLETION_STATUS_OPEN
Constant defining a document that is in the completion status OPEN.- See Also:
- Constant Field Values
-
DOCUMENT_COMPLETION_STATUS_INPROCESS
static final java.lang.String DOCUMENT_COMPLETION_STATUS_INPROCESS
Constant defining a document that is in the completion status INPROCESS.- See Also:
- Constant Field Values
-
DOCUMENT_COMPLETION_STATUS_COMPLETED
static final java.lang.String DOCUMENT_COMPLETION_STATUS_COMPLETED
Constant defining a document that is in the completion status COMPLETED.- See Also:
- Constant Field Values
-
-
Method Detail
-
addPredecessor
void addPredecessor(ConnectedDocument predecessorData)
Adds aConnectedDocumentto the predecessor list. Anullreference passed to this function will be ignored, in this case nothing will happen.- Parameters:
predecessorData- ConnectedDocument to be added to the predecessor list
-
addSuccessor
void addSuccessor(ConnectedDocument successorData)
Adds aConnectedDocumentto the successor list. Anullreference passed to this function will be ignored, in this case nothing will happen.- Parameters:
successorData- ConnectedDocument to be added to the successor list
-
clone
java.lang.Object clone()
Instead of a shallow-copy this returns a deep-copy of this HeaderBaseImpl instance.- Returns:
- a deep-copy of this HeaderBase
-
createText
Text createText()
Creates a text object. This method is used by back end objects to get instances of the text object.- Returns:
- newly created text object
-
createConnectedDocument
ConnectedDocument createConnectedDocument()
create aConnectedDocumentobject.- Returns:
- new ConnectedDocument Instance
-
getChangedAt
java.util.Date getChangedAt()
Get the date, the document was changed the last time.- Returns:
- the date, the document was changed the last time
-
getCreatedAt
java.util.Date getCreatedAt()
Get the date, the document was created.- Returns:
- date, the document was created
-
getCurrency
java.lang.String getCurrency()
Get the currency used for this document.- Returns:
- the currency used for this document
-
getDeliveryPriority
java.lang.String getDeliveryPriority()
Returns the delivery priority key- Returns:
- String
-
getDisChannel
java.lang.String getDisChannel()
Get the distribution channel.- Returns:
- distribution channel
-
getDivision
java.lang.String getDivision()
Get the devision.- Returns:
- the devision
-
getDocumentType
DocumentType getDocumentType()
Returns the type of the document, the header belongs to.- Returns:
- the document type.
-
getFreightValue
java.math.BigDecimal getFreightValue()
Get the price for the freight of the order.- Returns:
- the price for the freight of the
-
getGrossValue
java.math.BigDecimal getGrossValue()
Get the price including all taxes but not the freight.- Returns:
- the value
-
getNetValue
java.math.BigDecimal getNetValue()
Get the net price- Returns:
- the price
-
getNetValueWOFreight
java.math.BigDecimal getNetValueWOFreight()
Get the net price without freight.- Returns:
- the price
-
getPartnerId
java.lang.String getPartnerId(java.lang.String partnerFunction)
Returns the partner id for the given partner function.- Parameters:
partnerFunction- partnerFucntion to be checked- Returns:
- partner id
-
getPartnerKey
TechKey getPartnerKey(java.lang.String partnerFunction)
Returns the partner key for the given partner function.- Parameters:
partnerFunction- partnerFucntion to be checked- Returns:
- partner GUID
-
getPartnerList
PartnerList getPartnerList()
Get the business partner list- Returns:
- PartnerList list of business partners
-
getPostingDate
java.util.Date getPostingDate()
Get the date the order was created from the customer's point of view.- Returns:
- the posting date
-
getPredecessorList
java.util.List<ConnectedDocument> getPredecessorList()
Get the predecessor list- Returns:
- list of all predecessor documents
-
getProcessType
java.lang.String getProcessType()
Get the process type of the document.- Returns:
- process type
-
getProcessTypeDesc
java.lang.String getProcessTypeDesc()
Get the description of the process type- Returns:
- description of the process type
-
getPurchaseOrderExt
java.lang.String getPurchaseOrderExt()
Get the external purchase order number.- Returns:
- the purchase order number
-
getReqDeliveryDate
java.util.Date getReqDeliveryDate()
Get the requested delivery date.- Returns:
- the request delivery date
-
getSalesDocNumber
java.lang.String getSalesDocNumber()
Get the number of the sales document the header belongs to.- Returns:
- the number of the sales document
-
getSalesDocumentsOrigin
java.lang.String getSalesDocumentsOrigin()
Get the origin of the sales document.- Returns:
- the origin of the sales document
-
getSalesOffice
java.lang.String getSalesOffice()
Get the sales office.- Returns:
- the sales office
-
getSalesOrg
java.lang.String getSalesOrg()
Get the sales organization for the document.- Returns:
- the sales organization
-
getShipCond
java.lang.String getShipCond()
Get the shipping conditions for the document.- Returns:
- the shipping conditions
-
getSuccessorList
java.util.List<ConnectedDocument> getSuccessorList()
Get the successor list- Returns:
- list of all successor documents
-
getTaxValue
java.math.BigDecimal getTaxValue()
Get the taxes that have to be paid for the document.- Returns:
- the taxes
-
getTotalDiscount
java.math.BigDecimal getTotalDiscount()
- Returns:
- total discount, which is used for strike through prices
-
getValidFrom
java.util.Date getValidFrom()
Get the date, the document is valid from.- Returns:
- date, the document is valid from
-
getValidTo
java.util.Date getValidTo()
Get the date, the document is valid to.- Returns:
- date, the document is valid to
-
isChangeable
boolean isChangeable()
Check whether or not the document is changeable.- Returns:
trueif the document is changeable, otherwisefalse.
-
setChangeable
void setChangeable(boolean changeable)
Set whether or not the document is changeable using a String parameter.- Parameters:
changeable-" "or""indicates that the document is changeable, all other values that it is changeable.
-
setChangedAt
void setChangedAt(java.util.Date changedAt)
Set the date, the document was changed the last time.- Parameters:
changedAt- the date, the document was changed the last time
-
setCreatedAt
void setCreatedAt(java.util.Date createdAt)
Set the date, document was created.- Parameters:
createdAt- the date to be set
-
setCurrency
void setCurrency(java.lang.String currency)
Set the currency used for the document the header belongs to.- Parameters:
currency- the currency to be set
-
setDeliveryPriority
void setDeliveryPriority(java.lang.String deliveryPriority)
Sets the delivery priority key.- Parameters:
deliveryPriority- key
-
setDisChannel
void setDisChannel(java.lang.String disChannel)
Set the distribution channel.- Parameters:
disChannel- the distribution channel to be set
-
setDivision
void setDivision(java.lang.String division)
Set the devision.- Parameters:
division- the devision to be set
-
setDocumentType
void setDocumentType(DocumentType docType)
Set the document type.- Parameters:
docType- document type
-
setFreightValue
void setFreightValue(java.math.BigDecimal freightValue)
Set the price for the freight of the order.- Parameters:
freightValue- the price for the freight
-
setGrossValue
void setGrossValue(java.math.BigDecimal grossValue)
Set the price including all taxes but not the freight.- Parameters:
grossValue- the price to be set
-
setNetValue
void setNetValue(java.math.BigDecimal netValue)
Set the net price- Parameters:
netValue- the price to be set
-
setNetValueWOFreight
void setNetValueWOFreight(java.math.BigDecimal netValueWOFreight)
Set the net price without freight.- Parameters:
netValueWOFreight- the price to be set
-
setPartnerList
void setPartnerList(PartnerList list)
Sets the business partner list.- Parameters:
list- list of business partners
-
setPostingDate
void setPostingDate(java.util.Date postingDate)
Set the date the order was created from the customer's point of view.- Parameters:
postingDate- the date to be set
-
setProcessType
void setProcessType(java.lang.String processType)
Set the the process type of the document.- Parameters:
processType- the process type to be set
-
setProcessTypeDesc
void setProcessTypeDesc(java.lang.String processTypeDesc)
Sets the description of the process type- Parameters:
processTypeDesc- The processTypeDesc to set
-
setPurchaseOrderExt
void setPurchaseOrderExt(java.lang.String purchaseOrderExt)
Set the external purchase order number.- Parameters:
purchaseOrderExt- the number to be set
-
setReqDeliveryDate
void setReqDeliveryDate(java.util.Date reqDeliveryDate)
Set the requested delivery date.- Parameters:
reqDeliveryDate- the requested delivery date to be set.
-
setSalesDocNumber
void setSalesDocNumber(java.lang.String salesDocNumber)
Set the number of the sales document the header belongs to.- Parameters:
salesDocNumber- the number of the sales document
-
setSalesDocumentsOrigin
void setSalesDocumentsOrigin(java.lang.String salesDocOrigin)
Set the origin of the sales document.- Parameters:
salesDocOrigin- the origin to be set
-
setSalesOffice
void setSalesOffice(java.lang.String salesOffice)
Set the sales office.- Parameters:
salesOffice- the sales office
-
setSalesOrg
void setSalesOrg(java.lang.String salesOrg)
Set the sales organization for the document.- Parameters:
salesOrg- the sales organization.
-
setShipCond
void setShipCond(java.lang.String shipCond)
Set the shipping conditions for the document.- Parameters:
shipCond- the shipping conditions
-
setTaxValue
void setTaxValue(java.math.BigDecimal taxValue)
Set the taxes that have to be paid for the document.- Parameters:
taxValue- the taxes to be set
-
setTotalDiscount
void setTotalDiscount(java.math.BigDecimal totalDiscount)
sets the total discount, which is used for strike through prices- Parameters:
totalDiscount- totalDiscount as BigDecimal
-
getGrossValueWOFreight
java.math.BigDecimal getGrossValueWOFreight()
Get the gross price without freight.- Returns:
- the gross price without freight
-
setGrossValueWOFreight
void setGrossValueWOFreight(java.math.BigDecimal grossValueWOFreight)
Set the gross value without freight.- Parameters:
grossValueWOFreight- the price to be set
-
setValidFrom
void setValidFrom(java.util.Date validFrom)
Sets the date, the document is valid from.- Parameters:
validFrom- the validFrom date to be set.
-
setValidTo
void setValidTo(java.util.Date validTo)
Sets the date, the document is valid to.- Parameters:
validTo- the validTo date to be set.
-
-