|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quadrique.jbuildingblocks.core.google.calendar.JbbGCalendar
public class JbbGCalendar
| Method Summary | |
|---|---|
com.google.gdata.data.calendar.CalendarEventEntry |
addEvent(JbbGCalendarUser user,
String eventTitle,
String eventContent,
JbbDate startTime,
JbbDate endTime)
to add a single (non recurrent) event |
com.google.gdata.data.calendar.CalendarEventEntry |
addEventExtendedProperty(com.google.gdata.data.calendar.CalendarEventEntry entry,
String name,
String value)
Adds an extended property to a calendar event. |
com.google.gdata.data.calendar.CalendarEventEntry |
addEventParticipant(com.google.gdata.data.calendar.CalendarEventEntry entry,
String participantEmailAddress,
boolean sendNotification)
|
com.google.gdata.data.calendar.CalendarEventEntry |
addEventParticipants(com.google.gdata.data.calendar.CalendarEventEntry entry,
List<String> participantEmailAddresses,
boolean sendNotifications)
Add participants to a calendar event. |
com.google.gdata.data.calendar.CalendarEventEntry |
addEventReminder(com.google.gdata.data.calendar.CalendarEventEntry entry,
int numMinutes,
com.google.gdata.data.extensions.Reminder.Method method)
Adds a reminder to a calendar event. |
com.google.gdata.data.calendar.CalendarEventEntry |
addQuickAddEvent(JbbGCalendarUser user,
String quickAddContent)
Creates a quick add event. |
com.google.gdata.data.calendar.CalendarEventEntry |
addRecurringEvent(JbbGCalendarUser user,
String eventTitle,
String eventContent,
String recurData)
Creates a new recurring event. |
com.google.gdata.data.calendar.CalendarEventEntry |
addWebContentEvent(JbbGCalendarUser user,
String title,
String type,
String url,
String icon,
String width,
String height)
Creates a web content event. |
List<JbbDateSpan> |
getAvailableDateSpans(JbbGCalendarUser user,
JbbDate from,
JbbDate to,
int minNbOfMinutes)
|
List<JbbDateSpan> |
getBusyDateSpans(JbbGCalendarUser user,
JbbDate from,
JbbDate to)
|
com.google.gdata.data.calendar.CalendarEntry |
getCalendar(JbbGCalendarUser user)
|
List<com.google.gdata.data.calendar.CalendarEntry> |
getCalendarsAll(JbbGCalendarUser user)
|
List<com.google.gdata.data.calendar.CalendarEntry> |
getCalendarsOwned(JbbGCalendarUser user)
|
com.google.gdata.data.calendar.CalendarEventEntry |
getEvent(JbbGCalendarUser user,
URL entryUrl)
|
List<String> |
getEventParticipants(com.google.gdata.data.calendar.CalendarEventEntry entry)
|
List<com.google.gdata.data.calendar.CalendarEventEntry> |
getEvents(JbbGCalendarUser user,
JbbGCalendarQuery query)
|
static URL |
getEventUrl(com.google.gdata.data.calendar.CalendarEventEntry entry)
|
com.google.gdata.data.calendar.CalendarEventEntry |
modifyEventSchedule(com.google.gdata.data.calendar.CalendarEventEntry entry,
JbbDate newStartTime,
JbbDate newEndTime)
Reschedule to the specified date. |
com.google.gdata.data.calendar.CalendarEventEntry |
modifyEventSchedule(JbbGCalendarUser user,
URL entryUrl,
JbbDate newStartTime,
JbbDate newEndTime)
Reschedule to the specified date. |
com.google.gdata.data.calendar.CalendarEventEntry |
modifyEventTitle(com.google.gdata.data.calendar.CalendarEventEntry entry,
String newTitle)
Updates the title of an existing calendar event. |
com.google.gdata.data.calendar.CalendarEventEntry |
modifyEventTitle(JbbGCalendarUser user,
URL entryUrl,
String newTitle)
Updates the title of an existing calendar event. |
static JbbGCalendar |
newInstance()
|
void |
removeEvent(com.google.gdata.data.calendar.CalendarEventEntry entry)
|
void |
removeEvent(JbbGCalendarUser user,
com.google.gdata.data.calendar.CalendarEventEntry entry)
|
void |
removeEvent(JbbGCalendarUser user,
URL eventUrl)
|
com.google.gdata.data.calendar.CalendarEventEntry |
removeEventParticipant(com.google.gdata.data.calendar.CalendarEventEntry entry,
String participantEmailAddress,
boolean sendNotification)
Remove the given participant (if it is found) for the given event |
void |
removeEvents(JbbGCalendarUser user,
JbbDate from,
JbbDate to)
Removes all the events that are starting in the given date range |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JbbGCalendar newInstance()
public com.google.gdata.data.calendar.CalendarEntry getCalendar(JbbGCalendarUser user)
throws IOException,
com.google.gdata.util.ServiceException
user - the user object
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server
public List<com.google.gdata.data.calendar.CalendarEntry> getCalendarsOwned(JbbGCalendarUser user)
throws IOException,
com.google.gdata.util.ServiceException
user - the user object
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server
public List<com.google.gdata.data.calendar.CalendarEntry> getCalendarsAll(JbbGCalendarUser user)
throws IOException,
com.google.gdata.util.ServiceException
user - the user object
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server
public List<com.google.gdata.data.calendar.CalendarEventEntry> getEvents(JbbGCalendarUser user,
JbbGCalendarQuery query)
throws Exception
user - the user objectthe - query object
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server.
Exception
public List<JbbDateSpan> getBusyDateSpans(JbbGCalendarUser user,
JbbDate from,
JbbDate to)
throws Exception
user - user object.from - Start time (inclusive) of events to print.to - End time (exclusive) of events to print.
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server.
Exception
public List<JbbDateSpan> getAvailableDateSpans(JbbGCalendarUser user,
JbbDate from,
JbbDate to,
int minNbOfMinutes)
throws Exception
user - from - to - minNbOfMinutes - do not return any date/time span that is less than minNbOfMinutes
Exception
public com.google.gdata.data.calendar.CalendarEventEntry addEvent(JbbGCalendarUser user,
String eventTitle,
String eventContent,
JbbDate startTime,
JbbDate endTime)
throws Exception
user - eventTitle - eventContent - startTime - endTime -
Exceptionpublic static URL getEventUrl(com.google.gdata.data.calendar.CalendarEventEntry entry)
entry -
public void removeEvent(JbbGCalendarUser user,
URL eventUrl)
throws Exception
user - entry -
Exception
public void removeEvent(JbbGCalendarUser user,
com.google.gdata.data.calendar.CalendarEventEntry entry)
throws Exception
user - entry -
Exception
public void removeEvent(com.google.gdata.data.calendar.CalendarEventEntry entry)
throws Exception
user - entry -
Exception
public com.google.gdata.data.calendar.CalendarEventEntry getEvent(JbbGCalendarUser user,
URL entryUrl)
throws Exception
user - entry -
Exception
public void removeEvents(JbbGCalendarUser user,
JbbDate from,
JbbDate to)
throws Exception
user - from - to -
Exception
public com.google.gdata.data.calendar.CalendarEventEntry addQuickAddEvent(JbbGCalendarUser user,
String quickAddContent)
throws Exception
user - user object.quickAddContent - The quick add text, including the event title, date
and time.
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server.
Exception
public com.google.gdata.data.calendar.CalendarEventEntry addWebContentEvent(JbbGCalendarUser user,
String title,
String type,
String url,
String icon,
String width,
String height)
throws com.google.gdata.util.ServiceException,
IOException
user - user object.title - The title of the web content event.type - The MIME type of the web content event, e.g. "image/gif"url - The URL of the content to display in the web content window.icon - The icon to display in the main Calendar user interface.width - The width of the web content window.height - The height of the web content window.
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server.
public com.google.gdata.data.calendar.CalendarEventEntry addRecurringEvent(JbbGCalendarUser user,
String eventTitle,
String eventContent,
String recurData)
throws com.google.gdata.util.ServiceException,
IOException
user - user object.eventTitle - Title of the event to create.eventContent - Text content of the event to create.
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server.
public com.google.gdata.data.calendar.CalendarEventEntry modifyEventTitle(com.google.gdata.data.calendar.CalendarEventEntry entry,
String newTitle)
throws com.google.gdata.util.ServiceException,
IOException
entry - The event to update.newTitle - The new title for this event.
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server.
public com.google.gdata.data.calendar.CalendarEventEntry modifyEventTitle(JbbGCalendarUser user,
URL entryUrl,
String newTitle)
throws Exception
entryUrl - The URL of the event to update.newTitle - The new title for this event.
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server.
Exception
public com.google.gdata.data.calendar.CalendarEventEntry modifyEventSchedule(JbbGCalendarUser user,
URL entryUrl,
JbbDate newStartTime,
JbbDate newEndTime)
throws Exception
entryUrl - The URL of the event to update.newStartTime - newEndTime -
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server.
Exception
public com.google.gdata.data.calendar.CalendarEventEntry modifyEventSchedule(com.google.gdata.data.calendar.CalendarEventEntry entry,
JbbDate newStartTime,
JbbDate newEndTime)
throws com.google.gdata.util.ServiceException,
IOException
entry - The event to update.newStartTime - newEndTime -
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server.
public com.google.gdata.data.calendar.CalendarEventEntry addEventReminder(com.google.gdata.data.calendar.CalendarEventEntry entry,
int numMinutes,
com.google.gdata.data.extensions.Reminder.Method method)
throws com.google.gdata.util.ServiceException,
IOException
entry - The event to update.numMinutes - Reminder time, in minutes.method - e.g.Reminder.Method.SMS or Reminder.Method.ALL
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server.
public com.google.gdata.data.calendar.CalendarEventEntry addEventParticipant(com.google.gdata.data.calendar.CalendarEventEntry entry,
String participantEmailAddress,
boolean sendNotification)
throws com.google.gdata.util.ServiceException,
IOException
entry - participantEmailAddress - sendNotification -
com.google.gdata.util.ServiceException
IOException
public com.google.gdata.data.calendar.CalendarEventEntry addEventParticipants(com.google.gdata.data.calendar.CalendarEventEntry entry,
List<String> participantEmailAddresses,
boolean sendNotifications)
throws com.google.gdata.util.ServiceException,
IOException
entry - participantEmailAddresses - sendNotifications - if true, an email will be sent to the added participants
com.google.gdata.util.ServiceException
IOException
public com.google.gdata.data.calendar.CalendarEventEntry removeEventParticipant(com.google.gdata.data.calendar.CalendarEventEntry entry,
String participantEmailAddress,
boolean sendNotification)
throws com.google.gdata.util.ServiceException,
IOException
entry - participantEmailAddress - sendNotification -
com.google.gdata.util.ServiceException
IOException
public com.google.gdata.data.calendar.CalendarEventEntry addEventExtendedProperty(com.google.gdata.data.calendar.CalendarEventEntry entry,
String name,
String value)
throws com.google.gdata.util.ServiceException,
IOException
entry - The event to update.
com.google.gdata.util.ServiceException - If the service is unable to handle the request.
IOException - Error communicating with the server.
public List<String> getEventParticipants(com.google.gdata.data.calendar.CalendarEventEntry entry)
throws Exception
entry - The event
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||