Class DefaultSubscriptionAdjustmentService<P extends SubscriptionAdjustment>

java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.subscription.service.impl.DefaultSubscriptionAdjustmentService<P>
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>, SubscriptionAdjustmentService<P>

public class DefaultSubscriptionAdjustmentService<P extends SubscriptionAdjustment> extends com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P> implements SubscriptionAdjustmentService<P>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected SubscriptionAdjustmentRepository<com.broadleafcommerce.data.tracking.core.Trackable>
     
    protected com.broadleafcommerce.data.tracking.core.messaging.TransitionListener
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultSubscriptionAdjustmentService(SubscriptionAdjustmentRepository<com.broadleafcommerce.data.tracking.core.Trackable> repo, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    commit(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Apply any uncommitted changes to the production state.
    void
    delete(String adjustmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    findAllByIds(Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    findAllBySubscriptionIdsIn(@NonNull Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all of the SubscriptionAdjustments for all the provided IDs.
    findById(String adjustmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    findBySubscriptionId(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    void
    revert(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Revert any uncommitted changes.

    Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService

    convertFromPersistentDomain, convertToPersistentDomain, create, createAll, createAllAllowingPartialSuccess, getHelper, getRepository, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSort

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

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

    Methods inherited from interface com.broadleafcommerce.subscription.service.SubscriptionAdjustmentService

    addAdjustment, findAllByIds, findById, findForSubscriptionId, removeAdjustment