Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2013 Ning, Inc.
   *
   * Ning licenses this file to you under the Apache License, version 2.0
   * (the "License"); you may not use this file except in compliance with the
   * License.  You may obtain a copy of the License at:
   *
   *    http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
  * License for the specific language governing permissions and limitations
  * under the License.
  */
 
 package org.killbill.billing.catalog.api;
 
 import java.util.Date;
 import java.util.List;

The interface StaticCatalog gives the view of that Catalog at a given time. This represents a specific version of the Catalog
 
 public interface StaticCatalog {

    

Returns:
the Catalog name
 
     public String getCatalogName();

    

Returns:
the recurring billing mode for this catalog
 
     public BillingMode getRecurringBillingMode();

    

Returns:
the date at which this version of Catalog becomes effective
Throws:
CatalogApiException
 
     public Date getEffectiveDate() throws CatalogApiException;

    

Returns:
an array of supported Currency
Throws:
CatalogApiException
 
     public Currency[] getCurrentSupportedCurrencies() throws CatalogApiException;

    

Returns:
an array of supported Product
Throws:
CatalogApiException
 
     public Product[] getCurrentProducts() throws CatalogApiException;

    

Returns:
an array of supported Unit
Throws:
CatalogApiException
 
     public Unit[] getCurrentUnits() throws CatalogApiException;

    

Returns:
an array of supported Plan
Throws:
CatalogApiException
 
     public Plan[] getCurrentPlans() throws CatalogApiException;

    

Parameters:
productName the Product name
billingPeriod the billingPeriod
priceList the name of the PriceList
Returns:
the Plan
Throws:
CatalogApiException if not such Plan can be found
 
     public Plan findCurrentPlan(String productNameBillingPeriod billingPeriodString priceListthrows CatalogApiException;

    

Parameters:
name the name of the
Returns:
the Plan
Throws:
CatalogApiException if not such Plan can be found
 
     public Plan findCurrentPlan(String namethrows CatalogApiException;

    

Parameters:
name the name of the Product
Returns:
the Product
Throws:
CatalogApiException if no such Product exists
 
     public Product findCurrentProduct(String namethrows CatalogApiException;

    

Parameters:
name the name of the PlanPhase
Returns:
the PlanPhase
Throws:
CatalogApiException if no such PlanPhase exists
 
     public PlanPhase findCurrentPhase(String namethrows CatalogApiException;

    

Parameters:
name the name of the PriceList
Returns:
the PriceList
Throws:
CatalogApiException if no such PriceList exists
    // TODO private APIs ?
                                                PlanSpecifier tothrows CatalogApiException;
                                       PlanSpecifier tothrows CatalogApiException;
                                                   PlanSpecifier tothrows CatalogApiException;
    public boolean canCreatePlan(PlanSpecifier specifierthrows CatalogApiException;
    public List<ListinggetAvailableAddonListings(String baseProductNamethrows CatalogApiException;
    boolean compliesWithLimits(String phaseNameString unitdouble valuethrows CatalogApiException;
New to GrepCode? Check out our FAQ X