Blue Mind
Release 1.0

net.bluemind.core.client.calendar
Class AbstractEventSyncClient

java.lang.Object
  extended by net.bluemind.core.client.impl.AbstractClientImpl
      extended by net.bluemind.core.client.calendar.AbstractEventSyncClient
All Implemented Interfaces:
ICalendar, ISyncClient
Direct Known Subclasses:
CalendarClient

public abstract class AbstractEventSyncClient
extends AbstractClientImpl
implements ICalendar

BM sync client implementation for calendar operations


Field Summary
 
Fields inherited from class net.bluemind.core.client.impl.AbstractClientImpl
logger
 
Constructor Summary
AbstractEventSyncClient(java.lang.String type, java.lang.String syncServicesUrl)
           
 
Method Summary
 ImportStats batchCreate(AccessToken token, int calendarId, java.util.List<Event> events)
           
 int create(AccessToken token, Event event)
           
 CalendarInfo createCalendar(AccessToken token, CalendarInfo c)
           
 java.lang.String createICS(AccessToken token, Event event)
           
 java.lang.String createICS(AccessToken token, java.util.List<Event> events)
           
 CalendarView createView(AccessToken at, CalendarView cv)
           
 Event delete(AccessToken token, int id)
           
 Event deleteByExtId(AccessToken token, java.lang.String extId)
           
 void deleteCalendar(AccessToken token, int calendarId)
           
 void deleteView(AccessToken token, int id)
           
 EventChanges doSync(AccessToken token, java.util.List<SyncCalendar> syncCalendars, EventChanges clientChanges, java.util.Map<java.lang.String,EventPartNotification> notifications, java.util.List<EventAlert> alerts)
          Synchronize Event data between the client and the bm-core.
 EventChanges doSync(AccessToken token, java.util.Map<java.lang.Integer,java.util.Date> calendars, EventChanges clientChanges, java.util.Map<java.lang.String,EventPartNotification> notifications, java.util.List<EventAlert> alerts)
           
 EventChanges doSync(AccessToken token, SyncMode mode, java.util.Map<java.lang.Integer,java.util.Date> calendars, EventChanges clientChanges, java.util.Map<java.lang.String,EventPartNotification> notifications, java.util.List<EventAlert> alerts)
           
 java.lang.String exportICS(AccessToken token, java.util.Date before)
          Exports events as ICS
 java.lang.String exportResourceICS(AccessToken token, int resourceId, java.util.Date before)
          Export event as ICS from a resource calendar
 OccurrenceFactory fetchFreeBusy(AccessToken token, java.util.List<java.lang.String> attendees, java.util.Date begin, java.util.Date end)
           
 OccurrenceFactory find(AccessToken token, CalendarQuery cq)
           
 ResultList<CalendarInfo> findCalendar(AccessToken token, java.lang.String pattern, java.lang.String filter)
           
 ResultList<CalendarGroup> findFromPattern(AccessToken token, java.lang.String pattern, java.lang.String filter)
           
 User findMe(AccessToken at)
           
 ResultList<CalendarInfo> findMyCalendars(AccessToken token)
           
 java.util.List<Event> getAllEvents(AccessToken token, java.lang.String calendar, EventType eventType)
           
 java.util.List<APIKey> getApiKeys(AccessToken token)
           
 java.util.HashMap<java.lang.Integer,java.lang.Integer> getCalendarColor(AccessToken at)
           
 CalendarInfo getCalendarFromId(AccessToken token, int calendarId)
           
 Event getEventFromExtId(AccessToken token, java.lang.String extId)
           
 Event getEventFromId(AccessToken token, int id)
           
 java.util.List<FreeBusy> getFreeBusy(AccessToken token, FreeBusyRequest fbr)
           
 java.util.Date getLastUpdate(AccessToken token, java.lang.String calendar)
           
 java.util.List<Event> getListEventsFromIntervalDate(AccessToken token, java.lang.String calendar, java.util.Date start, java.util.Date end)
           
 int getPendingEventCount(AccessToken token)
           
 OccurrenceFactory getReminders(AccessToken token, java.util.Date date)
           
 CalendarInfo[] getSubscription(AccessToken token, int userId)
           
 java.lang.String getUserEmail(AccessToken token)
           
 CalendarView getView(AccessToken token, int id)
           
 java.util.List<CalendarView> getViews(AccessToken at)
           
 OccurrenceFactory getWaitingEvents(AccessToken token)
           
 ImportStats importICS(AccessToken token, java.lang.String ics)
          Imports an ICS file into the logged-in user calendar
 ImportStats importICS(AccessToken token, java.lang.String ics, int calendarId)
           
 java.lang.String insertEventException(AccessToken token, int parentEventId, java.util.Date OccurrenceDate, java.util.Date date, int duration, EventExceptionKind kind, java.lang.String extId, java.lang.String title)
           
 java.lang.String insertEventExceptionByExtId(AccessToken token, java.lang.String parentEventExtId, java.util.Date OccurrenceDate, java.util.Date date, int duration, EventExceptionKind kind, java.lang.String extId, java.lang.String title)
           
 boolean isWritableCalendar(AccessToken token, java.lang.String calendar)
           
 CalendarInfo[] listCalendars(AccessToken token)
           
 AccessToken login(java.lang.String login, java.lang.String password, java.lang.String origin)
           
 void logout(AccessToken at)
           
 java.util.List<Event> multipleCreate(AccessToken token, java.util.List<Event> events)
          Create multiple Event on bm-core.
 java.lang.String parseFreeBusyToICS(AccessToken token, FreeBusy fb)
           
 java.util.List<Event> parseICS(AccessToken token, java.lang.String ics)
           
 FreeBusyRequest parseICSFreeBusy(AccessToken token, java.lang.String ics)
           
 void resetCalendar(AccessToken token, int calendarId)
           
 void setAlert(AccessToken token, int eventId, int userId, java.lang.Integer alert)
           
 void setCalendarColor(AccessToken at, java.lang.String entity, int entityId, java.lang.Integer eventOwner)
           
 void setParticipation(AccessToken token, java.util.List<java.lang.Integer> eventId, java.lang.String entity, int entityId, ParticipationState ps, boolean ownerNotification)
           
 void setParticipationByExtId(AccessToken token, java.util.List<java.lang.String> eventExtIds, java.lang.String entity, int entityId, ParticipationState ps, boolean ownerNotification)
           
 void setParticipationByExtIdWithNote(AccessToken token, java.util.List<java.lang.String> eventExtIds, java.lang.String entity, int entityId, ParticipationState ps, boolean ownerNotification, java.lang.String note)
           
 void setParticipationWithNote(AccessToken token, java.util.List<java.lang.Integer> eventId, java.lang.String entity, int entityId, ParticipationState ps, boolean ownerNotification, java.lang.String note)
           
 void setSubscription(AccessToken token, int userId, java.util.List<java.lang.Integer> calendarIds)
           
 APIKey share(AccessToken token, java.lang.String email, java.lang.String displayName)
           
 void subscribe(AccessToken token, int userId, java.util.List<java.lang.Integer> calendarIds)
           
 AccessToken sudo(AccessToken token, java.lang.String loginAtDomain)
          Returns an AccessToken for the given loginAtDomain.
 void unshare(AccessToken token, java.lang.String externalToken)
           
 void unsubscribe(AccessToken token, int userId, java.util.List<java.lang.Integer> calendarIds)
           
 Event update(AccessToken token, Event event, boolean updateAttendees)
          Updates the event ;-) Returns null if the event does not exist.
 CalendarInfo updateCalendar(AccessToken token, CalendarInfo c)
           
 ValidationKind validate(java.lang.String loginAtDomain, java.lang.String password, java.lang.String origin)
           
 
Methods inherited from class net.bluemind.core.client.impl.AbstractClientImpl
checkServerError, execute, executeStream, executeVoid, initParams, setToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEventSyncClient

public AbstractEventSyncClient(java.lang.String type,
                               java.lang.String syncServicesUrl)
Method Detail

create

public int create(AccessToken token,
                  Event event)
           throws AuthFault,
                  ServerFault
Specified by:
create in interface ICalendar
Throws:
AuthFault
ServerFault

batchCreate

public ImportStats batchCreate(AccessToken token,
                               int calendarId,
                               java.util.List<Event> events)
                        throws AuthFault,
                               ServerFault
Specified by:
batchCreate in interface ICalendar
Throws:
AuthFault
ServerFault

multipleCreate

public java.util.List<Event> multipleCreate(AccessToken token,
                                            java.util.List<Event> events)
                                     throws AuthFault,
                                            ServerFault
Description copied from interface: ICalendar
Create multiple Event on bm-core. Warning ICalendar.multipleCreate(AccessToken, List):

Specified by:
multipleCreate in interface ICalendar
Parameters:
token - User who is charged for the creation.
events - List of Event to be created
Returns:
List of Event successfully created on server
Throws:
AuthFault
ServerFault

getEventFromId

public Event getEventFromId(AccessToken token,
                            int id)
                     throws AuthFault,
                            ServerFault
Specified by:
getEventFromId in interface ICalendar
Throws:
AuthFault
ServerFault

getUserEmail

public java.lang.String getUserEmail(AccessToken token)
                              throws AuthFault,
                                     ServerFault
Specified by:
getUserEmail in interface ICalendar
Throws:
AuthFault
ServerFault

listCalendars

public CalendarInfo[] listCalendars(AccessToken token)
                             throws ServerFault,
                                    AuthFault
Specified by:
listCalendars in interface ICalendar
Throws:
ServerFault
AuthFault

update

public Event update(AccessToken token,
                    Event event,
                    boolean updateAttendees)
             throws AuthFault,
                    ServerFault
Description copied from interface: ICalendar
Updates the event ;-) Returns null if the event does not exist.

Specified by:
update in interface ICalendar
Returns:
Throws:
AuthFault
ServerFault

delete

public Event delete(AccessToken token,
                    int id)
             throws AuthFault,
                    ServerFault
Specified by:
delete in interface ICalendar
Throws:
AuthFault
ServerFault

deleteByExtId

public Event deleteByExtId(AccessToken token,
                           java.lang.String extId)
                    throws AuthFault,
                           ServerFault
Specified by:
deleteByExtId in interface ICalendar
Throws:
AuthFault
ServerFault

getEventFromExtId

public Event getEventFromExtId(AccessToken token,
                               java.lang.String extId)
                        throws AuthFault,
                               ServerFault
Specified by:
getEventFromExtId in interface ICalendar
Throws:
AuthFault
ServerFault

getListEventsFromIntervalDate

public java.util.List<Event> getListEventsFromIntervalDate(AccessToken token,
                                                           java.lang.String calendar,
                                                           java.util.Date start,
                                                           java.util.Date end)
                                                    throws AuthFault,
                                                           ServerFault
Specified by:
getListEventsFromIntervalDate in interface ICalendar
Throws:
AuthFault
ServerFault

getAllEvents

public java.util.List<Event> getAllEvents(AccessToken token,
                                          java.lang.String calendar,
                                          EventType eventType)
                                   throws ServerFault,
                                          AuthFault
Specified by:
getAllEvents in interface ICalendar
Throws:
ServerFault
AuthFault

createICS

public java.lang.String createICS(AccessToken token,
                                  Event event)
                           throws ServerFault,
                                  AuthFault
Specified by:
createICS in interface ICalendar
Throws:
ServerFault
AuthFault

createICS

public java.lang.String createICS(AccessToken token,
                                  java.util.List<Event> events)
                           throws ServerFault,
                                  AuthFault
Specified by:
createICS in interface ICalendar
Throws:
ServerFault
AuthFault

exportICS

public java.lang.String exportICS(AccessToken token,
                                  java.util.Date before)
                           throws ServerFault,
                                  AuthFault
Description copied from interface: ICalendar
Exports events as ICS

Specified by:
exportICS in interface ICalendar
before - export every event before the given date. Export everything if null.
Returns:
the ICS string
Throws:
ServerFault
AuthFault

exportResourceICS

public java.lang.String exportResourceICS(AccessToken token,
                                          int resourceId,
                                          java.util.Date before)
                                   throws ServerFault,
                                          AuthFault
Description copied from interface: ICalendar
Export event as ICS from a resource calendar

Specified by:
exportResourceICS in interface ICalendar
Throws:
ServerFault
AuthFault

importICS

public ImportStats importICS(AccessToken token,
                             java.lang.String ics)
                      throws ServerFault,
                             AuthFault
Description copied from interface: ICalendar
Imports an ICS file into the logged-in user calendar

Specified by:
importICS in interface ICalendar
Returns:
ics event count & total imported events
Throws:
ServerFault
AuthFault

importICS

public ImportStats importICS(AccessToken token,
                             java.lang.String ics,
                             int calendarId)
                      throws AuthFault,
                             ServerFault
Specified by:
importICS in interface ICalendar
Throws:
AuthFault
ServerFault

parseICS

public java.util.List<Event> parseICS(AccessToken token,
                                      java.lang.String ics)
                               throws ServerFault,
                                      AuthFault
Specified by:
parseICS in interface ICalendar
Throws:
ServerFault
AuthFault

parseICSFreeBusy

public FreeBusyRequest parseICSFreeBusy(AccessToken token,
                                        java.lang.String ics)
                                 throws ServerFault,
                                        AuthFault
Specified by:
parseICSFreeBusy in interface ICalendar
Throws:
ServerFault
AuthFault

getLastUpdate

public java.util.Date getLastUpdate(AccessToken token,
                                    java.lang.String calendar)
                             throws ServerFault,
                                    AuthFault
Specified by:
getLastUpdate in interface ICalendar
Throws:
ServerFault
AuthFault

isWritableCalendar

public boolean isWritableCalendar(AccessToken token,
                                  java.lang.String calendar)
                           throws ServerFault,
                                  AuthFault
Specified by:
isWritableCalendar in interface ICalendar
Throws:
ServerFault
AuthFault

getFreeBusy

public java.util.List<FreeBusy> getFreeBusy(AccessToken token,
                                            FreeBusyRequest fbr)
                                     throws ServerFault,
                                            AuthFault
Specified by:
getFreeBusy in interface ICalendar
Throws:
ServerFault
AuthFault

parseFreeBusyToICS

public java.lang.String parseFreeBusyToICS(AccessToken token,
                                           FreeBusy fb)
                                    throws ServerFault,
                                           AuthFault
Specified by:
parseFreeBusyToICS in interface ICalendar
Throws:
ServerFault
AuthFault

deleteView

public void deleteView(AccessToken token,
                       int id)
                throws ServerFault
Specified by:
deleteView in interface ICalendar
Throws:
ServerFault

getView

public CalendarView getView(AccessToken token,
                            int id)
                     throws ServerFault
Specified by:
getView in interface ICalendar
Throws:
ServerFault

getViews

public java.util.List<CalendarView> getViews(AccessToken at)
                                      throws ServerFault,
                                             AuthFault
Specified by:
getViews in interface ICalendar
Throws:
ServerFault
AuthFault

createView

public CalendarView createView(AccessToken at,
                               CalendarView cv)
                        throws ServerFault,
                               AuthFault
Specified by:
createView in interface ICalendar
Throws:
ServerFault
AuthFault

getCalendarColor

public java.util.HashMap<java.lang.Integer,java.lang.Integer> getCalendarColor(AccessToken at)
                                                                        throws ServerFault,
                                                                               AuthFault
Specified by:
getCalendarColor in interface ICalendar
Throws:
ServerFault
AuthFault

setCalendarColor

public void setCalendarColor(AccessToken at,
                             java.lang.String entity,
                             int entityId,
                             java.lang.Integer eventOwner)
                      throws ServerFault,
                             AuthFault
Specified by:
setCalendarColor in interface ICalendar
Throws:
ServerFault
AuthFault

getWaitingEvents

public OccurrenceFactory getWaitingEvents(AccessToken token)
                                   throws AuthFault,
                                          ServerFault
Specified by:
getWaitingEvents in interface ICalendar
Throws:
AuthFault
ServerFault

find

public OccurrenceFactory find(AccessToken token,
                              CalendarQuery cq)
                       throws AuthFault,
                              ServerFault
Specified by:
find in interface ICalendar
Throws:
AuthFault
ServerFault

share

public APIKey share(AccessToken token,
                    java.lang.String email,
                    java.lang.String displayName)
             throws AuthFault,
                    ServerFault
Specified by:
share in interface ICalendar
Throws:
AuthFault
ServerFault

unshare

public void unshare(AccessToken token,
                    java.lang.String externalToken)
             throws AuthFault,
                    ServerFault
Specified by:
unshare in interface ICalendar
Throws:
AuthFault
ServerFault

fetchFreeBusy

public OccurrenceFactory fetchFreeBusy(AccessToken token,
                                       java.util.List<java.lang.String> attendees,
                                       java.util.Date begin,
                                       java.util.Date end)
                                throws AuthFault,
                                       ServerFault
Specified by:
fetchFreeBusy in interface ICalendar
Throws:
AuthFault
ServerFault

insertEventException

public java.lang.String insertEventException(AccessToken token,
                                             int parentEventId,
                                             java.util.Date OccurrenceDate,
                                             java.util.Date date,
                                             int duration,
                                             EventExceptionKind kind,
                                             java.lang.String extId,
                                             java.lang.String title)
                                      throws AuthFault,
                                             ServerFault
Specified by:
insertEventException in interface ICalendar
Throws:
AuthFault
ServerFault

insertEventExceptionByExtId

public java.lang.String insertEventExceptionByExtId(AccessToken token,
                                                    java.lang.String parentEventExtId,
                                                    java.util.Date OccurrenceDate,
                                                    java.util.Date date,
                                                    int duration,
                                                    EventExceptionKind kind,
                                                    java.lang.String extId,
                                                    java.lang.String title)
                                             throws AuthFault,
                                                    ServerFault
Specified by:
insertEventExceptionByExtId in interface ICalendar
Throws:
AuthFault
ServerFault

setAlert

public void setAlert(AccessToken token,
                     int eventId,
                     int userId,
                     java.lang.Integer alert)
              throws AuthFault,
                     ServerFault
Specified by:
setAlert in interface ICalendar
Throws:
AuthFault
ServerFault

setParticipation

public void setParticipation(AccessToken token,
                             java.util.List<java.lang.Integer> eventId,
                             java.lang.String entity,
                             int entityId,
                             ParticipationState ps,
                             boolean ownerNotification)
                      throws AuthFault,
                             ServerFault
Specified by:
setParticipation in interface ICalendar
Throws:
AuthFault
ServerFault

setParticipationByExtId

public void setParticipationByExtId(AccessToken token,
                                    java.util.List<java.lang.String> eventExtIds,
                                    java.lang.String entity,
                                    int entityId,
                                    ParticipationState ps,
                                    boolean ownerNotification)
                             throws AuthFault,
                                    ServerFault
Specified by:
setParticipationByExtId in interface ICalendar
Throws:
AuthFault
ServerFault

setParticipationWithNote

public void setParticipationWithNote(AccessToken token,
                                     java.util.List<java.lang.Integer> eventId,
                                     java.lang.String entity,
                                     int entityId,
                                     ParticipationState ps,
                                     boolean ownerNotification,
                                     java.lang.String note)
                              throws AuthFault,
                                     ServerFault
Specified by:
setParticipationWithNote in interface ICalendar
Throws:
AuthFault
ServerFault

setParticipationByExtIdWithNote

public void setParticipationByExtIdWithNote(AccessToken token,
                                            java.util.List<java.lang.String> eventExtIds,
                                            java.lang.String entity,
                                            int entityId,
                                            ParticipationState ps,
                                            boolean ownerNotification,
                                            java.lang.String note)
                                     throws AuthFault,
                                            ServerFault
Specified by:
setParticipationByExtIdWithNote in interface ICalendar
Throws:
AuthFault
ServerFault

resetCalendar

public void resetCalendar(AccessToken token,
                          int calendarId)
                   throws AuthFault,
                          ServerFault
Specified by:
resetCalendar in interface ICalendar
Throws:
AuthFault
ServerFault

findFromPattern

public ResultList<CalendarGroup> findFromPattern(AccessToken token,
                                                 java.lang.String pattern,
                                                 java.lang.String filter)
                                          throws AuthFault,
                                                 ServerFault
Specified by:
findFromPattern in interface ICalendar
Throws:
AuthFault
ServerFault

doSync

public EventChanges doSync(AccessToken token,
                           java.util.Map<java.lang.Integer,java.util.Date> calendars,
                           EventChanges clientChanges,
                           java.util.Map<java.lang.String,EventPartNotification> notifications,
                           java.util.List<EventAlert> alerts)
                    throws AuthFault,
                           ServerFault
Specified by:
doSync in interface ICalendar
Throws:
AuthFault
ServerFault

doSync

public EventChanges doSync(AccessToken token,
                           SyncMode mode,
                           java.util.Map<java.lang.Integer,java.util.Date> calendars,
                           EventChanges clientChanges,
                           java.util.Map<java.lang.String,EventPartNotification> notifications,
                           java.util.List<EventAlert> alerts)
                    throws AuthFault,
                           ServerFault
Specified by:
doSync in interface ICalendar
Throws:
AuthFault
ServerFault

doSync

public EventChanges doSync(AccessToken token,
                           java.util.List<SyncCalendar> syncCalendars,
                           EventChanges clientChanges,
                           java.util.Map<java.lang.String,EventPartNotification> notifications,
                           java.util.List<EventAlert> alerts)
                    throws AuthFault,
                           ServerFault
Description copied from interface: ICalendar
Synchronize Event data between the client and the bm-core. ICalendar.doSync(AccessToken, Map, EventChanges, Map, List) is a complex method that : This operation is done for each CalendarInfo's id / Date couple sent. The Date is the timestamp of the last synchronization. All changes done after this Date will be processed.

Specified by:
doSync in interface ICalendar
Parameters:
token - User who is charged for the synchronization.
clientChanges - Changes done on the client-size
Returns:
Throws:
AuthFault
ServerFault

subscribe

public void subscribe(AccessToken token,
                      int userId,
                      java.util.List<java.lang.Integer> calendarIds)
               throws AuthFault,
                      ServerFault
Specified by:
subscribe in interface ICalendar
Throws:
AuthFault
ServerFault

unsubscribe

public void unsubscribe(AccessToken token,
                        int userId,
                        java.util.List<java.lang.Integer> calendarIds)
                 throws AuthFault,
                        ServerFault
Specified by:
unsubscribe in interface ICalendar
Throws:
AuthFault
ServerFault

getSubscription

public CalendarInfo[] getSubscription(AccessToken token,
                                      int userId)
                               throws AuthFault,
                                      ServerFault
Specified by:
getSubscription in interface ICalendar
Throws:
AuthFault
ServerFault

setSubscription

public void setSubscription(AccessToken token,
                            int userId,
                            java.util.List<java.lang.Integer> calendarIds)
                     throws AuthFault,
                            ServerFault
Specified by:
setSubscription in interface ICalendar
Throws:
AuthFault
ServerFault

createCalendar

public CalendarInfo createCalendar(AccessToken token,
                                   CalendarInfo c)
                            throws AuthFault,
                                   ServerFault
Specified by:
createCalendar in interface ICalendar
Throws:
AuthFault
ServerFault

updateCalendar

public CalendarInfo updateCalendar(AccessToken token,
                                   CalendarInfo c)
                            throws AuthFault,
                                   ServerFault
Specified by:
updateCalendar in interface ICalendar
Throws:
AuthFault
ServerFault

deleteCalendar

public void deleteCalendar(AccessToken token,
                           int calendarId)
                    throws AuthFault,
                           ServerFault
Specified by:
deleteCalendar in interface ICalendar
Throws:
AuthFault
ServerFault

findCalendar

public ResultList<CalendarInfo> findCalendar(AccessToken token,
                                             java.lang.String pattern,
                                             java.lang.String filter)
                                      throws AuthFault,
                                             ServerFault
Specified by:
findCalendar in interface ICalendar
Throws:
AuthFault
ServerFault

getCalendarFromId

public CalendarInfo getCalendarFromId(AccessToken token,
                                      int calendarId)
                               throws AuthFault,
                                      ServerFault
Specified by:
getCalendarFromId in interface ICalendar
Throws:
AuthFault
ServerFault

findMe

public User findMe(AccessToken at)
            throws ServerFault,
                   AuthFault
Specified by:
findMe in interface ICalendar
Throws:
ServerFault
AuthFault

login

public AccessToken login(java.lang.String login,
                         java.lang.String password,
                         java.lang.String origin)
Specified by:
login in interface ISyncClient
Overrides:
login in class AbstractClientImpl

logout

public void logout(AccessToken at)
Specified by:
logout in interface ISyncClient
Overrides:
logout in class AbstractClientImpl

findMyCalendars

public ResultList<CalendarInfo> findMyCalendars(AccessToken token)
                                         throws ServerFault,
                                                AuthFault
Specified by:
findMyCalendars in interface ICalendar
Throws:
ServerFault
AuthFault

sudo

public AccessToken sudo(AccessToken token,
                        java.lang.String loginAtDomain)
                 throws AuthFault,
                        ServerFault
Description copied from interface: ISyncClient
Returns an AccessToken for the given loginAtDomain. The provided AccessToken must be an admin0@global.virt token.

Specified by:
sudo in interface ISyncClient
Overrides:
sudo in class AbstractClientImpl
Returns:
Throws:
AuthFault
ServerFault

getPendingEventCount

public int getPendingEventCount(AccessToken token)
                         throws ServerFault,
                                AuthFault
Specified by:
getPendingEventCount in interface ICalendar
Throws:
ServerFault
AuthFault

validate

public ValidationKind validate(java.lang.String loginAtDomain,
                               java.lang.String password,
                               java.lang.String origin)
Specified by:
validate in interface ISyncClient
Overrides:
validate in class AbstractClientImpl

getApiKeys

public java.util.List<APIKey> getApiKeys(AccessToken token)
                                  throws AuthFault,
                                         ServerFault
Specified by:
getApiKeys in interface ICalendar
Throws:
AuthFault
ServerFault

getReminders

public OccurrenceFactory getReminders(AccessToken token,
                                      java.util.Date date)
                               throws ServerFault,
                                      AuthFault
Specified by:
getReminders in interface ICalendar
Throws:
ServerFault
AuthFault

Blue Mind
Release 1.0