View Javadoc

1   /*
2    * GUMS2MapUser.java
3    *
4    * Created on June 9, 2004, 1:44 PM
5    */
6   package gov.bnl.gums.admin;
7   
8   
9   import org.apache.axis.AxisFault;
10  
11  import org.apache.commons.cli.*;
12  
13  import java.net.ConnectException;
14  import java.net.InetAddress;
15  import java.net.URL;
16  import gov.bnl.gums.command.AbstractCommand;
17  
18  
19  /***
20   * @author carcassi
21   */
22  public class UpdateGroups extends RemoteCommand {
23      static {
24          command = new UpdateGroups();
25      }
26  
27      /***
28       * Creates a new UpdateGroups object.
29       */
30      public UpdateGroups() {
31          syntax = "";
32          description = "Contact all VO servers and update the local lists of users.";
33      }
34  
35      protected org.apache.commons.cli.Options buildOptions() {
36          Options options = new Options();
37  
38          return options;
39      }
40  
41      protected void execute(org.apache.commons.cli.CommandLine cmd)
42          throws Exception {
43          getGums().updateGroups();
44      }
45  }