com.silverpeas.ical
Class SyncEngine

java.lang.Object
  extended by com.silverpeas.ical.SyncEngine

public final class SyncEngine
extends Object


Field Summary
static String AUTHENT_LOGIN_FAILED
           
static String AUTHENT_PWD_FAILED
           
static String REMOTE_CONNECT_FAILED
           
static String REMOTE_CONNECT_SUCCEEDED
           
 
Constructor Summary
SyncEngine()
           
 
Method Summary
 String synchronize(File localCalendar, URL remoteCalendar, String username, String password)
          Import a remote calendar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

SyncEngine

public SyncEngine()
Method Detail

synchronize

public final String synchronize(File localCalendar,
                                URL remoteCalendar,
                                String username,
                                String password)
                         throws Exception
Import a remote calendar

Parameters:
localCalendar - localResourceLocator calendar file
remoteCalendar - 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 mode
password - 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.