Examples of LoggedUserInfoAdminStub


Examples of org.wso2.carbon.core.commons.stub.loggeduserinfo.LoggedUserInfoAdminStub

            ServletContext servletContext = session.getServletContext();
            ConfigurationContext configContext = (ConfigurationContext) servletContext
                    .getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);

            LoggedUserInfoAdminStub stub = new LoggedUserInfoAdminStub(configContext,
                    backendServerURL + "LoggedUserInfoAdmin");
            ServiceClient client = stub._getServiceClient();
            Options options = client.getOptions();
            options.setManageSession(true);
            options.setProperty(HTTPConstants.COOKIE_STRING, cookie);
            org.wso2.carbon.core.commons.stub.loggeduserinfo.LoggedUserInfo userInfo = stub.getUserInfo();

            String[] permissionArray = userInfo.getUIPermissionOfUser();
            ArrayList<String> list = new ArrayList<String>();
            for (String permission : permissionArray) {
                list.add(permission);
View Full Code Here

Examples of org.wso2.carbon.core.commons.stub.loggeduserinfo.LoggedUserInfoAdminStub

    private LoggedUserInfoAdminStub stub;

    public LoggedUserInfoClient(ConfigurationContext ctx, String serverURL, String cookie)
            throws AxisFault {
        String serviceEPR = serverURL + "LoggedUserInfoAdmin";
        stub = new LoggedUserInfoAdminStub(ctx, serviceEPR);
        ServiceClient client = stub._getServiceClient();
        Options options = client.getOptions();
        options.setManageSession(true);
        if (cookie != null) {
            options.setProperty(HTTPConstants.COOKIE_STRING, cookie);
View Full Code Here

Examples of org.wso2.carbon.core.commons.stub.loggeduserinfo.LoggedUserInfoAdminStub

     
      regenrateSession(request);

        String backendServerURL = getBackendUrl(request);
        HttpSession session = request.getSession();
        LoggedUserInfoAdminStub stub;
        String loggedinUser = null;

        if (backendServerURL == null) {
            throw new AuthenticationException("Server not initialized properly.");
        }

        try {

            stub = getLoggedUserInfoAdminStub(backendServerURL, session);
            ServiceClient client = stub._getServiceClient();

            // In side this method - Authenticators should complete the authentication with the
            // back-end service Or - it should set the required authentication headers, there are
            // required in future service calls. Also each Authenticator should know how to handle
            // the Remember Me logic.
View Full Code Here

Examples of org.wso2.carbon.core.commons.stub.loggeduserinfo.LoggedUserInfoAdminStub

            ServletContext servletContext = session.getServletContext();
            ConfigurationContext configContext = (ConfigurationContext) servletContext
                    .getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);

            LoggedUserInfoAdminStub stub = new LoggedUserInfoAdminStub(configContext,
                    backendServerURL + "LoggedUserInfoAdmin");
            ServiceClient client = stub._getServiceClient();
            Options options = client.getOptions();
            options.setManageSession(true);
            options.setProperty(HTTPConstants.COOKIE_STRING, cookie);
            org.wso2.carbon.core.commons.stub.loggeduserinfo.LoggedUserInfo userInfo = stub
                    .getUserInfo();

            String[] permissionArray = userInfo.getUIPermissionOfUser();
            ArrayList<String> list = new ArrayList<String>();
            for (String permission : permissionArray) {
View Full Code Here

Examples of org.wso2.carbon.core.commons.stub.loggeduserinfo.LoggedUserInfoAdminStub

            String msg = "Configuration context is null.";
            log.error(msg);
            throw new AxisFault(msg);
        }

        return new LoggedUserInfoAdminStub(configContext, backendServerURL + "LoggedUserInfoAdmin");
    }
View Full Code Here

Examples of org.wso2.carbon.identity.relyingparty.stub.auth.LoggedUserInfoAdminStub

            ServletContext servletContext = session.getServletContext();
            ConfigurationContext configContext = (ConfigurationContext) servletContext
                    .getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);

            LoggedUserInfoAdminStub stub = new LoggedUserInfoAdminStub(configContext,
                    backendServerURL + "LoggedUserInfoAdmin");
            ServiceClient client = stub._getServiceClient();
            Options options = client.getOptions();
            options.setManageSession(true);
            options.setProperty(HTTPConstants.COOKIE_STRING, cookie);
            org.wso2.carbon.identity.relyingparty.stub.auth.loggeduserinfo.LoggedUserInfo userInfo
                    = stub.getUserInfo();

            String[] permissionArray = userInfo.getUIPermissionOfUser();
            ArrayList<String> list = new ArrayList<String>();
            for (String permission : permissionArray) {
                list.add(permission);
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.