James Moger
2011-10-26 e787b723fb502483d0644e07e3b8f3b5fc7f2260
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;
@@ -87,7 +87,7 @@
      try {
         refreshSettings();
         status = RpcUtils.getStatus(url, account, password);
         refreshStatus();
         allowAdministration = true;
      } catch (UnauthorizedException e) {
      } catch (ForbiddenException e) {
@@ -100,7 +100,7 @@
   public boolean allowManagement() {
      return allowManagement;
   }
   public boolean allowAdministration() {
      return allowAdministration;
   }
@@ -136,10 +136,15 @@
      allUsers.addAll(users);
      return allUsers;
   }
   public ServerSettings refreshSettings() throws IOException {
      settings = RpcUtils.getSettings(url, account, password);
      return settings;
   }
   public ServerStatus refreshStatus() throws IOException {
      status = RpcUtils.getStatus(url, account, password);
      return status;
   }
   public List<FederationModel> refreshFederationRegistrations() throws IOException {
@@ -217,4 +222,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);
   }
}