public class GraphObject extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,String> |
importanceToPriorityMap |
protected org.codehaus.jettison.json.JSONObject |
jsonObject |
protected static org.apache.log4j.Logger |
LOGGER |
protected static Map<String,String> |
priorityToImportanceMap |
protected int |
statusCode |
protected static Map<String,String> |
taskTovTodoStatusMap |
protected static Map<String,String> |
vTodoToTaskStatusMap |
| Constructor and Description |
|---|
GraphObject(org.codehaus.jettison.json.JSONObject jsonObject) |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertTimezoneFromExchange(String exchangeTimezone)
Convert Exchange timezone id to standard timezone id.
|
protected String |
formatEmailAddress(org.codehaus.jettison.json.JSONObject jsonObject) |
boolean |
getBoolean(GraphField field) |
boolean |
getBoolean(String key) |
VProperty |
getRecurrenceId()
Compute recurrenceId property based on the original start and timezone.
|
protected org.codehaus.jettison.json.JSONArray |
getSingleValueExtendedProperties()
Get a singleValueExtendedProperties JSON array.
|
String |
getString(String key)
Get mandatory property value.
|
protected String |
getTaskPriority() |
String |
getVTodoStatusFromTask() |
boolean |
optBoolean(GraphField field) |
boolean |
optBoolean(String key) |
Date |
optDateTimeTimeZone(String key)
Convert datetimetimezone to java date.
|
int |
optInt(String key) |
org.codehaus.jettison.json.JSONArray |
optJSONArray(String key) |
org.codehaus.jettison.json.JSONObject |
optJSONObject(String key) |
String |
optString(GraphField field) |
String |
optString(String key) |
String |
optString(String section,
String key)
Get optional parameter from JSON property.
|
void |
put(String alias,
boolean value)
Set the boolean value on the field defined by alias.
|
void |
put(String key,
org.codehaus.jettison.json.JSONArray values) |
void |
put(String alias,
String value)
Set value for alias.
|
void |
setCategories(String values)
Set categories from comma separated values.
|
void |
setCategories(String[] values) |
void |
setTaskImportanceFromVTodo(VObject vEvent) |
void |
setTaskStatusFromVTodo(VObject vEvent) |
String |
toString(int indentFactor) |
protected static final org.apache.log4j.Logger LOGGER
protected final org.codehaus.jettison.json.JSONObject jsonObject
protected int statusCode
public String optString(GraphField field)
protected String formatEmailAddress(org.codehaus.jettison.json.JSONObject jsonObject)
public org.codehaus.jettison.json.JSONArray optJSONArray(String key)
public void put(String alias, String value) throws org.codehaus.jettison.json.JSONException
alias - field aliasvalue - property valueorg.codehaus.jettison.json.JSONException - on errorpublic void put(String alias, boolean value) throws org.codehaus.jettison.json.JSONException
alias - field aliasvalue - property valueorg.codehaus.jettison.json.JSONException - on errorpublic void put(String key, org.codehaus.jettison.json.JSONArray values) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionpublic void setCategories(String values) throws org.codehaus.jettison.json.JSONException
values - comma separated valuesorg.codehaus.jettison.json.JSONException - on errorpublic void setCategories(String[] values) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONArray getSingleValueExtendedProperties()
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException - on errorpublic String getString(String key) throws org.codehaus.jettison.json.JSONException
key - property nameorg.codehaus.jettison.json.JSONException - on missing propertypublic String optString(String section, String key)
section - JSON property namekey - internal property namepublic boolean getBoolean(String key) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionpublic boolean optBoolean(String key)
public boolean getBoolean(GraphField field) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionpublic boolean optBoolean(GraphField field)
public org.codehaus.jettison.json.JSONObject optJSONObject(String key)
public Date optDateTimeTimeZone(String key) throws DavMailException
key - property key, e.g. dueDateTimeDavMailException - on errorpublic VProperty getRecurrenceId() throws DavMailException
DavMailException - on errorpublic static String convertTimezoneFromExchange(String exchangeTimezone)
exchangeTimezone - Exchange / O365 timezone idpublic int optInt(String key)
public String toString(int indentFactor) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionpublic void setTaskStatusFromVTodo(VObject vEvent) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionpublic String getVTodoStatusFromTask()
protected String getTaskPriority()
public void setTaskImportanceFromVTodo(VObject vEvent) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionCopyright © 2001–2026 MickaĆ«l Guessant. All rights reserved.