Class ConsignmentPaymentCapturedDenialStrategy

java.lang.Object
de.hybris.platform.ordercancel.impl.denialstrategies.AbstractCancelDenialStrategy
de.hybris.platform.ordercancel.impl.denialstrategies.ConsignmentPaymentCapturedDenialStrategy
All Implemented Interfaces:
OrderCancelDenialStrategy

public class ConsignmentPaymentCapturedDenialStrategy extends AbstractCancelDenialStrategy implements OrderCancelDenialStrategy
This strategy forbids order cancellation if if the system captures payment on consignment level and the payment has been captured for all the consignments and the order doesn't have any unallocated items
  • Constructor Details

    • ConsignmentPaymentCapturedDenialStrategy

      public ConsignmentPaymentCapturedDenialStrategy()
  • Method Details

    • getCancelDenialReason

      public OrderCancelDenialReason getCancelDenialReason(OrderCancelConfigModel configuration, OrderModel order, PrincipalModel requestor, boolean partialCancel, boolean partialEntryCancel)
      Description copied from interface: OrderCancelDenialStrategy
      Determines cancel possibility for given conditions.
      Specified by:
      getCancelDenialReason in interface OrderCancelDenialStrategy
      order - Order that is subject to cancel
      requestor - 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)
      Returns:
      Returns an OrderCancelDenialReason object if cancel is denied for given conditions. Returns null, if cancel is not denied (i.e. it is allowed.)
    • getNotCancellableConsignmentStatuses

      protected Collection<ConsignmentStatus> getNotCancellableConsignmentStatuses()
    • setNotCancellableConsignmentStatuses

      public void setNotCancellableConsignmentStatuses(Collection<ConsignmentStatus> notCancellableConsignmentStatuses)
    • getConfigurationService

      protected ConfigurationService getConfigurationService()
    • setConfigurationService

      public void setConfigurationService(ConfigurationService configurationService)