public class AddonUtils extends Object
| Constructor and Description |
|---|
AddonUtils(CatalogService catalogService) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkAddonCreationRights(DefaultSubscriptionBase baseSubscription,
Plan targetAddOnPlan,
org.joda.time.DateTime requestedDate,
InternalTenantContext context) |
int |
countExistingAddOnsWithSamePlanName(List<SubscriptionBase> subscriptionsForBundle,
String planName) |
boolean |
isAddonAvailableFromPlanName(String basePlanName,
Plan targetAddOnPlan,
org.joda.time.DateTime requestedDate,
InternalTenantContext context) |
boolean |
isAddonAvailableFromProdName(String baseProductName,
Plan targetAddOnPlan,
org.joda.time.DateTime requestedDate,
InternalTenantContext context) |
boolean |
isAddonIncludedFromPlanName(String basePlanName,
Plan targetAddOnPlan,
org.joda.time.DateTime requestedDate,
InternalTenantContext context) |
boolean |
isAddonIncludedFromProdName(String baseProductName,
Plan targetAddOnPlan,
org.joda.time.DateTime requestedDate,
InternalTenantContext context) |
@Inject public AddonUtils(CatalogService catalogService)
public void checkAddonCreationRights(DefaultSubscriptionBase baseSubscription, Plan targetAddOnPlan, org.joda.time.DateTime requestedDate, InternalTenantContext context) throws SubscriptionBaseApiException, CatalogApiException
public boolean isAddonAvailableFromProdName(String baseProductName, Plan targetAddOnPlan, org.joda.time.DateTime requestedDate, InternalTenantContext context)
public boolean isAddonAvailableFromPlanName(String basePlanName, Plan targetAddOnPlan, org.joda.time.DateTime requestedDate, InternalTenantContext context)
public boolean isAddonIncludedFromProdName(String baseProductName, Plan targetAddOnPlan, org.joda.time.DateTime requestedDate, InternalTenantContext context)
public boolean isAddonIncludedFromPlanName(String basePlanName, Plan targetAddOnPlan, org.joda.time.DateTime requestedDate, InternalTenantContext context)
public int countExistingAddOnsWithSamePlanName(List<SubscriptionBase> subscriptionsForBundle, String planName)
Copyright © 2010-2017. All Rights Reserved.