org.opencrx.kernel.backend
Class ICalendar

java.lang.Object
  extended by org.opencrx.kernel.backend.AbstractImpl
      extended by org.opencrx.kernel.backend.ICalendar

public class ICalendar
extends AbstractImpl


Field Summary
static String DATE_FORMAT
           
static String DATETIME_FORMAT
           
static String ICAL_RECURRENCE_ID_SCHEMA
           
static String ICAL_SCHEMA
           
static short ICAL_TYPE_NA
           
static short ICAL_TYPE_VEVENT
           
static short ICAL_TYPE_VTODO
           
static String LINE_COMMENT_INDICATOR
           
static String MIME_TYPE
           
static int MIME_TYPE_CODE
           
static int PARTY_TYPE_NA
           
static int PARTY_TYPE_OPTIONAL
           
static int PARTY_TYPE_REQUIRED
           
static String PROD_ID
           
static Short USAGE_EMAIL_PRIMARY
           
 
Constructor Summary
protected ICalendar()
           
 
Method Summary
protected  String fromICalString(String s)
           
static ICalendar getInstance()
           
protected  Date getUtcDate(String dateTime, SimpleDateFormat dateTimeFormatter)
           
 BasicObject importItem(byte[] item, Activity activity, short locale, List<String> errors, List<String> report, boolean isEMailAddressLookupCaseInsensitive, boolean isEMailAddressLookupIgnoreDisabled)
           
 Activity importItem(String ical, Map<String,String> fields, Activity activity, Segment accountSegment, short locale, List<String> errors, List<String> report, boolean isEMailAddressLookupCaseInsensitive, boolean isEMailAddressLookupIgnoreDisabled)
           
 String mergeIcal(Activity activity, String sourceIcal, List<String> statusMessage)
           
 Map<String,String> parseICal(BufferedReader reader, StringBuilder ical)
           
 boolean putICal(BufferedReader reader, ActivitiesFilterHelper activitiesHelper, boolean allowCreation)
           
static void register()
           
 void removeProprietaryProperties(Map<String,String> ical)
           
 
Methods inherited from class org.opencrx.kernel.backend.AbstractImpl
getInstance, getUidAsString, registerImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATETIME_FORMAT

public static final String DATETIME_FORMAT
See Also:
Constant Field Values

DATE_FORMAT

public static final String DATE_FORMAT
See Also:
Constant Field Values

PROD_ID

public static final String PROD_ID
See Also:
Constant Field Values

MIME_TYPE

public static final String MIME_TYPE
See Also:
Constant Field Values

MIME_TYPE_CODE

public static final int MIME_TYPE_CODE
See Also:
Constant Field Values

ICAL_SCHEMA

public static final String ICAL_SCHEMA
See Also:
Constant Field Values

ICAL_RECURRENCE_ID_SCHEMA

public static final String ICAL_RECURRENCE_ID_SCHEMA
See Also:
Constant Field Values

USAGE_EMAIL_PRIMARY

public static final Short USAGE_EMAIL_PRIMARY

LINE_COMMENT_INDICATOR

public static final String LINE_COMMENT_INDICATOR
See Also:
Constant Field Values

PARTY_TYPE_NA

public static final int PARTY_TYPE_NA
See Also:
Constant Field Values

PARTY_TYPE_REQUIRED

public static final int PARTY_TYPE_REQUIRED
See Also:
Constant Field Values

PARTY_TYPE_OPTIONAL

public static final int PARTY_TYPE_OPTIONAL
See Also:
Constant Field Values

ICAL_TYPE_VTODO

public static final short ICAL_TYPE_VTODO
See Also:
Constant Field Values

ICAL_TYPE_VEVENT

public static final short ICAL_TYPE_VEVENT
See Also:
Constant Field Values

ICAL_TYPE_NA

public static final short ICAL_TYPE_NA
See Also:
Constant Field Values
Constructor Detail

ICalendar

protected ICalendar()
Method Detail

register

public static void register()

getInstance

public static ICalendar getInstance()
                             throws ServiceException
Throws:
ServiceException

mergeIcal

public String mergeIcal(Activity activity,
                        String sourceIcal,
                        List<String> statusMessage)
                 throws ServiceException
Throws:
ServiceException

removeProprietaryProperties

public void removeProprietaryProperties(Map<String,String> ical)

parseICal

public Map<String,String> parseICal(BufferedReader reader,
                                    StringBuilder ical)
                             throws IOException
Throws:
IOException

importItem

public BasicObject importItem(byte[] item,
                              Activity activity,
                              short locale,
                              List<String> errors,
                              List<String> report,
                              boolean isEMailAddressLookupCaseInsensitive,
                              boolean isEMailAddressLookupIgnoreDisabled)
                       throws ServiceException
Throws:
ServiceException

getUtcDate

protected Date getUtcDate(String dateTime,
                          SimpleDateFormat dateTimeFormatter)
                   throws ParseException
Throws:
ParseException

fromICalString

protected String fromICalString(String s)

importItem

public Activity importItem(String ical,
                           Map<String,String> fields,
                           Activity activity,
                           Segment accountSegment,
                           short locale,
                           List<String> errors,
                           List<String> report,
                           boolean isEMailAddressLookupCaseInsensitive,
                           boolean isEMailAddressLookupIgnoreDisabled)
                    throws ServiceException
Throws:
ServiceException

putICal

public boolean putICal(BufferedReader reader,
                       ActivitiesFilterHelper activitiesHelper,
                       boolean allowCreation)
                throws ServiceException
Throws:
ServiceException


This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.