Examples of UpgradeServiceClient


Examples of org.wso2.carbon.upgrade.ui.clients.UpgradeServiceClient

    public static PackageInfoBean[] getPackageInfo(
            ServletConfig config, HttpSession session) throws UIException {

        try {
            UpgradeServiceClient serviceClient = new UpgradeServiceClient(config, session);
            return serviceClient.getPackageInfo();
        } catch (Exception e) {
            String msg = "Failed to get the package information.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
View Full Code Here

Examples of org.wso2.carbon.upgrade.ui.clients.UpgradeServiceClient

    public static SubscriptionInfoBean getCurrentSubscription(
            ServletConfig config, HttpSession session) throws UIException {

        try {
            UpgradeServiceClient serviceClient = new UpgradeServiceClient(config, session);
            return serviceClient.getCurrentSubscription();
        } catch (Exception e) {
            String msg = "Failed to get the current subscription.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
View Full Code Here

Examples of org.wso2.carbon.upgrade.ui.clients.UpgradeServiceClient

            ServletConfig config, HttpSession session) throws UIException {
        try {
            String packageName = (String)session.getAttribute("packageName");
            String duration = (String)session.getAttribute("duration");

            UpgradeServiceClient serviceClient = new UpgradeServiceClient(config, session);
            serviceClient.updateSubscription(packageName, duration);
        } catch (Exception e) {
            String msg = "Failed to update the subscription.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
View Full Code Here

Examples of org.wso2.carbon.upgrade.ui.clients.UpgradeServiceClient

    public static void cancelSubscription(
            ServletConfig config, HttpSession session) throws UIException {

        try {
            UpgradeServiceClient serviceClient = new UpgradeServiceClient(config, session);
            serviceClient.cancelSubscription();
        } catch (Exception e) {
            String msg = "Failed to cancel the current subscription.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
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.