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 target AbstractOrderModel.
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 of
AbstractOrderModel.ENTRIES attribute.
-
Method Summary
Modifier and TypeMethodDescriptionConvenience method for resolvingClassof the given order entryComposedTypeModel.ReturnsComposedTypeModelof order entry that best match the target order.
-
Method Details
-
getAbstractOrderEntryType
ReturnsComposedTypeModelof order entry that best match the target order.- Parameters:
order- targetAbstractOrderModel- Returns:
ComposedTypeModelof given order's entries.
-
getAbstractOrderEntryClassForType
Convenience method for resolvingClassof the given order entryComposedTypeModel.- Parameters:
entryType- -ComposedTypeModelyou want to check class for.- Returns:
Classthat corresponds to the type.
-