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++);
}
}
});
}