|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSK.gnome.dwarf.GenericService
SK.gnome.dwarf.mail.store.GenericFileStore
SK.gnome.dwarf.mail.store.FileUserStore
This class provides a filesystem-based user store.
| Field Summary |
| Fields inherited from class SK.gnome.dwarf.mail.store.GenericFileStore |
autoCreate, backupObjects, letterSubdirs, userBaseDir |
| Fields inherited from class SK.gnome.dwarf.GenericService |
initParameters, parent |
| Fields inherited from interface SK.gnome.dwarf.Service |
INITIALIZED, LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_TRACE, LOG_WARN, LOG_XFER, SHUTDOWN, STARTED, STOPPED |
| Constructor Summary | |
FileUserStore(java.lang.String name)
Creates a new FileUserStore. |
|
| Method Summary | |
java.io.InputStream |
getAutoReply(java.lang.String user)
Returns an automatic reply message for the given user. |
java.lang.String[] |
getForwardAddress(java.lang.String user)
Returns a list of forward addresses associated with the given user. |
boolean |
hasSubscribed(java.lang.String user,
java.lang.String mailbox)
Whether the mailbox is subscribed for the given user. |
Options |
readOptions(java.lang.String user)
Reads the webmail user options. |
void |
storeOptions(java.lang.String user,
Options options)
Stores the webmail user options. |
void |
subscribe(java.lang.String user,
java.lang.String mailbox)
Subscribes the mailbox for the given user. |
void |
unsubscribe(java.lang.String user,
java.lang.String mailbox)
Unsubscribes the mailbox for the given user. |
| Methods inherited from class SK.gnome.dwarf.mail.store.GenericFileStore |
create, exists, getUserDirectory, init, listUsers, lock, readObject, remove, setAutoCreate, setBackupObjects, setLetterSubdirs, setUserBaseDir, storeObject, unlock |
| Methods inherited from class SK.gnome.dwarf.GenericService |
getAuthenticator, getAuthFacility, getFullName, getInitParameter, getInitParameterNames, getLogFacility, getLogger, getName, getParameters, getPrincipal, getShutdownTimeout, getState, log, log, login, logout, setAuthFacility, setInitParameters, setLogFacility, shutdown, start, stop, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface SK.gnome.dwarf.mail.store.UserStore |
create, exists, listUsers, remove |
| Constructor Detail |
public FileUserStore(java.lang.String name)
| Method Detail |
public java.lang.String[] getForwardAddress(java.lang.String user)
throws MailException
UserStoreThis method must be implemented for SMTPServer setup.
getForwardAddress in interface UserStoreuser - the user identification
MailException - if an error occured
public java.io.InputStream getAutoReply(java.lang.String user)
throws java.io.IOException,
MailException
UserStoreThis method must be implemented for SMTPServer setup.
getAutoReply in interface UserStoreuser - the user identification
MailException - if an error occured
java.io.IOException - if an I/O error occured
public boolean hasSubscribed(java.lang.String user,
java.lang.String mailbox)
throws MailException
UserStoreThis method must be implemented for IMAPServer setup.
hasSubscribed in interface UserStoreuser - the user identificationmailbox - the full mailbox name
MailException - if an error occured
public void subscribe(java.lang.String user,
java.lang.String mailbox)
throws MailException
UserStoreThis method must be implemented for IMAPServer setup.
subscribe in interface UserStoreuser - the user identificationmailbox - the full mailbox name
MailException - if an error occured
public void unsubscribe(java.lang.String user,
java.lang.String mailbox)
throws MailException
UserStoreThis method must be implemented for IMAPServer setup.
unsubscribe in interface UserStoreuser - the user identificationmailbox - the full mailbox name
MailException - if an error occured
public Options readOptions(java.lang.String user)
throws MailException
UserStoreReturns null if there are no user options for the given user currently stored.
This method must be implemented for Webmail setup.
readOptions in interface UserStoreuser - the user identification
MailException - if an error occured
public void storeOptions(java.lang.String user,
Options options)
throws MailException
UserStoreThis method must be implemented for Webmail setup.
storeOptions in interface UserStoreuser - the user identificationoptions - the user options
MailException - if an error occured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||