Package org.palo.viewapi

Examples of org.palo.viewapi.Account


        }       
        return xDatabases.toArray(new XObject[0]);
      }
      return new XObject[0];
    } finally {
      Account acc = getAccount(xAccount.getId(), user);
      ConnectionPoolManager.getInstance().disconnect(acc, sessionId, "ViewImporterTreeLoader.load");
    }
  }
View Full Code Here


        }
        return xCubes.toArray(new XObject[0]);
      }
      return new XObject[0];
    } finally {
      Account acc = getAccount(xDatabase.getAccountId(), user);
      ConnectionPoolManager.getInstance().disconnect(acc, sessionId, "ViewImporterTreeLoader.load2");
    }
  }
View Full Code Here

       
        return views.toArray(new XObject[0]);
      }
      return new XObject[0];
    } finally {
      Account acc = getAccount(xCube.getAccountId(), user);
      ConnectionPoolManager.getInstance().disconnect(acc, sessionId, "ViewImporterTreeLoader.load3");
    }
  }
View Full Code Here

    if (paloConnection != null)
      return paloConnection.getDatabaseById(xDatabase.getId());
    return null;
  }
  private final synchronized Connection getConnectionForAccount(String accountId, AuthUser user, String sessionId) {
    Account account = null;
    if (isAdmin(user)) {
      AdministrationService adminService = ServiceProvider
          .getAdministrationService(user);
      account = adminService.getAccount(accountId);
    } else
View Full Code Here

    ViewService vService = ServiceProvider.getViewService(user);
    View view = vService.getView(xView.getId());   
   
    if (!accountId.equals(xView.getAccountId())) {
      try {
        Account newAccount = (Account) MapperRegistry.getInstance().getAccountManagement().find(accountId);
        if (newAccount != null) {
          vService.setAccount(newAccount, view);
          xView.setAccountId(newAccount.getId());
        }
      } catch (SQLException e) {       
      }
    }
    if (!dbId.equals(xView.getDatabaseId())) {
View Full Code Here

TOP

Related Classes of org.palo.viewapi.Account

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.