public final class CreateAdministrator extends Object
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
| Modifier and Type | Field and Description |
|---|---|
protected EPersonService |
ePersonService |
protected GroupService |
groupService |
| Modifier | Constructor and Description |
|---|---|
protected |
CreateAdministrator()
constructor, which just creates and object with a ready context
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createAdministrator(String email,
String first,
String last,
String language,
String pw)
Create the administrator with the given details.
|
static void |
main(String[] argv)
For invoking via the command line.
|
protected void |
negotiateAdministratorDetails()
Method which will negotiate with the user via the command line to
obtain the administrator's details
|
protected EPersonService ePersonService
protected GroupService groupService
public static void main(String[] argv) throws Exception
argv - command-line argumentsException - if errorprotected void negotiateAdministratorDetails()
throws Exception
Exception - if errorprotected void createAdministrator(String email, String first, String last, String language, String pw) throws Exception
email - the email for the userfirst - user's first namelast - user's last namelanguage - preferred languagepw - desired passwordException - if errorCopyright © 2017 DuraSpace. All rights reserved.