Class SetPilotEMail
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetPilotEMail
A Data Access Object to update Pilot IMAP data.
- Since:
- 1.0
- Version:
- 9.0
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(int id) Deletes a user's e-mail configuration.void
disable
(int id) Disables a user's e-mail address.void
update
(IMAPConfiguration cfg, String name) Updates a user's e-mail configuration to the database.void
updatePassword
(int id, String pwd) Updates a Pilot's IMAP mailbox password.void
write
(IMAPConfiguration cfg, String name) Writes a new e-mail configuration to the database.Methods inherited from class org.deltava.dao.DAO
commitTransaction, createTimestamp, executeIDs, executeUpdate, executeUpdate, expandDate, formatDBName, formatLocation, getNewID, getQueryCount, prepare, prepareWithoutLimits, rollbackTransaction, setQueryMax, setQueryStart, setQueryTimeout, startTransaction, toID, toID, toInstant
-
Constructor Details
-
SetPilotEMail
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
delete
Deletes a user's e-mail configuration. This will not delete the mailbox on the server, merely the address records used by Postfix and Dovecot.- Parameters:
id
- the Pilot's database ID- Throws:
DAOException
- if a JDBC error occurs
-
disable
Disables a user's e-mail address.- Parameters:
id
- the Pilot's database ID- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes a new e-mail configuration to the database.- Parameters:
cfg
- the EMailConfiguration beanname
- the Pilot name- Throws:
DAOException
- if a JDBC error occurs
-
update
Updates a user's e-mail configuration to the database.- Parameters:
cfg
- the EMailConfiguration beanname
- the Pilot name- Throws:
DAOException
- if a JDBC error occurs
-
updatePassword
Updates a Pilot's IMAP mailbox password.- Parameters:
id
- the Pilot's database IDpwd
- the new password- Throws:
DAOException
- if a JDBC error occurs
-