org.dspace.administer
Class CreateAdministrator
java.lang.Object
org.dspace.administer.CreateAdministrator
public class CreateAdministrator
- extends Object
A command-line tool for creating an initial administrator for setting up a
DSpace site. Prompts for an e-mail address, last name, first name and
password from standard input. An administrator group is then created and the
data passed in used to create an e-person in that group.
Alternatively, it can be used to take the email, first name, last name and
desired password as arguments thus:
CreateAdministrator -e [email] -f [first name] -l [last name] -p [password]
This is particularly convenient for automated deploy scripts that require an
initial administrator, for example, before deployment can be completed
- Version:
- $Revision: 3733 $
- Author:
- Robert Tansley, Richard Jones
|
Method Summary |
static void |
main(String[] argv)
For invoking via the command line. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
main
public static void main(String[] argv)
throws Exception
- For invoking via the command line. If called with no command line arguments,
it will negotiate with the user for the administrator details
- Parameters:
argv - command-line arguments
- Throws:
Exception
Copyright © 2010 DuraSpace. All Rights Reserved.