Interface OrderCancelDenialReason

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultOrderCancelDenialReason

public interface OrderCancelDenialReason extends Serializable
Marker interface used for objects that represents Order Cancel denial reasons. These denial reasons are used to check exact reasons of why the method OrderCancelService.isCancelPossible(de.hybris.platform.core.model.order.OrderModel, de.hybris.platform.core.model.security.PrincipalModel, boolean, boolean) resulted in the cancel denial. Users can use provided DefaultOrderCancelDenialReason class as an implementation for this interface, or use their own denial reason class. How is OrderCancelDenialReason used: Example configuration to put into spring xml configuration file:
 
 <bean id="someDenialStrategy" class="..." scope="...">
 
     ...

 	<property name="reason">
 		<bean class="de.hybris.platform.ordercancel.DefaultOrderCancelDenialReason" >
 			<property name="code" value="2" />
 			<property name="description" value="aMessage" />
 		</bean>
 	</property>
 
 </bean>