Package org.opendaylight.aaa.cli.jar
Class AbstractMain
java.lang.Object
org.opendaylight.aaa.cli.jar.AbstractMain
- Direct Known Subclasses:
Main
Class with main() method and argument parsing etc.
This class ONLY deals with argument parsing etc. and doesn't "do" anything,
yet; this is intentional, and best for true unit test-ability of this class.
The
Main
subclass has the actual logic.- Author:
- Michael Vorburger.ch
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
protected static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract int
addNewUsers
(List<String> userNames, List<String> passwords, boolean areAdmins) protected abstract int
deleteUsers
(List<String> userNames) protected abstract void
int
parseArguments
(String[] args) protected void
printHelp
(joptsimple.OptionParser optionParser) protected abstract int
resetPasswords
(List<String> userNames, List<String> passwords) protected abstract void
setDbDirectory
(File dbDirectory) protected void
unrecognizedOptions
(List<?> unrecognizedOptions) protected abstract int
verifyUsers
(List<String> userNames, List<String> passwords)
-
Field Details
-
RETURN_ILLEGAL_ARGUMENTS
protected static final int RETURN_ILLEGAL_ARGUMENTS- See Also:
-
RETURN_PASSWORD_MISMATCH
protected static final int RETURN_PASSWORD_MISMATCH- See Also:
-
-
Constructor Details
-
AbstractMain
public AbstractMain()
-
-
Method Details
-
parseArguments
- Throws:
Exception
-
unrecognizedOptions
-
printHelp
- Throws:
IOException
-
setDbDirectory
- Throws:
IOException
IDMStoreException
-
listUsers
- Throws:
IDMStoreException
-
resetPasswords
protected abstract int resetPasswords(List<String> userNames, List<String> passwords) throws IDMStoreException - Throws:
IDMStoreException
-
verifyUsers
protected abstract int verifyUsers(List<String> userNames, List<String> passwords) throws IDMStoreException - Throws:
IDMStoreException
-
addNewUsers
protected abstract int addNewUsers(List<String> userNames, List<String> passwords, boolean areAdmins) throws IDMStoreException - Throws:
IDMStoreException
-
deleteUsers
- Throws:
IDMStoreException
-