public class AddonUtils extends Object
| Constructor and Description |
|---|
AddonUtils(CatalogService catalogService) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAddonCreationRights(DefaultSubscriptionBase baseSubscription,
Plan targetAddOnPlan) |
boolean |
isAddonAvailable(Product baseProduct,
Plan targetAddOnPlan) |
boolean |
isAddonAvailableFromPlanName(String basePlanName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan) |
boolean |
isAddonAvailableFromProdName(String baseProductName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan) |
boolean |
isAddonIncluded(Product baseProduct,
Plan targetAddOnPlan) |
boolean |
isAddonIncludedFromPlanName(String basePlanName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan) |
boolean |
isAddonIncludedFromProdName(String baseProductName,
org.joda.time.DateTime requestedDate,
Plan targetAddOnPlan) |
@Inject public AddonUtils(CatalogService catalogService)
public void checkAddonCreationRights(DefaultSubscriptionBase baseSubscription, Plan targetAddOnPlan) throws SubscriptionBaseApiException, CatalogApiException
public boolean isAddonAvailableFromProdName(String baseProductName, org.joda.time.DateTime requestedDate, Plan targetAddOnPlan)
public boolean isAddonAvailableFromPlanName(String basePlanName, org.joda.time.DateTime requestedDate, Plan targetAddOnPlan)
public boolean isAddonIncludedFromProdName(String baseProductName, org.joda.time.DateTime requestedDate, Plan targetAddOnPlan)
public boolean isAddonIncludedFromPlanName(String basePlanName, org.joda.time.DateTime requestedDate, Plan targetAddOnPlan)
Copyright © 2010-2013. All Rights Reserved.