Examples of XAccount


Examples of com.tensegrity.palo.gwt.core.client.models.account.XAccount

      XTemplate template = (XTemplate) input;
      WPaloServiceProvider.getInstance().loadWorksheet(template,
          new Callback<XWorksheet>(){
            public void onSuccess(XWorksheet ws) {
              XWorkbook wb = ws.getWorkbook();
              XAccount acc = wb.getAccount();
              XConnection con = acc.getConnection();
             
              String host = con.getHost();
              String service = con.getService();
              if (service.indexOf(":") != -1) {
                service = service.split(":")[1];
              }             
              String url = host + ":" + service + "/cc/auto_login.php?user=";
              url += acc.getLogin() + "&pass=" + acc.getPassword();
              url += "&app=" + wb.getAppName() + "&wb=" + wb.getName();
              url += "&ws=" + ws.getName() + "&lang=en_US&w=1024&h=768";
              frame.setUrl(url);
              setText(wb.getName());
            }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.account.XAccount

      XUser xUser = (XUser) XConverter.createX(user);
//      XUser xUser = (XUser) WPaloAdminCache.getXObject(user); //XConverter.createUser(user);
//      WPaloAdminCache.add(xUser, user);
      List<Account> accounts = adminSrv.getAccounts(user);
      for(Account account : accounts) {
        XAccount xAccount = (XAccount) XConverter.createX(account);
//        XAccount xAccount = (XAccount) WPaloAdminCache.getXObject(account); //XConverter.createAccount(account, xUser);
//        WPaloAdminCache.add(xAccount, account);
        xAccounts.add(xAccount);
      }     
    }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.account.XAccount

        .getAdministrationService(loggedInUser);
    List<XAccount> xAccounts = new ArrayList<XAccount>();
    User forUser = getNativeUser(sessionId, xUser);
    if (forUser != null) {
      for (Account account : adminService.getAccounts(forUser)) {
        XAccount xAccount = (XAccount) XConverter.createX(account);
        xAccounts.add(xAccount);
      }
    }
    return xAccounts.toArray(new XAccount[0]);
  }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.account.XAccount

  public synchronized XAccount[] listAccounts(String sessionId, XUser xUser) throws SessionExpiredException {
    List<XAccount> xAccounts = new ArrayList<XAccount>();
    IAccountManagement accMgmt = MapperRegistry.getInstance().getAccountManagement();
    try {
      for (Account account : accMgmt.getAccounts(xUser.getId())) {
        XAccount xAccount = (XAccount) XConverter.createX(account);
        xAccounts.add(xAccount);
      }
    } catch (SQLException e) {
    }
    return xAccounts.toArray(new XAccount[0]);
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.account.XAccount

      accountToUse = bestMatch;
      viewToUse = bestView;
    }
    if (accountToUse != null) {
      AccountConverter co = new AccountConverter();
      XAccount xAccount = (XAccount) co.toXObject(accountToUse);
      data.setXAccount(xAccount);
      log.debug("AccountToUse:");
      log.debug("  Name: " + xAccount.getLogin());
      log.debug("  Pass: " + data.getUserPassword());
      log.debug("View: " + viewToUse.getName());
      data.setAuthenticated(true);     
      ViewConverter conv = new ViewConverter();
      XView xView = (XView) conv.toXObject(viewToUse);                   
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.account.XAccount

          admService.save(accountToUse);
        }
      }
      if (accountToUse != null && authenticatedUser != null) {
        AccountConverter co = new AccountConverter();
        XAccount xAccount = (XAccount) co.toXObject(accountToUse);
        data.setXAccount(xAccount);
        data.setUserPassword(accountToUse.getUser().getPassword());
        log.debug("AccountToUse:");
        log.debug("  Name: " + xAccount.getLogin());
        log.debug("  Pass: " + data.getUserPassword());
        data.setAuthenticated(true);
        data.setPaloSuiteViewId(viewId);
        ViewService viewService = ServiceProvider.getViewService(authenticatedUser);
        for (View v: viewService.getViews(accountToUse)) {
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.