Package de.hybris.platform.order
Interface AbstractOrderEntryTypeService
-
- All Known Implementing Classes:
DefaultAbstractOrderEntryTypeService
public interface AbstractOrderEntryTypeService
Convenience service that resolves
ComposedTypeModel
of 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.ENTRIES
attribute.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class
getAbstractOrderEntryClassForType(ComposedTypeModel entryType)
Convenience method for resolvingClass
of the given order entryComposedTypeModel
.ComposedTypeModel
getAbstractOrderEntryType(AbstractOrderModel order)
ReturnsComposedTypeModel
of order entry that best match the target order.
-
-
-
Method Detail
-
getAbstractOrderEntryType
ComposedTypeModel getAbstractOrderEntryType(AbstractOrderModel order)
ReturnsComposedTypeModel
of order entry that best match the target order.- Parameters:
order
- targetAbstractOrderModel
- Returns:
ComposedTypeModel
of given order's entries.
-
getAbstractOrderEntryClassForType
java.lang.Class getAbstractOrderEntryClassForType(ComposedTypeModel entryType)
Convenience method for resolvingClass
of the given order entryComposedTypeModel
.- Parameters:
entryType
- -ComposedTypeModel
you want to check class for.- Returns:
Class
that corresponds to the type.
-
-