Interface SalesDocumentBase<L extends ItemListBase<I>,I extends ItemBase,H extends HeaderBase>
- Type Parameters:
L- type of the item ListI- type of the items of the item listH- type of the header
- All Superinterfaces:
BusinessObject,Iterable<I>,MessageListHolder,Serializable,SimpleDocument<L,I, H>
- All Known Subinterfaces:
Basket,Order,SalesDocument
- All Known Implementing Classes:
BasketImpl,OrderHistoryImpl,OrderImpl,SalesDocumentBaseImpl,SalesDocumentImpl
public interface SalesDocumentBase<L extends ItemListBase<I>,I extends ItemBase,H extends HeaderBase>
extends SimpleDocument<L,I,H>
Base Interface for all sales documents, e.g. Basket, Order etc.
The document consists in principle of a Header and a ItemList, which again contains Items. The type of all 3 objects can be passed to this class via generics to enable type safe access.
The document consists in principle of a Header and a ItemList, which again contains Items. The type of all 3 objects can be passed to this class via generics to enable type safe access.
- The Header has to extend
HeaderBase - The ItemList has to extend
ItemListBase - The Item has to extend
ItemBaseobjects
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant defining that the number of items of a document is unknown.Fields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID -
Method Summary
Modifier and TypeMethodDescriptionReturn the list of all available shipTos of this document.Return the list of all available shipTos of this document.booleanReturns true if only the header should be changedbooleanDetermines if manual Product-, Campaign-, ...booleanReturns the information, if document is persistent in the back endvoidsetDeterminationRequired(boolean isDeterminationRequired) Sets the isDeterminationRequired flagvoidsetPersistentInBackend(boolean isPersistent) Set flag, if document is persistent in the back endMethods 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, setValidMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageListMethods inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.businessobject.interf.SimpleDocument
addItem, clear, clearHeader, clearItems, createItem, getApplicationId, getChangeDate, getHeader, getItem, getItemList, getSoldToGuid, getTypedExtensionMap, getVersion, isDirty, setApplicationId, setChangeDate, setDirty, setHeader, setItemList, setSoldToGuid, setVersion
-
Field Details
-
NO_OF_ITEMS_UNKNOWN
static final int NO_OF_ITEMS_UNKNOWNConstant defining that the number of items of a document is unknown. Thus it must be determined by the size if the itemList.- See Also:
-
-
Method Details
-
getAlternativeShipTos
Return the list of all available shipTos of this document. The shipTos contain the address.- Returns:
- list of shipTos.
-
getAlternativeBillTos
Return the list of all available shipTos of this document. The billTos contain the address.- Returns:
- list of billTos.
-
isChangeHeaderOnly
boolean isChangeHeaderOnly()Returns true if only the header should be changed- Returns:
- boolean true if only the header should be changed, false else
-
isDeterminationRequired
boolean isDeterminationRequired()Determines if manual Product-, Campaign-, ... Determination is necessary for at least one top level item.- Returns:
- boolean true if there is at least on item that needs manual determination for products, camapigns, etc.
-
setDeterminationRequired
void setDeterminationRequired(boolean isDeterminationRequired) Sets the isDeterminationRequired flag- Parameters:
isDeterminationRequired- true if there are items that need manual determination either for camapigns, substitution products or something similar
-
isPersistentInBackend
boolean isPersistentInBackend()Returns the information, if document is persistent in the back end- Returns:
- true, if document persists on DB in the back end
-
setPersistentInBackend
void setPersistentInBackend(boolean isPersistent) Set flag, if document is persistent in the back end- Parameters:
isPersistent- iftruedocument is considered persistent
-