Package com.tensegrity.palo.gwt.core.client.models.account

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


    return null;
  }

  public final String getTitle(XObject input) {
    if (input instanceof XConnection) {
      XConnection connection = (XConnection) input;
      String name = connection.getName();
      if(name != null && !name.equals(""))
        return messages.connection(name);
    }
    return constants.newConnection();
  }
View Full Code Here


      return;
    }
    final XUser user = ((Workbench)Registry.get(Workbench.ID)).getUser();
    final String sessionId = user.getSessionId();
    cubeStore.removeAll();
    final XConnection con = (XConnection) connectionCombo.getValue().xObj;
    WPaloAdminServiceProvider.getInstance().getCubes(sessionId, con, db, new Callback<XCube[]>(){
      public void onFailure(Throwable t) {
        t.printStackTrace();
        super.onFailure(t);
//        cubeCombo.setEnabled(false);       
View Full Code Here

      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();
View Full Code Here

  }
  private final XConnection[] getConnections(AdministrationService adminSrv) {
    List<PaloConnection> connections = adminSrv.getConnections();
    List<XConnection> xConnections = new ArrayList<XConnection>();
    for(PaloConnection connection : connections) {
      XConnection xConnection = (XConnection) XConverter.createX(connection);
//      XConnection xConnection = (XConnection) WPaloAdminCache.getXObject(connection); //XConverter.createConnection(connection);
//      WPaloAdminCache.add(xConnection, connection);
      xConnections.add(xConnection);
    }
    return xConnections.toArray(new XConnection[0]);
View Full Code Here

  public XConnection[] getConnections(String sessionId, XUser user) throws SessionExpiredException {
    AdministrationService adminService = ServiceProvider
        .getAdministrationService(getLoggedInUser(sessionId));
    List<XConnection> xConnections = new ArrayList<XConnection>();
    for(PaloConnection connection : adminService.getConnections()) {
      XConnection xConnection = (XConnection)XConverter.createX(connection);
      xConnections.add(xConnection);
    }
    return xConnections.toArray(new XConnection[0]);
    // TODO throw exception or return empty array !?!?!?
  }
View Full Code Here

      v = (View) MapperRegistry.getInstance().getViewManagement().find(view.getId());
    } catch (SQLException e1) {
    }
    if (v != null && v.getAccount() != null && v.getAccount().getConnection() != null) {
      PaloConnection con = v.getAccount().getConnection();
      XConnection xCon = (XConnection) XConverter.createX(con);
      return xCon;
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of com.tensegrity.palo.gwt.core.client.models.account.XConnection

Copyright © 2018 www.massapicom. 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.