Interface EntitlementProvider<P extends Entitlement>

All Known Implementing Classes:
ExternalEntitlementProvider

public interface EntitlementProvider<P extends Entitlement>
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<P>
    readEntitlements(ListEntitlementsRequest listEntitlementsRequest, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Retrieves entitlements filtered by the request
    org.springframework.data.domain.Page<P>
    readEntitlementsBySubscription(Subscription subscription, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Retrieves entitlements connected to the subscription
    revokeEntitlements(RevokeEntitlementsRequest revokeEntitlementsRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Revokes entitlements filtered by the request
    revokeEntitlementsForSubscription(Subscription subscription, Date revokeOn, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Revokes entitlements connected to the subscription
  • Method Details

    • readEntitlementsBySubscription

      org.springframework.data.domain.Page<P> readEntitlementsBySubscription(Subscription subscription, org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Retrieves entitlements connected to the subscription
    • readEntitlements

      org.springframework.data.domain.Page<P> readEntitlements(ListEntitlementsRequest listEntitlementsRequest, org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Retrieves entitlements filtered by the request
    • revokeEntitlementsForSubscription

      List<P> revokeEntitlementsForSubscription(Subscription subscription, Date revokeOn, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Revokes entitlements connected to the subscription
    • revokeEntitlements

      List<P> revokeEntitlements(RevokeEntitlementsRequest revokeEntitlementsRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Revokes entitlements filtered by the request