Examples of LoginService


Examples of bigbank.webclient.services.profile.LoginService

    }

    static int login(final String login, final String password) throws ServletException {

        ModuleContext moduleContext = CurrentModuleContext.getContext();
        LoginService loginMgr = (LoginService) moduleContext.locateService("LoginServiceComponent");

        if (loginMgr == null) {
            throw new ServletException("LoginManager not found");
        }

        try {
            return loginMgr.login(login, password);
        } catch (RemoteException e) {

            throw new ServletException(e);
        }
View Full Code Here

Examples of bigbank.webclient.services.profile.LoginService


        TuscanyRuntime tuscany = new TuscanyRuntime("bigbank.webclient.testclient", null);
        tuscany.start();
        ModuleContext moduleContext = CurrentModuleContext.getContext();
        LoginService loginService = (LoginService)
                moduleContext.locateService("LoginServiceComponent");

        if (loginService.login("test", "password") == LoginService.SUCCESS)
            System.out.println("Success");
        else
            System.out.println("Failure");
    }
View Full Code Here

Examples of bigbank.webclient.services.profile.LoginService

    }

    static int login(final String login, final String password) throws ServletException {

        CompositeContext moduleContext = CurrentCompositeContext.getContext();
        LoginService loginMgr = moduleContext.locateService(LoginService.class, "LoginServiceComponent");

        if (loginMgr == null) {
            throw new ServletException("LoginManager not found");
        }

        try {
            return loginMgr.login(login, password);
        } catch (RemoteException e) {

            throw new ServletException(e);
        }
View Full Code Here

Examples of bigbank.webclient.services.profile.LoginService

    }

    public static void main(String[] args) throws Exception {

        CompositeContext moduleContext = CurrentCompositeContext.getContext();
        LoginService loginService = moduleContext.locateService(LoginService.class, "LoginServiceComponent");

        if (loginService.login("test", "password") == LoginService.SUCCESS) {
            System.out.println("Success");
        } else {
            System.out.println("Failure");
        }
    }
View Full Code Here

Examples of com.apress.progwt.client.college.LoginService

        if (schoolService == null || userService == null) {
            Log.error("Service was null.");
        }

        serviceCache = new ServiceCache(this);
        loginService = new LoginService(serviceCache);

    }
View Full Code Here

Examples of com.defaultcompany.login.LoginService

  response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
  response.setHeader("P3P", "CP='NOI DEVa TAIa OUR BUS UNI'");
  response.setHeader("Pragma","no-cache"); //HTTP 1.0
  response.setDateHeader ("Expires", 0); //prevents caching at the proxy server
 
  LoginService loginService = new LoginService();

  int result = loginService.login(request);

      out.write("\r\n");
      out.write("\r\n");
      out.write("<script>\r\n");
      out.write("var authenticationCondition = ");
View Full Code Here

Examples of com.extjs.common.service.impl.LoginService

  public ActionForward execute(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response)
      throws Exception {
    ActionForward actionForward = mapping.findForward("fail");
    try {
      ILoginService loginService = new LoginService();
      List<UserDetail> users = (List<UserDetail>) loginService.getUserDetails(request);
      request.setAttribute("users", users);
      String jsonResp = JavaToJSONUtil.getJsonString(users);
      request.setAttribute("json", "{\"page\":1, \"total\":" + users.size() + ", \"records\":" + jsonResp + "}");
      actionForward = (mapping.findForward("jsonSuccess"));
      return actionForward; 
View Full Code Here

Examples of de.scoopgmbh.copper.monitoring.core.LoginService

    String host = (args.length > 0) ? args[0] : "localhost";
    int port = (args.length > 1) ? Integer.parseInt(args[1]) : 8080;
   
    CopperMonitoringService monitoringService;
    LoginService loginService;
    RemoteInvocationExecutor remoteInvocationExecutor;
    if(unsecure) {
      monitoringService = CopperMonitorServiceDefaultProxy.getServiceProxy(copperMonitoringService);
      loginService = new DefaultLoginService();
      remoteInvocationExecutor = new DefaultRemoteInvocationExecutor();
View Full Code Here

Examples of de.scoopgmbh.copper.monitoring.core.LoginService

    String serverAdress = serverAdressParam;
    if (!serverAdress.endsWith("/")) {
      serverAdress = serverAdress + "/";
    }

    final LoginService loginService;
    final CommonsHttpInvokerRequestExecutor httpInvokerRequestExecutor = new CommonsHttpInvokerRequestExecutor();
    DefaultHttpMethodRetryHandler retryHandler = new DefaultHttpMethodRetryHandler(10, false);
    httpInvokerRequestExecutor.getHttpClient().getParams().setParameter(HttpMethodParams.RETRY_HANDLER, retryHandler);
    httpInvokerRequestExecutor.getHttpClient().getParams().setSoTimeout(1000*60*5);
    {
      HttpInvokerProxyFactoryBean httpInvokerProxyFactoryBean = new HttpInvokerProxyFactoryBean();
      httpInvokerProxyFactoryBean.setServiceUrl(serverAdress + "copperMonitoringService");
      httpInvokerProxyFactoryBean.setServiceInterface(LoginService.class);
      httpInvokerProxyFactoryBean.setServiceUrl(serverAdress + "loginService");
      httpInvokerProxyFactoryBean.afterPropertiesSet();
      httpInvokerProxyFactoryBean.setHttpInvokerRequestExecutor(httpInvokerRequestExecutor);
      loginService = (LoginService) httpInvokerProxyFactoryBean.getObject();
    }

    final String sessionId;
    if(secureConnect) {
      try {
        sessionId = loginService.doLogin(user, password);
      } catch (RemoteException e) {
        throw new RuntimeException(e);
      }
    } else {
      sessionId = "";
View Full Code Here

Examples of de.scoopgmbh.copper.monitoring.core.LoginService

      HttpInvokerProxyFactoryBean httpInvokerProxyFactoryBean = new HttpInvokerProxyFactoryBean();
      httpInvokerProxyFactoryBean.setServiceInterface(LoginService.class);
      httpInvokerProxyFactoryBean.setServiceUrl(LOGIN_SERVICE);
      httpInvokerProxyFactoryBean.setHttpInvokerRequestExecutor(new CommonsHttpInvokerRequestExecutor());
      httpInvokerProxyFactoryBean.afterPropertiesSet();
      LoginService loginService = (LoginService)httpInvokerProxyFactoryBean.getObject();
      sessionId = loginService.doLogin("user1", "pass1");
    }
 
    {
      final HttpInvokerProxyFactoryBean httpInvokerProxyFactoryBean = new HttpInvokerProxyFactoryBean();
      httpInvokerProxyFactoryBean.setServiceInterface(CopperMonitoringService.class);
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.