com.silverpeas.ical
Class SyncEngine
java.lang.Object
com.silverpeas.ical.SyncEngine
public final class SyncEngine
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REMOTE_CONNECT_SUCCEEDED
public static final String REMOTE_CONNECT_SUCCEEDED
- See Also:
- Constant Field Values
AUTHENT_LOGIN_FAILED
public static final String AUTHENT_LOGIN_FAILED
- See Also:
- Constant Field Values
AUTHENT_PWD_FAILED
public static final String AUTHENT_PWD_FAILED
- See Also:
- Constant Field Values
REMOTE_CONNECT_FAILED
public static final String REMOTE_CONNECT_FAILED
- See Also:
- Constant Field Values
SyncEngine
public SyncEngine()
synchronize
public final String synchronize(File localCalendar,
URL remoteCalendar,
String username,
String password)
throws Exception
- Import a remote calendar
- Parameters:
localCalendar
- localResourceLocator calendar fileremoteCalendar
- Google SilverpeasCalendar's private ICAL URL
("https://www.google.com/calendar/ical/.../basic.ics"), or the RSS/ATOM feed's URL (= feed
converter mode)username
- full name of the user (eg. "username@gmail.com" or "username@mydomain.org"),
this value is optional in feed converter modepassword
- Gmail password (in unencrypted, plain text format), this value is optional in
feed converter mode
- Throws:
Exception
- any exception (eg. i/o, invalid param, invalid calendar syntax, etc)
Copyright © 2016 Silverpeas. All Rights Reserved.