Interface AdministratorDAO
- All Superinterfaces:
DAOInterface
- All Known Implementing Classes:
AdministratorDAOHibernate
Interface for a DAO to manage the
sscAdministrator
table of
the database.- Author:
- David Tobey
-
Method Summary
Modifier and TypeMethodDescriptionint
administratorChangePassword
(String currentDecryptedPassword, String newDecryptedPassword, int administratorID, String passwordExpires, String previousPasswords) void
void
deleteAdministrator
(boolean commit) void
void
insertAdministrator
(boolean commit) void
loadAdministratorByUserName
(String administratorUserName) void
loadFromApiUserNameAndPassword
(String apiLoginID, String apiAuthenticationToken) void
loadFromUserNameAndPassword
(String administratorUserName, String administratorPassword) void
void
loadRoles
(Administrator administrator) void
setAdministrator
(Administrator administrator) void
void
updateAdministrator
(boolean commit) Methods inherited from interface com.softslate.commerce.daos.core.DAOInterface
deleteObject, formatDateTime, getAppComponents, getAppSettings, getConnection, getDaoFactory, getDAOUtils, getDataSource, getInjector, getSettings, getSqlMap, initialize, insertObject, loadAll, loadAll, loadObject, parseDateTime, setAppComponents, setAppSettings, setConnection, setDaoFactory, setDAOUtils, setDataSource, setInjector, setSettings, setSqlMap, updateObject
-
Method Details
-
getAdministrator
Administrator getAdministrator() -
setAdministrator
-
loadFromUserNameAndPassword
- Throws:
Exception
-
loadFromUserNameAndPassword
Administrator loadFromUserNameAndPassword(String administratorUserName, String administratorPassword) throws DataAccessException - Throws:
DataAccessException
-
loadFromApiUserNameAndPassword
Administrator loadFromApiUserNameAndPassword(String apiLoginID, String apiAuthenticationToken) throws Exception - Throws:
Exception
-
loadAdministratorByUserName
- Throws:
Exception
-
loadAdministratorByUserName
- Throws:
DataAccessException
-
loadRoles
- Throws:
Exception
-
loadRoles
- Throws:
Exception
-
insertAdministrator
- Throws:
Exception
-
insertAdministrator
- Throws:
Exception
-
updateAdministrator
- Throws:
Exception
-
updateAdministrator
- Throws:
Exception
-
loadAdministratorFromID
- Throws:
Exception
-
deleteAdministrator
- Throws:
Exception
-
deleteAdministrator
- Throws:
Exception
-
administratorChangePassword
int administratorChangePassword(String currentDecryptedPassword, String newDecryptedPassword, int administratorID, String passwordExpires, String previousPasswords) throws DataAccessException - Throws:
DataAccessException
-