public class Reminder extends ExtensionPoint implements Extension
The meaning of this set of reminders differs based on whether you are reading or writing feeds. When reading, the set of reminders returned on an event takes into account both defaults on a parent recurring event (when applicable) as well as the user's defaults on calendar. If there are no gd:reminders returned that means the event has absolutely no reminders. "none" or "all" will not apply in this case.
Writing is different because we have to be backwards-compatible (see *) with the old way of setting reminders. For easier analysis we describe all the behaviors defined in the table below. (Notice we only include cases for minutes, as the other cases specified in terms of days/hours/absoluteTime can be converted to this case.)
Notice method is case-sensitive: must be in lowercase!
no method method method=
or method=all =none email|sms|alert
____________________________________________________________________________
no gd:rem *no reminder N/A N/A
1 gd:rem *use user's no reminder InvalidEntryException
def. settings
1 gd:rem min=0 *use user's no reminder InvalidEntryException
def. settings
1 gd:rem min=-1 *no reminder no reminder InvalidEntryException
1 gd:rem min=+n *override with no reminder set exactly one reminder
+n for user's on event at +n with given
selected method
methods
multiple gd:rem InvalidEntry- InvalidEntry- copy this set exactly
Exception Exception
Hence, to override an event with a set of reminder | Modifier and Type | Class and Description |
|---|---|
static class |
Reminder.Method |
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandler| Modifier and Type | Field and Description |
|---|---|
protected DateTime |
absoluteTime
Absolute time of the reminder.
|
protected java.lang.Integer |
days
Number of days before the start time.
|
protected java.lang.Integer |
hours
Number of hours before the start time.
|
protected Reminder.Method |
method
Optional: if not set we use the user's default methods on this calendar
|
protected java.lang.Integer |
minutes
Number of minute before the start times.
|
xmlBloblocalName, namespace| Constructor and Description |
|---|
Reminder() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(XmlWriter w,
ExtensionProfile extProfile)
Generates an XML representation for the extension.
|
DateTime |
getAbsoluteTime() |
java.lang.Integer |
getDays() |
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description.
|
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
The default implementation uses the
AbstractExtension.AttributesHandler to handle
parsing the extension. |
java.lang.Integer |
getHours() |
Reminder.Method |
getMethod() |
java.lang.Integer |
getMinutes() |
void |
setAbsoluteTime(DateTime v) |
void |
setDays(java.lang.Integer v) |
void |
setHours(java.lang.Integer v) |
void |
setMethod(Reminder.Method v) |
void |
setMinutes(java.lang.Integer v) |
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildrenconsumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validateprotected java.lang.Integer days
protected java.lang.Integer hours
protected java.lang.Integer minutes
protected DateTime absoluteTime
protected Reminder.Method method
public java.lang.Integer getDays()
public void setDays(java.lang.Integer v)
public java.lang.Integer getHours()
public void setHours(java.lang.Integer v)
public java.lang.Integer getMinutes()
public void setMinutes(java.lang.Integer v)
public DateTime getAbsoluteTime()
public void setAbsoluteTime(DateTime v)
public Reminder.Method getMethod()
public void setMethod(Reminder.Method v)
public static ExtensionDescription getDefaultDescription()
public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
Extensiongenerate in interface Extensiongenerate in class AbstractExtensionw - XML writerextProfile - extension profilejava.io.IOExceptionpublic XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
AbstractExtensionAbstractExtension.AttributesHandler to handle
parsing the extension.getHandler in interface ExtensiongetHandler in class ExtensionPointextProfile - extension profilenamespace - extension namespacelocalName - tag name, without the namespace prefixattrs - tag attributes