Class SyncEngine
- java.lang.Object
-
- org.silverpeas.core.web.calendar.ical.SyncEngine
-
public final class SyncEngine extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTHENT_LOGIN_FAILED
static String
AUTHENT_PWD_FAILED
static String
REMOTE_CONNECT_FAILED
static String
REMOTE_CONNECT_SUCCEEDED
-
Constructor Summary
Constructors Constructor Description SyncEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
synchronize(File localCalendar, URL remoteCalendar, String username, String password)
Import a remote calendar
-
-
-
Field Detail
-
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
-
-
Method Detail
-
synchronize
public final String synchronize(File localCalendar, URL remoteCalendar, String username, String password) throws org.silverpeas.kernel.SilverpeasException
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)org.silverpeas.kernel.SilverpeasException
-
-