public class PlanAligner extends BaseAligner
TimedPhase when creating, changing Plan or to compute
next Phase on current Plan.| Constructor and Description |
|---|
PlanAligner() |
| Modifier and Type | Method and Description |
|---|---|
TimedPhase[] |
getCurrentAndNextTimedPhaseOnCreate(org.joda.time.DateTime alignStartDate,
org.joda.time.DateTime bundleStartDate,
Plan plan,
PhaseType initialPhase,
java.lang.String priceList,
org.joda.time.DateTime effectiveDate,
Catalog catalog,
InternalTenantContext context)
Returns the current and next phase for the subscription in creation
|
TimedPhase |
getCurrentTimedPhaseOnChange(DefaultSubscriptionBase subscription,
Plan plan,
org.joda.time.DateTime effectiveDate,
PhaseType newPlanInitialPhaseType,
Catalog catalog,
InternalTenantContext context)
Returns current Phase for that Plan change
|
TimedPhase |
getNextTimedPhase(DefaultSubscriptionBase subscription,
org.joda.time.DateTime effectiveDate,
Catalog catalog,
InternalTenantContext context)
Returns next Phase for that SubscriptionBase at a point in time
|
TimedPhase |
getNextTimedPhaseOnChange(DefaultSubscriptionBase subscription,
Plan plan,
org.joda.time.DateTime effectiveDate,
PhaseType newPlanInitialPhaseType,
Catalog catalog,
InternalTenantContext context)
Returns next Phase for that Plan change
|
addDuration, removeDurationpublic TimedPhase[] getCurrentAndNextTimedPhaseOnCreate(org.joda.time.DateTime alignStartDate, org.joda.time.DateTime bundleStartDate, Plan plan, @Nullable PhaseType initialPhase, java.lang.String priceList, org.joda.time.DateTime effectiveDate, Catalog catalog, InternalTenantContext context) throws CatalogApiException, SubscriptionBaseApiException
alignStartDate - the subscription (align) startDate for the subscriptionbundleStartDate - the bundle startDate used alignmentplan - the current PlaninitialPhase - the initialPhase on which we should create that subscription. can be nullpriceList - the priceListeffectiveDate - the effective creation date (driven by the catalog policy, i.e. when the creation occurs)CatalogApiException - for catalog errorsSubscriptionBaseApiException - for subscription errorspublic TimedPhase getCurrentTimedPhaseOnChange(DefaultSubscriptionBase subscription, Plan plan, org.joda.time.DateTime effectiveDate, PhaseType newPlanInitialPhaseType, Catalog catalog, InternalTenantContext context) throws CatalogApiException, SubscriptionBaseApiException
subscription - the subscription in change (only start date, bundle start date, current phase, plan and pricelist
are looked at)plan - the current PlaneffectiveDate - the effective change date (driven by the catalog policy, i.e. when the change occurs)newPlanInitialPhaseType - the phase on which to start when switching to new planCatalogApiException - for catalog errorsSubscriptionBaseApiException - for subscription errorspublic TimedPhase getNextTimedPhaseOnChange(DefaultSubscriptionBase subscription, Plan plan, org.joda.time.DateTime effectiveDate, PhaseType newPlanInitialPhaseType, Catalog catalog, InternalTenantContext context) throws CatalogApiException, SubscriptionBaseApiException
subscription - the subscription in change (only start date, bundle start date, current phase, plan and pricelist
are looked at)plan - the current PlaneffectiveDate - the effective change date (driven by the catalog policy, i.e. when the change occurs)newPlanInitialPhaseType - the phase on which to start when switching to new planCatalogApiException - for catalog errorsSubscriptionBaseApiException - for subscription errorspublic TimedPhase getNextTimedPhase(DefaultSubscriptionBase subscription, org.joda.time.DateTime effectiveDate, Catalog catalog, InternalTenantContext context)
subscription - the subscription for which we need to compute the next Phase eventCopyright © 2010-2018. All Rights Reserved.