public class DefaultRequestOriginDenialStrategy extends AbstractCancelDenialStrategy implements OrderCancelDenialStrategy
getCancelDenialReason(OrderCancelConfigModel, OrderModel, PrincipalModel, boolean, boolean) represents the
end-customer. This object is considered to be an end-customer when it's type code is equal to
Constants.TYPES.Customer| Constructor and Description |
|---|
DefaultRequestOriginDenialStrategy() |
| Modifier and Type | Method and Description |
|---|---|
OrderCancelDenialReason |
getCancelDenialReason(OrderCancelConfigModel configuration,
OrderModel order,
PrincipalModel requestor,
boolean partialCancel,
boolean partialEntryCancel)
Determines cancel possibility for given conditions.
|
TypeService |
getTypeService() |
void |
setTypeService(TypeService typeService) |
getReason, setReasonpublic OrderCancelDenialReason getCancelDenialReason(OrderCancelConfigModel configuration, OrderModel order, PrincipalModel requestor, boolean partialCancel, boolean partialEntryCancel)
OrderCancelDenialStrategygetCancelDenialReason in interface OrderCancelDenialStrategyorder - Order that is subject to cancelrequestor - Principal that originates the request ("issuer of the request"). It might be different from current
session user.partialCancel - if true, the method determines possibility of doing partial cancel. If false, it tests for complete
cancel.partialEntryCancel - only valid if partialCancel is true. If true, the method determines possibility of doing partial entry
cancel (decreasing OrderEntry quantity). If false, the method determines possibility of doing whole
entry cancel (discarding the whole OrderEntry)public TypeService getTypeService()
public void setTypeService(TypeService typeService)
typeService - the typeService to setCopyright © 2018 SAP SE. All Rights Reserved.