Examples of LifecycleServiceClient


Examples of org.wso2.carbon.governance.custom.lifecycles.checklist.ui.clients.LifecycleServiceClient

import javax.servlet.http.HttpServletRequest;

public class InvokeAspectProcessor {

     public static void invokeAspect(HttpServletRequest request, ServletConfig config) throws Exception {
         LifecycleServiceClient lifecycleServiceClient = new LifecycleServiceClient(config, request.getSession());

         String path = request.getParameter("path");
         String aspect = request.getParameter("aspect");
         String action = request.getParameter("action");
         String[] items = request.getParameterValues("items");   /* "true, false, true, false"*/
         String versionString = request.getParameter("versionString");

         if (!versionString.trim().equals("")) {
             String[] keySetWithValues = versionString.split("\\^\\|\\^");
             String[][] resourceVersionArray = new String[keySetWithValues.length][2];

             for (int i = 0; i < keySetWithValues.length; i++) {
                 String keySetWithValue = keySetWithValues[i];
                 String[] keyAndValue = keySetWithValue.split("\\^\\^");
                 resourceVersionArray[i][0] = keyAndValue[0];
                 resourceVersionArray[i][1] = keyAndValue[1];
             }

             lifecycleServiceClient.invokeAspectWithParams(path, aspect, action, items,resourceVersionArray);
         }
         else{
             lifecycleServiceClient.invokeAspect(path, aspect, action, items);
         }
     }
View Full Code Here

Examples of org.wso2.carbon.governance.custom.lifecycles.checklist.ui.clients.LifecycleServiceClient

     }

    public static String[] getAllDependencies(HttpServletRequest request, ServletConfig config) throws Exception {
        String path = request.getParameter("path");

        LifecycleServiceClient lifecycleServiceClient = new LifecycleServiceClient(config,request.getSession());
        return lifecycleServiceClient.getAllDependencies(path);

    }
View Full Code Here

Examples of org.wso2.carbon.governance.custom.lifecycles.checklist.ui.clients.LifecycleServiceClient

        String path = request.getParameter("path");
        String aspect = request.getParameter("aspect");

       
        LifecycleServiceClient lifecycleServiceClient = new LifecycleServiceClient(config, request.getSession());
        lifecycleServiceClient.addAspect(path, aspect);
    }
View Full Code Here

Examples of org.wso2.carbon.governance.custom.lifecycles.checklist.ui.clients.LifecycleServiceClient

        String path = request.getParameter("path");
        String aspect = request.getParameter("aspect");


        LifecycleServiceClient lifecycleServiceClient = new LifecycleServiceClient(config, request.getSession());
        lifecycleServiceClient.removeAspect(path, aspect);
    }
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.