Package de.hybris.platform.order
Interface AbstractOrderEntryTypeService
-
- All Known Implementing Classes:
DefaultAbstractOrderEntryTypeService
public interface AbstractOrderEntryTypeServiceConvenience service that resolves
ComposedTypeModelof an entry for a targetAbstractOrderModel. The default implementation bases on spring configurable ORDER TYPE - to - ORDER ENTRY TYPE mapping. Here you can decide on the default behavior of such type resolving. If no mapping is defined in the spring configuration, or it does not contain mapping of the given order type, the resolver will check the type ofAbstractOrderModel.ENTRIESattribute.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ClassgetAbstractOrderEntryClassForType(ComposedTypeModel entryType)Convenience method for resolvingClassof the given order entryComposedTypeModel.ComposedTypeModelgetAbstractOrderEntryType(AbstractOrderModel order)ReturnsComposedTypeModelof order entry that best match the target order.
-
-
-
Method Detail
-
getAbstractOrderEntryType
ComposedTypeModel getAbstractOrderEntryType(AbstractOrderModel order)
ReturnsComposedTypeModelof order entry that best match the target order.- Parameters:
order- targetAbstractOrderModel- Returns:
ComposedTypeModelof given order's entries.
-
getAbstractOrderEntryClassForType
java.lang.Class getAbstractOrderEntryClassForType(ComposedTypeModel entryType)
Convenience method for resolvingClassof the given order entryComposedTypeModel.- Parameters:
entryType- -ComposedTypeModelyou want to check class for.- Returns:
Classthat corresponds to the type.
-
-