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

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


                    report, user, new Callback<XVariableDescriptor>(){
                      public void onSuccess(
                          XVariableDescriptor desc) {
                        XWorkbook wb = ws.getWorkbook();
                        XAccount acc = wb.getAccount();
                        XConnection con = acc.getConnection();
                       
                        HashMap <XObject, String> mapping = desc.getVariableMapping();
                       
                        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=";
View Full Code Here


    add(createPropertiesPanel());
  }
 
  public final boolean save(XObject input) {
    if(input instanceof XConnection) {
      XConnection connection = (XConnection) input;
      connection.setName(name.getValue());
      connection.setDescription(description.getValue());
    }
    return true;
  }
View Full Code Here

  public void saveAs(String name, XObject input) {   
  }

  public void set(XObject input) {
    if(input instanceof XConnection) {
      XConnection connection = (XConnection) input;
      name.setValue(connection.getName());
      description.setValue(connection.getDescription());
    }
  }
View Full Code Here

    add(createServerPropsPanel());
  }

  public final boolean save(XObject input) {
    if(input instanceof XConnection) {
      XConnection connection = (XConnection) input;
      connection.setHost(host.getValue());
      connection.setService(service.getValue());
      int type = getType();
      if(type != -1)
        connection.setConnectionType(type);
    }
    return true;
  }
View Full Code Here

  public void saveAs(String name, XObject input) {   
  }

  public final void set(XObject input) {
    if(input instanceof XConnection) {
      XConnection connection = (XConnection) input;
      this.input = connection;
      host.setValue(connection.getHost());
      service.setValue(connection.getService());
      if (selectionListener != null) {
        typeCombo.removeSelectionListener(selectionListener);
      }
      setType(connection.getConnectionType());
      if (selectionListener != null) {
        typeCombo.addSelectionChangedListener(selectionListener);
      }
    }
  }
View Full Code Here

    WPaloAdminServiceProvider.getInstance().getAccounts(sessionId, user,
        new Callback<XAccount[]>(constants.loadingAllAccountsFailed()) {
          public void onSuccess(XAccount[] accounts) {
            int index = 0;
            for (XAccount account : accounts) {
              XConnection connection = account.getConnection();
              String type = connection.getConnectionType() ==
                XConnection.TYPE_HTTP ? "Palo" : "XMLA";
              accountTable.insert(new TableItem(new Object[] {
                  account.getLogin(), connection.getName(),
                  connection.getHost(), connection.getService(),
                  type}), index++);
            }
          }
        });
  }
View Full Code Here

    add(createPropertiesPanel());
  }

  public final boolean save(XObject input) {
    if(input instanceof XAccount) {
      XConnection conn = getConnection();
      XUser user = getUser();
      if(user == null || conn == null)
        return false;     
      XAccount account = (XAccount) input;
      account.setUser(user);
View Full Code Here

                    public void onSuccess(XConnection[] connections) {
                      XObjectWrapper selection = null;
                      boolean disableSelectionListener = false;
                      HashSet <String> allUsedConnectionIds = new HashSet<String>();
                      for (XAccount a: accounts) {
                        XConnection c = a.getConnection();
                        if (account != null) {
                          if (c != null && !a.getId().equals(account.getId())) {
                            allUsedConnectionIds.add(c.getId());
                          }
                        } else {
                          if (c != null) {
                            allUsedConnectionIds.add(c.getId());
                          }
                        }
                      }
                      for (XConnection conn : connections) {
                        if (allUsedConnectionIds.contains(conn.getId())) {
View Full Code Here

          }
        });
  }
 
  private final XConnection getConnection() {
    XConnection xConn = null;
    List<XObjectWrapper> selection = connCombo.getSelection();
    if(!selection.isEmpty()) {
      XObjectWrapper w = selection.get(0);
      xConn = (XConnection)w.getXObject();
    }
View Full Code Here

    case ADD_ACCOUNT_ITEM:
      input = new TreeNode(null, new XAccount());
      editor = accountEditor;
      break;
    case ADD_CONNECTION_ITEM:
      input = new TreeNode(null, new XConnection());
      editor = connectionEditor;
      break;
    }
   
    final Workbench wb = (Workbench)Registry.get(Workbench.ID);
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.