Class ExternalCancellationPolicyProvider<C extends CancellationPolicy>

java.lang.Object
com.broadleafcommerce.subscriptionoperation.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.subscriptionoperation.service.provider.external.ExternalCancellationPolicyProvider<C>
All Implemented Interfaces:
CancellationPolicyProvider<C>

public class ExternalCancellationPolicyProvider<C extends CancellationPolicy> extends AbstractExternalProvider implements CancellationPolicyProvider<C>
  • Constructor Details

    • ExternalCancellationPolicyProvider

      public ExternalCancellationPolicyProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCancellationPolicyProviderProperties properties)
  • Method Details

    • readById

      public C readById(@NonNull @NonNull String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: CancellationPolicyProvider
      Reads a CancellationPolicy by its id.
      Specified by:
      readById in interface CancellationPolicyProvider<C extends CancellationPolicy>
      Parameters:
      id - the id of the CancellationPolicy
      contextInfo - context information around multi-tenant state
      Returns:
      the CancellationPolicy with the provided id
    • readAll

      public org.springframework.data.domain.Page<C> readAll(@Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: CancellationPolicyProvider
      Reads all CancellationPolicies based on the provided filters and paging.
      Specified by:
      readAll in interface CancellationPolicyProvider<C extends CancellationPolicy>
      Parameters:
      filters - the Node filters to apply
      page - the current Pageable
      contextInfo - context information around multi-tenant state
      Returns:
      a page of CancellationPolicies
    • getBaseUri

      protected org.springframework.web.util.UriComponentsBuilder getBaseUri()
      Gets the base URI common to all requests this provider will make.
      Returns:
      a URI components builder with the base URI set up
    • getType

      protected org.springframework.core.ParameterizedTypeReference<C> getType()
    • getPageType

      protected org.springframework.core.ParameterizedTypeReference<ResponsePageGenerator<C>> getPageType()
    • getServiceClient

      protected String getServiceClient()
    • getProperties