org.opencrx.kernel.backend
Class ICalendar

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

public class ICalendar
extends Object


Field Summary
protected  Backend backend
           
static String DATE_FORMAT
           
static String DATETIME_FORMAT
           
static String ICAL_SCHEMA
           
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
           
protected  Map<String,String[]> partyMetadata
           
static String PROD_ID
           
static Short USAGE_EMAIL_PRIMARY
           
 
Constructor Summary
ICalendar(Backend backend)
           
 
Method Summary
protected  String fromICalString(String s)
           
 String getPrimaryEMailAddress(Path contact)
           
protected  String getUtcDateTime(String dateTime, SimpleDateFormat dateTimeFormatter)
           
 org.openmdx.base.jmi1.BasicObject importItem(byte[] item, Path activityIdentity, short locale, List<String> errors, List<String> report)
           
 Activity importItem(String ical, Map<String,String> fields, Path activityIdentity, Path accountSegmentIdentity, short locale, List<String> errors, List<String> report)
           
 String mergeIcal(DataproviderObject_1_0 activity, String sourceIcal, List<String> statusMessage)
          Update existing ical (activity.ical) with new activity values and return merged ical.
 
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

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

backend

protected final Backend backend

partyMetadata

protected final Map<String,String[]> partyMetadata
Constructor Detail

ICalendar

public ICalendar(Backend backend)
Method Detail

getPrimaryEMailAddress

public String getPrimaryEMailAddress(Path contact)
                              throws ServiceException
Throws:
ServiceException

mergeIcal

public String mergeIcal(DataproviderObject_1_0 activity,
                        String sourceIcal,
                        List<String> statusMessage)
                 throws ServiceException
Update existing ical (activity.ical) with new activity values and return merged ical.

Throws:
ServiceException

importItem

public org.openmdx.base.jmi1.BasicObject importItem(byte[] item,
                                                    Path activityIdentity,
                                                    short locale,
                                                    List<String> errors,
                                                    List<String> report)
                                             throws ServiceException
Throws:
ServiceException

getUtcDateTime

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

fromICalString

protected String fromICalString(String s)

importItem

public Activity importItem(String ical,
                           Map<String,String> fields,
                           Path activityIdentity,
                           Path accountSegmentIdentity,
                           short locale,
                           List<String> errors,
                           List<String> report)
                    throws ServiceException
Throws:
ServiceException


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