Package database.logic.user
Class DBUserManager
java.lang.Object
database.logic.user.DBUserManager
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddUserToDatabase(CallerBack callerBack, RegistrationData data) booleancheckExistence(String login) voidclose()getUserFromDatabase(AuthenticationData authData)
-
Field Details
-
MIN_PASSWORD_LENGTH
public static final int MIN_PASSWORD_LENGTH- See Also:
-
-
Constructor Details
-
DBUserManager
- Throws:
IOExceptionSQLException
-
-
Method Details
-
addUserToDatabase
public AuthorizedUserData addUserToDatabase(CallerBack callerBack, RegistrationData data) throws SQLException, RegistrationFailedException -
getUserFromDatabase
public AuthorizedUserData getUserFromDatabase(AuthenticationData authData) throws AuthorizeException, SQLException - Throws:
AuthorizeExceptionSQLException
-
checkExistence
- Throws:
SQLException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-