com.ning.billing.subscription.api.timeline
Class DefaultSubscriptionBaseTimelineApi

java.lang.Object
  extended by com.ning.billing.subscription.api.SubscriptionApiBase
      extended by com.ning.billing.subscription.api.timeline.DefaultSubscriptionBaseTimelineApi
All Implemented Interfaces:
SubscriptionBaseTimelineApi

public class DefaultSubscriptionBaseTimelineApi
extends SubscriptionApiBase
implements SubscriptionBaseTimelineApi


Field Summary
 
Fields inherited from class com.ning.billing.subscription.api.SubscriptionApiBase
apiService, clock, dao
 
Constructor Summary
DefaultSubscriptionBaseTimelineApi(CatalogService catalogService, SubscriptionBaseApiService apiService, RepairSubscriptionLifecycleDao repairDao, SubscriptionDao dao, SubscriptionBaseApiService repairApiService, InternalCallContextFactory internalCallContextFactory, com.ning.billing.clock.Clock clock, AddonUtils addonUtils)
           
 
Method Summary
 BundleBaseTimeline getBundleTimeline(SubscriptionBaseBundle bundle, TenantContext context)
           
 BundleBaseTimeline getBundleTimeline(UUID accountId, String bundleName, TenantContext context)
           
 BundleBaseTimeline getBundleTimeline(UUID bundleId, TenantContext context)
           
 BundleBaseTimeline repairBundle(BundleBaseTimeline input, boolean dryRun, CallContext context)
           
 
Methods inherited from class com.ning.billing.subscription.api.SubscriptionApiBase
createSubscriptionForApiUse, createSubscriptionForApiUse, createSubscriptionsForApiUse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSubscriptionBaseTimelineApi

@Inject
public DefaultSubscriptionBaseTimelineApi(CatalogService catalogService,
                                                 SubscriptionBaseApiService apiService,
                                                 RepairSubscriptionLifecycleDao repairDao,
                                                 SubscriptionDao dao,
                                                 SubscriptionBaseApiService repairApiService,
                                                 InternalCallContextFactory internalCallContextFactory,
                                                 com.ning.billing.clock.Clock clock,
                                                 AddonUtils addonUtils)
Method Detail

getBundleTimeline

public BundleBaseTimeline getBundleTimeline(SubscriptionBaseBundle bundle,
                                            TenantContext context)
                                     throws SubscriptionBaseRepairException
Specified by:
getBundleTimeline in interface SubscriptionBaseTimelineApi
Throws:
SubscriptionBaseRepairException

getBundleTimeline

public BundleBaseTimeline getBundleTimeline(UUID accountId,
                                            String bundleName,
                                            TenantContext context)
                                     throws SubscriptionBaseRepairException
Specified by:
getBundleTimeline in interface SubscriptionBaseTimelineApi
Throws:
SubscriptionBaseRepairException

getBundleTimeline

public BundleBaseTimeline getBundleTimeline(UUID bundleId,
                                            TenantContext context)
                                     throws SubscriptionBaseRepairException
Specified by:
getBundleTimeline in interface SubscriptionBaseTimelineApi
Throws:
SubscriptionBaseRepairException

repairBundle

public BundleBaseTimeline repairBundle(BundleBaseTimeline input,
                                       boolean dryRun,
                                       CallContext context)
                                throws SubscriptionBaseRepairException
Specified by:
repairBundle in interface SubscriptionBaseTimelineApi
Throws:
SubscriptionBaseRepairException


Copyright © 2010-2013. All Rights Reserved.