|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.usersetting.UserSettingMailStorage
public abstract class UserSettingMailStorage
UserSettingMailStorage - Access to UserSettingMail
| Method Summary | |
|---|---|
abstract void |
clearStorage()
Clears this storage's cache if any used |
void |
deleteUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx)
Deletes the user's mail settings from database |
abstract void |
deleteUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection writeConArg)
Deletes the user's mail settings from database |
static UserSettingMailStorage |
getInstance()
Gets the singleton instance of UserSettingMailStorage |
UserSettingMail |
getUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx)
A convenience method that returns getUserSettingMail(int, Context, Connection) with the connection parameter set to
null. |
UserSettingMail |
getUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection readCon)
A convenience method that returns loadUserSettingMail(int, Context, Connection). |
UserSettingMail |
getUserSettingMail(int user,
int cid)
A convenience method that returns getUserSettingMail(int, Context, Connection) with the connection parameter set to
null. |
UserSettingMail |
loadUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx)
Loads user's mail settings from database |
abstract UserSettingMail |
loadUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection readConArg)
Loads user's mail settings from database |
static void |
releaseInstance()
Releases this storage instance |
abstract 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)
Saves given user's mail settings to database |
abstract void |
saveUserSettingMail(UserSettingMail usm,
int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection writeConArg)
Saves given user's mail settings to database |
abstract void |
shutdownStorage()
Triggers necessary action to shutdown the storage |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.openexchange.cache.registry.CacheAvailabilityListener |
|---|
handleAbsence, handleAvailability |
| Method Detail |
|---|
public static final UserSettingMailStorage getInstance()
UserSettingMailStorage
UserSettingMailStoragepublic static final void releaseInstance()
public final UserSettingMail getUserSettingMail(int user,
int cid)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
getUserSettingMail(int, Context, Connection) with the connection parameter set to
null.
user - The user IDcid - The context ID
UserSettingMail which matches given user ID and context or null on exception
com.openexchange.groupware.userconfiguration.UserConfigurationException - If context cannot be loaded
public final UserSettingMail getUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx)
getUserSettingMail(int, Context, Connection) with the connection parameter set to
null.
user - The user IDctx - The context
UserSettingMail which matches given user ID and context or null on exception
public final UserSettingMail getUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection readCon)
loadUserSettingMail(int, Context, Connection). If an exception is thrown in delegated
method null is returned.
user - The user IDctx - The contextreadCon - The readable connection (may be null)
UserSettingMail which matches given user ID and context or null on exception
public final void saveUserSettingMail(UserSettingMail usm,
int user,
com.openexchange.groupware.contexts.Context ctx)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
usm - the user's mail settings to saveuser - the user IDctx - the context
com.openexchange.groupware.userconfiguration.UserConfigurationException - if user's mail settings could not be saved
public abstract void saveUserSettingMail(UserSettingMail usm,
int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection writeConArg)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
usm - 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 final void deleteUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
user - the user IDctx - the context
com.openexchange.groupware.userconfiguration.UserConfigurationException - if deletion fails
public abstract void deleteUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection writeConArg)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
user - the user IDctx - the contextwriteConArg - the writable connection; may be null
com.openexchange.groupware.userconfiguration.UserConfigurationException - - if deletion fails
public final UserSettingMail loadUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
user - the userctx - the context
UserSettingMail which matches given user ID and context
com.openexchange.groupware.userconfiguration.UserConfigurationException - if loading fails
public abstract UserSettingMail loadUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx,
java.sql.Connection readConArg)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
user - the userctx - the contextreadConArg - the readable connection
UserSettingMail which matches given user ID and context
com.openexchange.groupware.userconfiguration.UserConfigurationException - if loading fails
public abstract void removeUserSettingMail(int user,
com.openexchange.groupware.contexts.Context ctx)
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
user - the userctx - the context
com.openexchange.groupware.userconfiguration.UserConfigurationException - if cache removal fails
public abstract void clearStorage()
throws com.openexchange.groupware.userconfiguration.UserConfigurationException
com.openexchange.groupware.userconfiguration.UserConfigurationException - if cache clearing failspublic abstract void shutdownStorage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||