Examples of activateSubscription()


Examples of org.wso2.carbon.billing.core.DataAccessManager.activateSubscription()

        return subscriptionArray;
    }
   
    public boolean activateSubscription(int subscriptionId) throws Exception{
        DataAccessManager dataAccessManager = Util.getDataAccessManager();
        return dataAccessManager.activateSubscription(subscriptionId);           
    }
}
View Full Code Here

Examples of org.wso2.carbon.billing.mgt.services.BillingDataAccessService.activateSubscription()

                Subscription[] inactiveSubscriptions = dataAccessService.getInactiveSubscriptionsOfCustomer(tenantId);
                if(inactiveSubscriptions.length>0){
                    //I am doing this assuming that there wont be more than one subscription for a tenant
                    //at the time of activation. Logically it cant be.
                    subscription = inactiveSubscriptions[0];
                    boolean activated = dataAccessService.activateSubscription(subscription.getId());
                    if(activated){
                        log.debug("Subscription was activated for tenant: " + tenantId);
                    }
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.