Interface CancellationPolicyService<CP extends CancellationPolicy>

Type Parameters:
CP - an instance of CancellationPolicy
All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<CP>, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<CP>
All Known Implementing Classes:
DefaultCancellationPolicyService

public interface CancellationPolicyService<CP extends CancellationPolicy> extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<CP>
Service layer for interacting with CancellationPolicy
Author:
karanjariwala
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<CP>
    readAllByName(String name, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads a Page of CancellationPolicy for the given name and filters.
    readCancellationPolicyByName(String name, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads a CancellationPolicy by its name.

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService

    create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService

    readAll, readAll, readAll, readAll
  • Method Details

    • readCancellationPolicyByName

      CP readCancellationPolicyByName(String name, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads a CancellationPolicy by its name.
      Parameters:
      name - the name of the CancellationPolicy
      contextInfo - context information around sandboxing and multitenant state
      Returns:
      A CancellationPolicy that matches the name
    • readAllByName

      org.springframework.data.domain.Page<CP> readAllByName(@Nullable String name, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads a Page of CancellationPolicy for the given name and filters.
      Parameters:
      name - the name by which the CancellationPolicy is to be searched for.
      filters - additional filters to be applied for fetching the CancellationPolicies
      pageable - the requested page of results from the database
      contextInfo - context information around sandboxing and multitenant state
      Returns:
      A Page of CancellationPolicy