Package org.apache.stratos.account.mgt.ui.clients

Examples of org.apache.stratos.account.mgt.ui.clients.UsagePlanClient


    }
    public static String getUsagePlanName(ServletConfig config,
                                           HttpSession session) throws Exception {
        try{
            String tenantDomain=(String)session.getAttribute("tenantDomain");
            UsagePlanClient client=new UsagePlanClient(config, session);
            return client.getUsagePlanName(tenantDomain);        
        }
        catch (Exception e){
            String msg = "Failed to get usage plan for tenant";
            log.error(msg, e);
            throw new Exception(msg, e);
View Full Code Here


        boolean updated = false;
        String tenantDomain="";
        try{
            tenantDomain=(String)session.getAttribute("tenantDomain");
            String usagePlanName=(String)request.getParameter("selectedUsagePlan");
            UsagePlanClient client=new UsagePlanClient(config, session);
            updated = client.updateUsagePlan(usagePlanName);
        }
       catch (Exception e){
            String msg = "Failed to update the usage plan for tenant: " + tenantDomain;
            log.error(msg, e);
            throw new Exception(msg, e);
View Full Code Here

TOP

Related Classes of org.apache.stratos.account.mgt.ui.clients.UsagePlanClient

Copyright © 2018 www.massapicom. 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.