Package org.opendaylight.aaa.cli.jar
Class Main
- java.lang.Object
-
- org.opendaylight.aaa.cli.jar.AbstractMain
-
- org.opendaylight.aaa.cli.jar.Main
-
public class Main extends AbstractMain
AbstractMain
subclass with logic binding to theStandaloneCommandLineInterface
.- Author:
- Michael Vorburger.ch
-
-
Field Summary
-
Fields inherited from class org.opendaylight.aaa.cli.jar.AbstractMain
RETURN_ILLEGAL_ARGUMENTS, RETURN_PASSWORD_MISMATCH
-
-
Constructor Summary
Constructors Constructor Description Main()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
addNewUsers(List<String> userNames, List<String> passwords, boolean areAdmins)
protected int
deleteUsers(List<String> userNames)
protected void
listUsers()
static void
main(String[] args)
protected int
resetPasswords(List<String> userNames, List<String> passwords)
protected void
setDbDirectory(File dbDirectory)
protected int
verifyUsers(List<String> userNames, List<String> passwords)
-
Methods inherited from class org.opendaylight.aaa.cli.jar.AbstractMain
parseArguments, printHelp, unrecognizedOptions
-
-
-
-
Method Detail
-
setDbDirectory
protected void setDbDirectory(File dbDirectory) throws IOException, IDMStoreException
- Specified by:
setDbDirectory
in classAbstractMain
- Throws:
IOException
IDMStoreException
-
listUsers
protected void listUsers() throws IDMStoreException
- Specified by:
listUsers
in classAbstractMain
- Throws:
IDMStoreException
-
resetPasswords
protected int resetPasswords(List<String> userNames, List<String> passwords) throws IDMStoreException
- Specified by:
resetPasswords
in classAbstractMain
- Throws:
IDMStoreException
-
verifyUsers
protected int verifyUsers(List<String> userNames, List<String> passwords) throws IDMStoreException
- Specified by:
verifyUsers
in classAbstractMain
- Throws:
IDMStoreException
-
deleteUsers
protected int deleteUsers(List<String> userNames) throws IDMStoreException
- Specified by:
deleteUsers
in classAbstractMain
- Throws:
IDMStoreException
-
addNewUsers
protected int addNewUsers(List<String> userNames, List<String> passwords, boolean areAdmins) throws IDMStoreException
- Specified by:
addNewUsers
in classAbstractMain
- Throws:
IDMStoreException
-
-