KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > ui > cli > BaseAdminCommand


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13  
14 package org.ejbca.ui.cli;
15
16 import java.io.PrintStream JavaDoc;
17
18 /**
19  * Base for all AdminCommands, contains functions for getting initial context and logging
20  *
21  * @version $Id: BaseAdminCommand.java,v 1.3 2007/01/03 14:49:35 anatom Exp $
22  */

23 public abstract class BaseAdminCommand extends BaseCommand implements IAdminCommand {
24     /**
25      * Creates a new instance of BaseAdminCommand
26      *
27      * @param args command line arguments
28      * @param adminType type of admin Admin.TYPE_RA_USER, or Admin.TYPE_CACOMMANDLINE_USER
29      * @param outStream stream where commands write its output
30      */

31     public BaseAdminCommand(String JavaDoc[] args, int adminType, String JavaDoc adminId, PrintStream JavaDoc outStream) {
32         init(args, adminType, adminId, outStream);
33     }
34
35     /**
36      * Creates a new instance of BaseAdminCommand
37      *
38      * @param args command line arguments
39      * @param adminType type of admin Admin.TYPE_RA_USER, or Admin.TYPE_CACOMMANDLINE_USER
40      */

41     public BaseAdminCommand(String JavaDoc[] args, int adminType, String JavaDoc adminId) {
42         init(args, adminType, adminId, null);
43     }
44
45 } //BaseAdminCommand
46
Popular Tags