James Moger
2011-10-24 2a99c31201b7002e4dd827b226cf2112d17ca1e1
src/com/gitblit/client/GitblitClient.java
@@ -48,7 +48,7 @@
   public final String account;
   private final char[] password;
   private volatile boolean allowManagement;
   private volatile boolean allowAdministration;
@@ -86,7 +86,7 @@
      }
      try {
         settings = RpcUtils.getSettings(url, account, password);
         refreshSettings();
         status = RpcUtils.getStatus(url, account, password);
         allowAdministration = true;
      } catch (UnauthorizedException e) {
@@ -100,7 +100,7 @@
   public boolean allowManagement() {
      return allowManagement;
   }
   public boolean allowAdministration() {
      return allowAdministration;
   }
@@ -135,6 +135,11 @@
      allUsers.clear();
      allUsers.addAll(users);
      return allUsers;
   }
   public ServerSettings refreshSettings() throws IOException {
      settings = RpcUtils.getSettings(url, account, password);
      return settings;
   }
   public List<FederationModel> refreshFederationRegistrations() throws IOException {
@@ -212,4 +217,8 @@
   public boolean deleteUser(UserModel user) throws IOException {
      return RpcUtils.deleteUser(user, url, account, password);
   }
   public boolean updateSettings(Map<String, String> newSettings) throws IOException {
      return RpcUtils.updateSettings(newSettings, url, account, password);
   }
}