|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.usersetting.UserSettingMailStorage
com.openexchange.mail.usersetting.CachingUserSettingMailStorage
public final class CachingUserSettingMailStorage
CachingUserSettingMailStorage - this storage tries to use a cache for instances of and falls back to
database-based storage if any cache-related errors occur
UserSettingMail
| Method Summary | |
|---|---|
void |
clearStorage()
Clears this storage's cache if any used |
void |
deleteUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection writeConArg)
Deletes the user's mail settings from database |
void |
handleAbsence()
Handles the (possibly temporary) absence of cache service |
void |
handleAvailability()
Handles the (re-)availability of cache service |
UserSettingMail |
loadUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection readConArg)
Loads user's mail settings from database |
void |
removeUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx)
Removes the user's mail settings from cache if any used |
void |
saveUserSettingMail(UserSettingMail usm,
int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection writeConArg)
Saves given user's mail settings to database |
void |
shutdownStorage()
Triggers necessary action to shutdown the storage |
| Methods inherited from class com.openexchange.mail.usersetting.UserSettingMailStorage |
|---|
deleteUserSettingMail, getInstance, getUserSettingMail, getUserSettingMail, getUserSettingMail, loadUserSettingMail, releaseInstance, saveUserSettingMail |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void saveUserSettingMail(UserSettingMail usm,
int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection writeConArg)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
saveUserSettingMail in class UserSettingMailStorageusm - the user's mail settings to saveuser - the user IDctx - the contextwriteConArg - - the writable connection; may be null
com.openexchange.groupware.userconfiguration.UserConfigurationException - if user's mail settings could not be saved
public void deleteUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection writeConArg)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
deleteUserSettingMail in class UserSettingMailStorageuser - the user IDctx - the contextwriteConArg - the writable connection; may be null
com.openexchange.groupware.userconfiguration.UserConfigurationException - - if deletion fails
public UserSettingMail loadUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection readConArg)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
loadUserSettingMail in class UserSettingMailStorageuser - the userctx - the contextreadConArg - the readable connection; may be null to fetch own connection.
UserSettingMail which matches given user ID and context
com.openexchange.groupware.userconfiguration.UserConfigurationException - if loading fails
public void clearStorage()
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
UserSettingMailStorage
clearStorage in class UserSettingMailStoragecom.openexchange.groupware.userconfiguration.UserConfigurationException - if cache clearing fails
public void removeUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
UserSettingMailStorage
removeUserSettingMail in class UserSettingMailStorageuser - the userctx - the context
com.openexchange.groupware.userconfiguration.UserConfigurationException - if cache removal failspublic void shutdownStorage()
UserSettingMailStorage
shutdownStorage in class UserSettingMailStorage
public void handleAbsence()
throws com.openexchange.groupware.AbstractOXException
com.openexchange.cache.registry.CacheAvailabilityListener
com.openexchange.groupware.AbstractOXException - If an error occurs
public void handleAvailability()
throws com.openexchange.groupware.AbstractOXException
com.openexchange.cache.registry.CacheAvailabilityListener
com.openexchange.groupware.AbstractOXException - If an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||