• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java LoginLogoutClient类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.wso2.carbon.integration.common.utils.LoginLogoutClient的典型用法代码示例。如果您正苦于以下问题:Java LoginLogoutClient类的具体用法?Java LoginLogoutClient怎么用?Java LoginLogoutClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



LoginLogoutClient类属于org.wso2.carbon.integration.common.utils包,在下文中一共展示了LoginLogoutClient类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setEnvironment

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@BeforeClass(alwaysRun = true)
public void setEnvironment() throws Exception {

    init();  //init master class
    bpelPackageManagementClient = new BpelPackageManagementClient(backEndUrl, sessionCookie);
    humanTaskPackageManagementClient = new HumanTaskPackageManagementClient(backEndUrl, sessionCookie);
    requestSender = new RequestSender();
    initialize();

    //initialize HT Client API for Clerk1 user
    AutomationContext clerk1AutomationContext = new AutomationContext("BPS", "bpsServerInstance0001",
            FrameworkConstants.SUPER_TENANT_KEY, "clerk1");
    LoginLogoutClient clerk1LoginLogoutClient = new LoginLogoutClient(clerk1AutomationContext);
    String clerk1SessionCookie = clerk1LoginLogoutClient.login();

    clerk1HumanTaskClientApiClient = new HumanTaskClientApiClient(backEndUrl, clerk1SessionCookie);

    //initialize HT Client API for Manager1 user
    AutomationContext manager1AutomationContext = new AutomationContext("BPS", "bpsServerInstance0001",
            FrameworkConstants.SUPER_TENANT_KEY, "manager1");
    LoginLogoutClient manager1LoginLogoutClient = new LoginLogoutClient(manager1AutomationContext);
    String manager1SessionCookie = manager1LoginLogoutClient.login();
    manager1HumanTaskClientApiClient = new HumanTaskClientApiClient(backEndUrl, manager1SessionCookie);
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:25,代码来源:HumanTaskCreationTestCase.java


示例2: serviceDeployment

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@BeforeClass(alwaysRun = true)
public void serviceDeployment() throws Exception {

    super.init();
    serverConfigurationManager = new ServerConfigurationManager(dssContext);
    serverConfigurationManager.copyToComponentLib(new File(getResourceLocation() + File.separator + "jar" + File.separator
                                                           + "roleRetriever-1.0.0.jar"));
    serverConfigurationManager.restartForcefully();
    
    LoginLogoutClient loginLogoutClient = new LoginLogoutClient(dssContext);
    sessionCookie = loginLogoutClient.login();

    List<File> sqlFileLis = new ArrayList<File>();
    sqlFileLis.add(selectSqlFile("CreateEmailUsersTable.sql"));
    deployService(serviceName,
            createArtifact(getResourceLocation() + File.separator + "dbs" + File.separator
                    + "rdbms" + File.separator + "h2" + File.separator
                    + serviceName + ".dbs", sqlFileLis));

    serviceEndPoint = getServiceUrlHttp(serviceName);

}
 
开发者ID:wso2,项目名称:product-ei,代码行数:23,代码来源:DS1111UserRoleExtensionTestCase.java


示例3: unDeployServices

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@AfterTest(alwaysRun = true)
public void unDeployServices() throws Exception {
    if (axis2Server1 != null && axis2Server1.isStarted()) {
        axis2Server1.stop();
    } else {
        if (TestConfigurationProvider.isPlatform() && asContext!=null) {
            int deploymentDelay = TestConfigurationProvider.getServiceDeploymentDelay();
            String serviceName = ESBTestConstant.SIMPLE_AXIS2_SERVICE;
            String studentServiceName = ESBTestConstant.STUDENT_REST_SERVICE;
            ServiceDeploymentUtil deployer = new ServiceDeploymentUtil();
            String sessionCookie = new LoginLogoutClient(asContext).login();
            deployer.unDeployArrService(asContext.getContextUrls().getBackEndUrl(), sessionCookie
                    , serviceName, deploymentDelay);
            deployer.unDeployArrService(asContext.getContextUrls().getBackEndUrl(), sessionCookie
                    , studentServiceName, deploymentDelay);

        }
    }
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:20,代码来源:Axis2ServerStartupTestCase.java


示例4: unDeployServices

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@AfterTest(alwaysRun = true)
public void unDeployServices()
        throws IOException, LoginAuthenticationExceptionException, ExceptionException,
        XPathExpressionException, URISyntaxException, SAXException, XMLStreamException, AutomationUtilException {
    if (TestConfigurationProvider.isIntegration() && axis2Server1 != null && axis2Server1.isStarted()) {
        axis2Server1.stop();
    } else {
        AutomationContext asContext = new AutomationContext("AS", TestUserMode.SUPER_TENANT_ADMIN);
        int deploymentDelay = TestConfigurationProvider.getServiceDeploymentDelay();
        String serviceName = "SecureStockQuoteServiceScenario";
        ServiceDeploymentUtil deployer = new ServiceDeploymentUtil();
        LoginLogoutClient loginLogoutClient = new LoginLogoutClient(asContext);
        for (int i = 1; i < 9; i++) {
            deployer.unDeployArrService(asContext.getContextUrls().getBackEndUrl(), loginLogoutClient.login()
                    , serviceName + i, deploymentDelay);
        }

    }
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:20,代码来源:Axis2ServerStartupWithSecuredServices.java


示例5: init

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@BeforeClass(alwaysRun = true)
public void init()
        throws Exception {
    super.init(TestUserMode.SUPER_TENANT_ADMIN);
    serverManager = new ServerConfigurationManager(cepServer);

    try {
        String warFilePath = FrameworkPathUtil.getSystemResourceLocation() +
                             "artifacts" + File.separator + "CEP" + File.separator + "war"
                             + File.separator;

        webAppDirectoryPath = FrameworkPathUtil.getCarbonHome() + File.separator + "repository" + File.separator +
                              "deployment" + File.separator + "server" + File.separator + "webapps" + File.separator;
        FileManager.copyResourceToFileSystem(warFilePath + webAppFileName, webAppDirectoryPath, webAppFileName);
        Thread.sleep(5000);
    } catch (Exception e) {
        throw new RemoteException("Exception caught when deploying the war file into CEP server", e);
    }

    String loggedInSessionCookie = new LoginLogoutClient(cepServer).login();
    eventProcessorAdminServiceClient = configurationUtil.getEventProcessorAdminServiceClient(backendURL, loggedInSessionCookie);
    eventStreamManagerAdminServiceClient = configurationUtil.getEventStreamManagerAdminServiceClient(backendURL, loggedInSessionCookie);
    eventReceiverAdminServiceClient = configurationUtil.getEventReceiverAdminServiceClient(backendURL, loggedInSessionCookie);
    eventPublisherAdminServiceClient = configurationUtil.getEventPublisherAdminServiceClient(backendURL, loggedInSessionCookie);
}
 
开发者ID:wso2,项目名称:product-cep,代码行数:26,代码来源:HTTPXMLMessageTestCase.java


示例6: configureNode

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
private void configureNode(AutomationContext node) throws Exception {
    String backendURL = node.getContextUrls().getBackEndUrl();
    LoginLogoutClient loginLogoutClient = new LoginLogoutClient(node);
    String loggedInSessionCookie = loginLogoutClient.login();
    eventReceiverAdminServiceClient = configurationUtil.getEventReceiverAdminServiceClient(backendURL, loggedInSessionCookie);
    eventPublisherAdminServiceClient = configurationUtil.getEventPublisherAdminServiceClient(backendURL, loggedInSessionCookie);
    eventProcessorAdminServiceClient = configurationUtil.getEventProcessorAdminServiceClient(backendURL, loggedInSessionCookie);
    eventStreamManagerAdminServiceClient = configurationUtil.getEventStreamManagerAdminServiceClient(backendURL, loggedInSessionCookie);

    log.info("Adding stream definitions");
    defineStreams();
    log.info("Adding event receiver analyticsWso2EventReceiver");
    addEventReceiver("analyticsWso2EventReceiver.xml");
    log.info("Adding event receiver stockQuoteWso2EventReceiver");
    addEventReceiver("stockQuoteWso2EventReceiver.xml");
    log.info("Adding event publisher fortuneCompanyWSO2EventPublisher");
    addEventPublisher("fortuneCompanyWSO2EventPublisher.xml");
    log.info("Adding execution plan");
    addExecutionPlan("PreprocessStats.siddhiql");
}
 
开发者ID:wso2,项目名称:product-cep,代码行数:21,代码来源:StormTestCase.java


示例7: init

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
/**
 * @param path      path of the collection or resource to be subscribed
 * @param eventType event to be subscribed
 * @return true if the required jmx notification is generated for
 *         subscription, false otherwise
 * @throws Exception
 */
public boolean init(String path, String eventType, AutomationContext autoContext)
        throws Exception {

    automationContext = autoContext;
    backEndUrl = automationContext.getContextUrls().getBackEndUrl();
    LoginLogoutClient loginLogoutClient = new LoginLogoutClient(automationContext);
    sessionCookie = loginLogoutClient.login();
    userName = automationContext.getContextTenant().getContextUser().getUserName();

    if (userName.contains("@")){
        userNameWithoutDomain = userName.substring(0, userName.indexOf('@'));
    }
    else {
        userNameWithoutDomain = userName;
    }

    boolean result = JMXSubscribe(path, eventType) && update(path) && getJMXNotification();
    clean(path);
    return result;
}
 
开发者ID:wso2,项目名称:product-es,代码行数:28,代码来源:JMXSubscription.java


示例8: init

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
/**
 * Subscribe for management console notifications and receive the
 * notification
 *
 * @param path      path of the resource or collection
 * @param eventType event type to be subscribed
 * @param env       ManageEnvironment
 * @param userInf   UserInfo
 * @return true if the subscription is succeeded and notification is
 *         received, false otherwise
 * @throws Exception
 */
public static boolean init(String path, String eventType, AutomationContext autoContext)
        throws Exception {

    automationContext = autoContext;
    backEndUrl = automationContext.getContextUrls().getBackEndUrl();
    LoginLogoutClient loginLogoutClient = new LoginLogoutClient(automationContext);
    sessionCookie = loginLogoutClient.login();
    userName = automationContext.getContextTenant().getContextUser().getUserName();

    if (userName.contains("@"))
        userNameWithoutDomain = userName.substring(0, userName.indexOf('@'));
    else
        userNameWithoutDomain = userName;

    boolean result = (addRole() && consoleSubscribe(path, eventType) && update(path) && getNotification(path));
    clean(path);
    return result;
}
 
开发者ID:wso2,项目名称:product-es,代码行数:31,代码来源:ManagementConsoleSubscription.java


示例9: init

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
protected void init() throws Exception {
    ssServer = new AutomationContext(PRODUCT_GROUP_NAME, TestUserMode.SUPER_TENANT_ADMIN);
    loginLogoutClient = new LoginLogoutClient(ssServer);
    sessionCookie = loginLogoutClient.login();
    backendURL = ssServer.getContextUrls().getBackEndUrl();
    this.driver = BrowserManager.getWebDriver();
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:8,代码来源:BPSIntegrationUiBaseTest.java


示例10: init

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
protected void init(TestUserMode testUserMode) throws Exception {
    bpsServer = new AutomationContext("BPS", testUserMode);
    loginLogoutClient = new LoginLogoutClient(bpsServer);
    sessionCookie = loginLogoutClient.login();
    backEndUrl = bpsServer.getContextUrls().getBackEndUrl();
    serviceUrl = bpsServer.getContextUrls().getServiceUrl();
    bpelUploaderClient = new BpelUploaderClient(backEndUrl, sessionCookie);
    humanTaskUploaderClient = new HumanTaskUploaderClient(backEndUrl, sessionCookie);
    bpmnUploaderClient = new BPMNUploaderClient(backEndUrl, sessionCookie);
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:11,代码来源:BPSMasterTest.java


示例11: setupTestClients

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
/**
 * Setup
 *
 * @throws Exception
 */
private void setupTestClients() throws Exception {
	init();
	requestSender.waitForProcessDeployment(backEndUrl + HumanTaskTestConstants.CLAIM_APPROVAL_PROCESS_SERVICE);
	requestSender.waitForProcessDeployment(backEndUrl + HumanTaskTestConstants.CLAIM_SERVICE);
	log.info("BPEL and Humantask services are up and running");
	// Need to re-initialize since we have restarted the server
	bpelPackageManagementClient = new BpelPackageManagementClient(backEndUrl, sessionCookie);
	humanTaskPackageManagementClient = new HumanTaskPackageManagementClient(backEndUrl, sessionCookie);
	instanceManagementClient = new BpelInstanceManagementClient(backEndUrl, sessionCookie);
	log.info("Server setting up completed ...!!!");
	serverConfigurationManager = new ServerConfigurationManager(bpsServer);

	//initialize HT Client API for Clerk1 and manager1 user
	AutomationContext clerk1AutomationContext =
			new AutomationContext("BPS", "bpsServerInstance0001", FrameworkConstants.SUPER_TENANT_KEY,
			                      HumanTaskTestConstants.CLERK1_USER);
	LoginLogoutClient clerk1LoginLogoutClient = new LoginLogoutClient(clerk1AutomationContext);
	String clerk1SessionCookie = clerk1LoginLogoutClient.login();
	clerk1HumanTaskClientApiClient = new HumanTaskClientApiClient(backEndUrl, clerk1SessionCookie);

	AutomationContext manager1AutomationContext =
			new AutomationContext("BPS", "bpsServerInstance0001", FrameworkConstants.SUPER_TENANT_KEY,
			                      HumanTaskTestConstants.MANAGER1_USER);
	LoginLogoutClient manager1LoginLogoutClient = new LoginLogoutClient(manager1AutomationContext);
	String manager1SessionCookie = manager1LoginLogoutClient.login();
	manager1HumanTaskClientApiClient = new HumanTaskClientApiClient(backEndUrl, manager1SessionCookie);

}
 
开发者ID:wso2,项目名称:product-ei,代码行数:34,代码来源:HumanTaskCoordinationTest.java


示例12: init

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
protected void init(TestUserMode userType) throws Exception {
//        dssContext = new AutomationContext("DSS", "dss01", "carbon.supper", "admin");
        dssContext = new AutomationContext(PRODUCT_NAME, userType);
        LoginLogoutClient loginLogoutClient = new LoginLogoutClient(dssContext);
        sessionCookie = loginLogoutClient.login();
        //return the current tenant as the userType(TestUserMode)
        tenantInfo = dssContext.getContextTenant();
        //return the user information initialized with the system
        userInfo = tenantInfo.getContextUser();

    }
 
开发者ID:wso2,项目名称:product-ei,代码行数:12,代码来源:DSSIntegrationTest.java


示例13: serviceDeployment

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@BeforeClass(alwaysRun = true)
public void serviceDeployment() throws Exception {

    super.init();
    List<File> sqlFileLis = new ArrayList<File>();
    sqlFileLis.add(selectSqlFile("CreateEmailUsersTable.sql"));
    deployService(serviceName,
            createArtifact(getResourceLocation() + File.separator + "samples" + File.separator
                    + "dbs" + File.separator + "rdbms" + File.separator
                    + serviceName + ".dbs", sqlFileLis));

    backendUrl = dssContext.getContextUrls().getBackEndUrl();

    /* login to the server as super user and add user with email user name for the test case */
    userManagementClient = new UserManagementClient(backendUrl,sessionCookie);

    userManagementClient.addRole("sampleRole", new String[]{},new String[]{"admin"});
    userManagementClient.addUser("[email protected]","test123",new String[]{"sampleRole"},"emailUserProfile");

    serverConfigurationManager = new ServerConfigurationManager(dssContext);
    serverConfigurationManager.copyToComponentLib(new File(getResourceLocation()
            + File.separator + "jar" + File.separator
            + "msgContextHandler-1.0.0.jar"));

    String carbonHome = System.getProperty("carbon.home");
    File sourceFile = new File(getResourceLocation()
            + File.separator + "serverConfigs" + File.separator
            + "axis2.xml");
    File destinationFile = new File(carbonHome + File.separator + "conf" + File.separator + "axis2"+ File.separator + "axis2.xml");

    serverConfigurationManager.applyConfiguration(sourceFile, destinationFile);//this will restart the server as well
    LoginLogoutClient loginLogoutClient = new LoginLogoutClient(dssContext);
    sessionCookie = loginLogoutClient.login();

    serviceEndPoint = getServiceUrlHttp(serviceName);

}
 
开发者ID:wso2,项目名称:product-ei,代码行数:38,代码来源:DS1063EmailUsernameTestCase.java


示例14: ServerConfigurationManager

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
/**
 * Create a ServerConfigurationManager
 *
 * @param productGroup product group name
 * @param userMode     user mode
 */
public ServerConfigurationManager(String productGroup, TestUserMode userMode)
        throws AutomationUtilException, XPathExpressionException, MalformedURLException {
    this.autoCtx = new AutomationContext(productGroup, userMode);
    this.loginLogoutClient = new LoginLogoutClient(autoCtx);
    this.backEndUrl = autoCtx.getContextUrls().getBackEndUrl();
    this.port = new URL(backEndUrl).getPort();
    this.hostname = new URL(backEndUrl).getHost();
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:15,代码来源:ServerConfigurationManager.java


示例15: deployServices

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@BeforeTest(alwaysRun = true)
public void deployServices() throws Exception {

    if (TestConfigurationProvider.isIntegration()) {
        axis2Server1 = new SampleAxis2Server("test_axis2_server_9009.xml");
        axis2Server1.start();
        axis2Server1.deployService(ESBTestConstant.STUDENT_REST_SERVICE);
        axis2Server1.deployService(ESBTestConstant.SIMPLE_AXIS2_SERVICE);
        axis2Server1.deployService(ESBTestConstant.SIMPLE_STOCK_QUOTE_SERVICE);

    } else {
        asContext = new AutomationContext("AS", TestUserMode.SUPER_TENANT_ADMIN);
        int deploymentDelay = TestConfigurationProvider.getServiceDeploymentDelay();
        String serviceName = ESBTestConstant.SIMPLE_AXIS2_SERVICE;
        String serviceFilePath = TestConfigurationProvider.getResourceLocation("AXIS2")
                                 + File.separator + "aar" + File.separator + serviceName + ".aar";
        ServiceDeploymentUtil deployer = new ServiceDeploymentUtil();
        String sessionCookie = new LoginLogoutClient(asContext).login();
        deployer.deployArrService(asContext.getContextUrls().getBackEndUrl(), sessionCookie
                , serviceName, serviceFilePath, deploymentDelay);

        String studentServiceName = ESBTestConstant.STUDENT_REST_SERVICE;
        String studentServiceFilePath = TestConfigurationProvider.getResourceLocation("AXIS2")
                                        + File.separator + "aar" + File.separator + studentServiceName + ".aar";
        deployer.deployArrService(asContext.getContextUrls().getBackEndUrl(), sessionCookie
                , studentServiceName, studentServiceFilePath, deploymentDelay);

    }
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:30,代码来源:Axis2ServerStartupTestCase.java


示例16: addNonAdminUser

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@BeforeTest(alwaysRun = true)
public void addNonAdminUser() throws Exception {
    AutomationContext esbContext = new AutomationContext("ESB", TestUserMode.SUPER_TENANT_ADMIN);
    String sessionCookie = new LoginLogoutClient(esbContext).login();
    ResourceAdminServiceClient resourceAdmin = new ResourceAdminServiceClient(esbContext.getContextUrls().getBackEndUrl(), sessionCookie);
    UserManagementClient userManagementClient = new UserManagementClient(esbContext.getContextUrls().getBackEndUrl(), sessionCookie);

    //done this change due to a bug in UM - please refer to carbon dev mail
    // "G-Reg integration test failures due to user mgt issue."
    String[] permissions = {"/permission/admin/configure/",
                            "/permission/admin/login",
                            "/permission/admin/manage/",
                            "/permission/admin/monitor",
                            "/permission/protected"};


    if (!userManagementClient.roleNameExists(ROLE_NAME)) {
        userManagementClient.addRole(ROLE_NAME, null, permissions);
        resourceAdmin.addResourcePermission("/", ROLE_NAME, "3", "1");
        resourceAdmin.addResourcePermission("/", ROLE_NAME, "2", "1");
        resourceAdmin.addResourcePermission("/", ROLE_NAME, "4", "1");
        resourceAdmin.addResourcePermission("/", ROLE_NAME, "5", "1");
    }

    userManagementClient.addUser("nonadminuser", "password", new String[]{ROLE_NAME}, null);
    //check user creation
    nonAdminUser = new User();
    nonAdminUser.setUserName("nonadminuser");
    nonAdminUser.setPassword("password");


}
 
开发者ID:wso2,项目名称:product-ei,代码行数:33,代码来源:NonAdminUserCreationTestCase.java


示例17: deployServices

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@BeforeTest(alwaysRun = true)
public void deployServices()
        throws IOException, LoginAuthenticationExceptionException, ExceptionException,
        XPathExpressionException, XMLStreamException, SAXException, URISyntaxException, AutomationUtilException {

    if (TestConfigurationProvider.isIntegration()) {
        axis2Server1 = new SampleAxis2Server("test_axis2_server_9007.xml");
        axis2Server1.deployService("SecureStockQuoteServiceScenario1");
        axis2Server1.start();

        axis2Server1.deployService("SecureStockQuoteServiceScenario2");
        axis2Server1.deployService("SecureStockQuoteServiceScenario3");
        axis2Server1.deployService("SecureStockQuoteServiceScenario4");
        axis2Server1.deployService("SecureStockQuoteServiceScenario5");
        axis2Server1.deployService("SecureStockQuoteServiceScenario6");
        axis2Server1.deployService("SecureStockQuoteServiceScenario7");
        axis2Server1.deployService("SecureStockQuoteServiceScenario8");
        //        axis2Server1.deployService("SecureStockQuoteServiceScenario9");
        //        axis2Server1.deployService("SecureStockQuoteServiceScenario10");

    } else {
        AutomationContext asContext = new AutomationContext("AS", TestUserMode.SUPER_TENANT_ADMIN);
        int deploymentDelay = TestConfigurationProvider.getServiceDeploymentDelay();
        String serviceName = "SecureStockQuoteServiceScenario";
        String serviceFilePath = TestConfigurationProvider.getResourceLocation("AXIS2")
                                 + File.separator + "aar" + File.separator + serviceName;
        ServiceDeploymentUtil deployer = new ServiceDeploymentUtil();
        LoginLogoutClient loginLogoutClient = new LoginLogoutClient(asContext);
        for (int i = 1; i < 9; i++) {
            deployer.deployArrService(asContext.getContextUrls().getBackEndUrl(), loginLogoutClient.login()
                    , serviceName + i, serviceFilePath + i + ".aar", deploymentDelay);
        }
    }
}
 
开发者ID:wso2,项目名称:product-ei,代码行数:35,代码来源:Axis2ServerStartupWithSecuredServices.java


示例18: init

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@BeforeClass(alwaysRun = true)
public void init() throws Exception {
    super.init(TestUserMode.SUPER_TENANT_ADMIN);
    String loggedInSessionCookie = new LoginLogoutClient(cepServer).login();
    eventReceiverAdminServiceClient = configurationUtil
            .getEventReceiverAdminServiceClient(backendURL, loggedInSessionCookie);
    eventStreamManagerAdminServiceClient = configurationUtil
            .getEventStreamManagerAdminServiceClient(backendURL, loggedInSessionCookie);
}
 
开发者ID:wso2,项目名称:product-cep,代码行数:10,代码来源:EventReceiverAdminServiceTestCase.java


示例19: init

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@BeforeClass(alwaysRun = true)
public void init() throws Exception {
    super.init(TestUserMode.SUPER_TENANT_ADMIN);
    serverManager = new ServerConfigurationManager(cepServer);


    String loggedInSessionCookie = new LoginLogoutClient(cepServer).login();
    eventProcessorAdminServiceClient = configurationUtil.getEventProcessorAdminServiceClient(backendURL, loggedInSessionCookie);
    eventStreamManagerAdminServiceClient = configurationUtil.getEventStreamManagerAdminServiceClient(backendURL, loggedInSessionCookie);
    eventReceiverAdminServiceClient = configurationUtil.getEventReceiverAdminServiceClient(backendURL, loggedInSessionCookie);
    eventPublisherAdminServiceClient = configurationUtil.getEventPublisherAdminServiceClient(backendURL, loggedInSessionCookie);
}
 
开发者ID:wso2,项目名称:product-cep,代码行数:13,代码来源:CappTestCase.java


示例20: serviceDeployment

import org.wso2.carbon.integration.common.utils.LoginLogoutClient; //导入依赖的package包/类
@BeforeClass(alwaysRun = true)
public void serviceDeployment() throws Exception {

    super.init();
    List<File> sqlFileLis = new ArrayList<File>();
    sqlFileLis.add(selectSqlFile("CreateEmailUsersTable.sql"));
    deployService(serviceName,
            createArtifact(getResourceLocation() + File.separator + "samples" + File.separator
                    + "dbs" + File.separator + "rdbms" + File.separator
                    + serviceName + ".dbs", sqlFileLis));

    backendUrl = dssContext.getContextUrls().getBackEndUrl();

    /* login to the server as super user and add user with email user name for the test case */
    userManagementClient = new UserManagementClient(backendUrl,sessionCookie);

    userManagementClient.addRole("sampleRole", new String[]{},new String[]{"admin"});
    userManagementClient.addUser("[email protected]","test123",new String[]{"sampleRole"},"emailUserProfile");

    serverConfigurationManager = new ServerConfigurationManager(dssContext);
    serverConfigurationManager.copyToComponentLib(new File(getResourceLocation()
            + File.separator + "jar" + File.separator
            + "msgContextHandler-1.0.0.jar"));

    String carbonHome = System.getProperty("carbon.home");
    File sourceFile = new File(getResourceLocation()
            + File.separator + "serverConfigs" + File.separator
            + "axis2.xml");
    File destinationFile = new File(carbonHome + File.separator + "repository" + File.separator + "conf" + File.separator + "axis2"+ File.separator + "axis2.xml");

    serverConfigurationManager.applyConfiguration(sourceFile, destinationFile);//this will restart the server as well
    LoginLogoutClient loginLogoutClient = new LoginLogoutClient(dssContext);
    sessionCookie = loginLogoutClient.login();

    serviceEndPoint = getServiceUrlHttp(serviceName);

}
 
开发者ID:wso2-attic,项目名称:product-dss,代码行数:38,代码来源:DS1063EmailUsernameTestCase.java



注:本文中的org.wso2.carbon.integration.common.utils.LoginLogoutClient类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java PolicyBasedAuthenticationManager类代码示例发布时间:2022-05-23
下一篇:
Java Face类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap