public class DefaultVersionedCatalog extends org.killbill.xmlloader.ValidatingConfig<DefaultVersionedCatalog> implements VersionedCatalog<StandaloneCatalog>, java.io.Externalizable
| Constructor and Description |
|---|
DefaultVersionedCatalog() |
DefaultVersionedCatalog(org.killbill.clock.Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(StandaloneCatalog e) |
BillingAlignment |
billingAlignment(PlanPhaseSpecifier planPhase) |
BillingAlignment |
billingAlignment(PlanPhaseSpecifier planPhase,
org.joda.time.DateTime requestedDate,
org.joda.time.DateTime subscriptionStartDate) |
Plan |
createOrFindCurrentPlan(PlanSpecifier spec,
PlanPhasePriceOverridesWithCallContext overrides) |
Plan |
createOrFindPlan(PlanSpecifier spec,
PlanPhasePriceOverridesWithCallContext overrides,
org.joda.time.DateTime requestedDate) |
Plan |
createOrFindPlan(PlanSpecifier spec,
PlanPhasePriceOverridesWithCallContext overrides,
org.joda.time.DateTime requestedDate,
org.joda.time.DateTime subscriptionStartDate) |
PlanPhase |
findCurrentPhase(java.lang.String name) |
Plan |
findCurrentPlan(java.lang.String name) |
PriceList |
findCurrentPricelist(java.lang.String name) |
Product |
findCurrentProduct(java.lang.String name) |
PlanPhase |
findPhase(java.lang.String phaseName,
org.joda.time.DateTime requestedDate,
org.joda.time.DateTime subscriptionStartDate) |
Plan |
findPlan(java.lang.String name,
org.joda.time.DateTime requestedDate) |
Plan |
findPlan(java.lang.String name,
org.joda.time.DateTime requestedDate,
org.joda.time.DateTime subscriptionStartDate) |
PriceList |
findPriceListForPlan(java.lang.String planName,
org.joda.time.DateTime requestedDate,
org.joda.time.DateTime subscriptionStartDate) |
Product |
findProduct(java.lang.String name,
org.joda.time.DateTime requestedDate) |
java.util.List<Listing> |
getAvailableAddOnListings(java.lang.String baseProductName,
java.lang.String priceListName) |
java.util.List<Listing> |
getAvailableBasePlanListings() |
java.lang.String |
getCatalogName() |
org.killbill.clock.Clock |
getClock() |
java.util.Collection<Plan> |
getCurrentPlans() |
java.util.Collection<Product> |
getCurrentProducts() |
Currency[] |
getCurrentSupportedCurrencies() |
Unit[] |
getCurrentUnits() |
java.util.Date |
getEffectiveDate() |
java.util.Collection<Plan> |
getPlans(org.joda.time.DateTime requestedDate) |
PriceListSet |
getPriceLists(org.joda.time.DateTime requestedDate) |
java.util.Collection<Product> |
getProducts(org.joda.time.DateTime requestedDate) |
java.util.Date |
getStandaloneCatalogEffectiveDate(org.joda.time.DateTime requestedDate) |
Currency[] |
getSupportedCurrencies(org.joda.time.DateTime requestedDate) |
Unit[] |
getUnits(org.joda.time.DateTime requestedDate) |
java.util.List<StandaloneCatalog> |
getVersions() |
void |
initialize(DefaultVersionedCatalog catalog,
java.net.URI sourceURI) |
BillingActionPolicy |
planCancelPolicy(PlanPhaseSpecifier planPhase) |
BillingActionPolicy |
planCancelPolicy(PlanPhaseSpecifier planPhase,
org.joda.time.DateTime requestedDate,
org.joda.time.DateTime subscriptionStartDate) |
PlanChangeResult |
planChange(PlanPhaseSpecifier from,
PlanSpecifier to) |
PlanChangeResult |
planChange(PlanPhaseSpecifier from,
PlanSpecifier to,
org.joda.time.DateTime requestedDate,
org.joda.time.DateTime subscriptionStartDate) |
PlanAlignmentCreate |
planCreateAlignment(PlanSpecifier specifier) |
PlanAlignmentCreate |
planCreateAlignment(PlanSpecifier specifier,
org.joda.time.DateTime requestedDate,
org.joda.time.DateTime subscriptionStartDate) |
void |
readExternal(java.io.ObjectInput in) |
org.killbill.xmlloader.ValidationErrors |
validate(DefaultVersionedCatalog catalog,
org.killbill.xmlloader.ValidationErrors errors) |
void |
writeExternal(java.io.ObjectOutput oo) |
public DefaultVersionedCatalog()
public DefaultVersionedCatalog(org.killbill.clock.Clock clock)
public org.killbill.clock.Clock getClock()
public java.util.List<StandaloneCatalog> getVersions()
getVersions in interface VersionedCatalog<StandaloneCatalog>public void add(StandaloneCatalog e)
public java.lang.String getCatalogName()
getCatalogName in interface CataloggetCatalogName in interface StaticCatalogpublic java.util.Collection<Product> getProducts(org.joda.time.DateTime requestedDate) throws CatalogApiException
getProducts in interface CatalogCatalogApiExceptionpublic Currency[] getSupportedCurrencies(org.joda.time.DateTime requestedDate) throws CatalogApiException
getSupportedCurrencies in interface CatalogCatalogApiExceptionpublic Unit[] getUnits(org.joda.time.DateTime requestedDate) throws CatalogApiException
getUnits in interface CatalogCatalogApiExceptionpublic java.util.Collection<Plan> getPlans(org.joda.time.DateTime requestedDate) throws CatalogApiException
getPlans in interface CatalogCatalogApiExceptionpublic PriceListSet getPriceLists(org.joda.time.DateTime requestedDate) throws CatalogApiException
getPriceLists in interface CatalogCatalogApiExceptionpublic Plan findPlan(java.lang.String name, org.joda.time.DateTime requestedDate) throws CatalogApiException
findPlan in interface CatalogCatalogApiExceptionpublic Plan createOrFindPlan(PlanSpecifier spec, PlanPhasePriceOverridesWithCallContext overrides, org.joda.time.DateTime requestedDate) throws CatalogApiException
createOrFindPlan in interface CatalogCatalogApiExceptionpublic Plan findPlan(java.lang.String name, org.joda.time.DateTime requestedDate, org.joda.time.DateTime subscriptionStartDate) throws CatalogApiException
findPlan in interface CatalogCatalogApiExceptionpublic Plan createOrFindPlan(PlanSpecifier spec, PlanPhasePriceOverridesWithCallContext overrides, org.joda.time.DateTime requestedDate, org.joda.time.DateTime subscriptionStartDate) throws CatalogApiException
createOrFindPlan in interface CatalogCatalogApiExceptionpublic Product findProduct(java.lang.String name, org.joda.time.DateTime requestedDate) throws CatalogApiException
findProduct in interface CatalogCatalogApiExceptionpublic PlanPhase findPhase(java.lang.String phaseName, org.joda.time.DateTime requestedDate, org.joda.time.DateTime subscriptionStartDate) throws CatalogApiException
findPhase in interface CatalogCatalogApiExceptionpublic PriceList findPriceListForPlan(java.lang.String planName, org.joda.time.DateTime requestedDate, org.joda.time.DateTime subscriptionStartDate) throws CatalogApiException
findPriceListForPlan in interface CatalogCatalogApiExceptionpublic BillingActionPolicy planCancelPolicy(PlanPhaseSpecifier planPhase, org.joda.time.DateTime requestedDate, org.joda.time.DateTime subscriptionStartDate) throws CatalogApiException
planCancelPolicy in interface CatalogCatalogApiExceptionpublic PlanAlignmentCreate planCreateAlignment(PlanSpecifier specifier, org.joda.time.DateTime requestedDate, org.joda.time.DateTime subscriptionStartDate) throws CatalogApiException
planCreateAlignment in interface CatalogCatalogApiExceptionpublic BillingAlignment billingAlignment(PlanPhaseSpecifier planPhase, org.joda.time.DateTime requestedDate, org.joda.time.DateTime subscriptionStartDate) throws CatalogApiException
billingAlignment in interface CatalogCatalogApiExceptionpublic PlanChangeResult planChange(PlanPhaseSpecifier from, PlanSpecifier to, org.joda.time.DateTime requestedDate, org.joda.time.DateTime subscriptionStartDate) throws CatalogApiException
planChange in interface CatalogCatalogApiExceptionpublic void initialize(DefaultVersionedCatalog catalog, java.net.URI sourceURI)
initialize in class org.killbill.xmlloader.ValidatingConfig<DefaultVersionedCatalog>public org.killbill.xmlloader.ValidationErrors validate(DefaultVersionedCatalog catalog, org.killbill.xmlloader.ValidationErrors errors)
validate in class org.killbill.xmlloader.ValidatingConfig<DefaultVersionedCatalog>public java.util.Date getEffectiveDate()
throws CatalogApiException
getEffectiveDate in interface StaticCatalogCatalogApiExceptionpublic java.util.Date getStandaloneCatalogEffectiveDate(org.joda.time.DateTime requestedDate)
throws CatalogApiException
getStandaloneCatalogEffectiveDate in interface CatalogCatalogApiExceptionpublic Currency[] getCurrentSupportedCurrencies() throws CatalogApiException
getCurrentSupportedCurrencies in interface StaticCatalogCatalogApiExceptionpublic java.util.Collection<Product> getCurrentProducts() throws CatalogApiException
getCurrentProducts in interface StaticCatalogCatalogApiExceptionpublic Unit[] getCurrentUnits() throws CatalogApiException
getCurrentUnits in interface StaticCatalogCatalogApiExceptionpublic java.util.Collection<Plan> getCurrentPlans() throws CatalogApiException
getCurrentPlans in interface StaticCatalogCatalogApiExceptionpublic Plan createOrFindCurrentPlan(PlanSpecifier spec, PlanPhasePriceOverridesWithCallContext overrides) throws CatalogApiException
createOrFindCurrentPlan in interface StaticCatalogCatalogApiExceptionpublic Plan findCurrentPlan(java.lang.String name) throws CatalogApiException
findCurrentPlan in interface StaticCatalogCatalogApiExceptionpublic Product findCurrentProduct(java.lang.String name) throws CatalogApiException
findCurrentProduct in interface StaticCatalogCatalogApiExceptionpublic PlanPhase findCurrentPhase(java.lang.String name) throws CatalogApiException
findCurrentPhase in interface StaticCatalogCatalogApiExceptionpublic PriceList findCurrentPricelist(java.lang.String name) throws CatalogApiException
findCurrentPricelist in interface StaticCatalogCatalogApiExceptionpublic PlanChangeResult planChange(PlanPhaseSpecifier from, PlanSpecifier to) throws CatalogApiException
planChange in interface StaticCatalogCatalogApiExceptionpublic BillingActionPolicy planCancelPolicy(PlanPhaseSpecifier planPhase) throws CatalogApiException
planCancelPolicy in interface StaticCatalogCatalogApiExceptionpublic PlanAlignmentCreate planCreateAlignment(PlanSpecifier specifier) throws CatalogApiException
planCreateAlignment in interface StaticCatalogCatalogApiExceptionpublic BillingAlignment billingAlignment(PlanPhaseSpecifier planPhase) throws CatalogApiException
billingAlignment in interface StaticCatalogCatalogApiExceptionpublic java.util.List<Listing> getAvailableAddOnListings(java.lang.String baseProductName, @Nullable java.lang.String priceListName) throws CatalogApiException
getAvailableAddOnListings in interface StaticCatalogCatalogApiExceptionpublic java.util.List<Listing> getAvailableBasePlanListings() throws CatalogApiException
getAvailableBasePlanListings in interface StaticCatalogCatalogApiExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void writeExternal(java.io.ObjectOutput oo)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionCopyright © 2010-2018. All Rights Reserved.