public final class JSONObjectConverter
extends java.lang.Object
JSONObjectConverter - Converts a raw JSON mail representation into a user-sensitive JSON mail representation.| Constructor and Description |
|---|
JSONObjectConverter(org.json.JSONObject rawJSONMailObject,
DisplayMode displayMode,
com.openexchange.session.Session session,
UserSettingMail usm,
com.openexchange.groupware.contexts.Context ctx)
Initializes a new
JSONObjectConverter. |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
raw2Json()
Converts this converter's raw JSON mail representation into a user-sensitive JSON mail representation.
|
public JSONObjectConverter(org.json.JSONObject rawJSONMailObject,
DisplayMode displayMode,
com.openexchange.session.Session session,
UserSettingMail usm,
com.openexchange.groupware.contexts.Context ctx)
throws com.openexchange.exception.OXException
JSONObjectConverter.rawJSONMailObject - The raw JSON mail representation to convertdisplayMode - The request-specific display modesession - The session providing needed user informationusm - The (possibly request-specific) mail settingsctx - The contextcom.openexchange.exception.OXException - If initialization failspublic org.json.JSONObject raw2Json()
throws com.openexchange.exception.OXException
com.openexchange.exception.OXException - If conversion fails