public class StandaloneCatalog extends org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog> implements StaticCatalog, java.io.Externalizable
| Modifier | Constructor and Description |
|---|---|
|
StandaloneCatalog() |
protected |
StandaloneCatalog(java.util.Date effectiveDate) |
public StandaloneCatalog()
protected StandaloneCatalog(java.util.Date effectiveDate)
public java.lang.String getCatalogName()
getCatalogName in interface StaticCatalogpublic StandaloneCatalog setCatalogName(java.lang.String catalogName)
public java.util.Date getEffectiveDate()
getEffectiveDate in interface StaticCatalogpublic StandaloneCatalog setEffectiveDate(java.util.Date effectiveDate)
public java.util.Collection<Product> getProducts()
getProducts in interface StaticCatalogpublic StandaloneCatalog setProducts(java.lang.Iterable<Product> products)
public CatalogEntityCollection<Product> getCatalogEntityCollectionProduct()
public Unit[] getUnits()
getUnits in interface StaticCatalogpublic StandaloneCatalog setUnits(DefaultUnit[] units)
public Currency[] getSupportedCurrencies()
getSupportedCurrencies in interface StaticCatalogpublic StandaloneCatalog setSupportedCurrencies(Currency[] supportedCurrencies)
public java.util.Collection<Plan> getPlans()
getPlans in interface StaticCatalogpublic StandaloneCatalog setPlans(java.lang.Iterable<Plan> plans)
public CatalogEntityCollection<Plan> getPlansMap()
public boolean isTemplateCatalog()
public org.killbill.billing.catalog.api.rules.PlanRules getPlanRules()
getPlanRules in interface StaticCatalogpublic StandaloneCatalog setPlanRules(DefaultPlanRules planRules)
public DefaultPriceListSet getPriceLists()
getPriceLists in interface StaticCatalogpublic StandaloneCatalog setPriceLists(DefaultPriceListSet priceLists)
public Plan createOrFindPlan(PlanSpecifier spec, PlanPhasePriceOverridesWithCallContext unused) throws CatalogApiException
createOrFindPlan in interface StaticCatalogCatalogApiExceptionpublic DefaultPlan findPlan(java.lang.String name) throws CatalogApiException
findPlan in interface StaticCatalogCatalogApiExceptionpublic Product findProduct(java.lang.String name) throws CatalogApiException
findProduct in interface StaticCatalogCatalogApiExceptionpublic PlanPhase findPhase(java.lang.String name) throws CatalogApiException
findPhase in interface StaticCatalogCatalogApiExceptionpublic PriceList findPriceList(java.lang.String name) throws CatalogApiException
findPriceList in interface StaticCatalogCatalogApiExceptionpublic org.killbill.xmlloader.ValidationErrors validate(StandaloneCatalog catalog, org.killbill.xmlloader.ValidationErrors errors)
validate in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public void initialize(StandaloneCatalog catalog)
initialize in class org.killbill.xmlloader.ValidatingConfig<StandaloneCatalog>public BillingMode getRecurringBillingMode()
public StandaloneCatalog setRecurringBillingMode(BillingMode recurringBillingMode)
public java.util.List<Listing> getAvailableAddOnListings(java.lang.String baseProductName, @Nullable java.lang.String priceListName)
getAvailableAddOnListings in interface StaticCatalogpublic java.util.List<Listing> getAvailableBasePlanListings()
getAvailableBasePlanListings in interface StaticCatalogpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionCopyright © 2010-2020. All Rights Reserved.