// Check that our user has System Administration rights, get
// the database type, and check the DTreeAncestors table (in
// that order, because we need SA rights for the database type
// queries, and we need the database type for the
// DTreeAncestors queries).
ClientValue userInfo = client.GetUserInfo(username);
int privs = userInfo.toInteger("UserPrivileges");
if ((privs & Client.PRIV_PERM_BYPASS) != Client.PRIV_PERM_BYPASS) {
LOGGER.info("USER PRIVILEGES: " + privs);
throw new ConfigurationException("User " + username +
" does not have Livelink System Administration rights.",