Interface SubscriptionAdjustmentService<P extends SubscriptionAdjustment>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
- All Known Implementing Classes:
DefaultSubscriptionAdjustmentService
public interface SubscriptionAdjustmentService<P extends SubscriptionAdjustment>
extends com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PaddAdjustment(P subscriptionAdjustment) Deprecated.voidcommit(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Apply any uncommitted changes to the production state.findAllByIds(Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findAllByIds(List<String> ids) Deprecated.UsefindAllByIds(Collection, ContextInfo)insteadfindAllBySubscriptionIdsIn(Collection<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all of theSubscriptionAdjustmentsfor all the providedIDs.Deprecated.UsefindById(String, ContextInfo)insteadfindById(String adjustmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findBySubscriptionId(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findForSubscriptionId(String subscriptionId) Deprecated.UsefindBySubscriptionId(String, ContextInfo)insteaddefault voidremoveAdjustment(String adjustmentId) Deprecated.UseCrudEntityService.delete(String, ContextInfo)insteadvoidrevert(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Revert any uncommitted changes.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
-
Method Details
-
findById
Deprecated.UsefindById(String, ContextInfo)instead -
findById
-
findAllByIds
Deprecated.UsefindAllByIds(Collection, ContextInfo)instead -
findAllByIds
List<P> findAllByIds(Collection<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
findAllBySubscriptionIdsIn
List<P> findAllBySubscriptionIdsIn(Collection<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all of theSubscriptionAdjustmentsfor all the providedIDs.- Parameters:
ids- TheSubscription IDswhoseSubscriptionAdjustmentsshould be read.contextInfo- Additional sandbox and multitenant info- Returns:
- All of the
SubscriptionAdjustmentsfor all the providedIDs.
-
findForSubscriptionId
Deprecated.UsefindBySubscriptionId(String, ContextInfo)instead -
findBySubscriptionId
-
addAdjustment
Deprecated.UseCrudEntityService.create(Object, ContextInfo)instead -
removeAdjustment
Deprecated.UseCrudEntityService.delete(String, ContextInfo)instead -
commit
void commit(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Apply any uncommitted changes to the production state. Subscriptions are not only locked during a modification flow, but changes are also stored in a temporary modification state. When the modification flow is complete, this method is called to finalize the changes.Special note, during the modification flow, any retrieval of the subscription (and dependents) will return the modified state. However, the billing view of the subscription will continue to see the unmodified state until this method is called and the changes are finalized.
- Parameters:
subscriptionId- the subscription to commitcontextInfo- context information around multi-tenant state
-
revert
void revert(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Revert any uncommitted changes. This will remove any changes that have been made during the modification flow and leave the production state untouched.- Parameters:
subscriptionId- the subscription to revertcontextInfo- context information around multi-tenant state- See Also:
-
CrudEntityService.create(Object, ContextInfo)instead