org.opencrx.application.airsync.server.impl
Class DatatypeMappers

java.lang.Object
  extended by org.opencrx.application.airsync.server.impl.DatatypeMappers

public class DatatypeMappers
extends Object


Field Summary
static String ACCOUNT_URI_SCHEME
           
static String ACTIVITY_CATEGORY_URI_SCHEME
           
static String ACTIVITY_FILTER_GLOBAL_URI_SCHEME
           
static String ACTIVITY_FILTER_GROUP_URI_SCHEME
           
static String ACTIVITY_MILESTONE_URI_SCHEME
           
static String ACTIVITY_TRACKER_URI_SCHEME
           
static String ACTIVITY_URI_SCHEME
           
static String ALERT_URI_SCHEME
           
static boolean IS_EMAIL_ADDRESS_LOOKUP_CASE_INSENSITIVE
           
static boolean IS_EMAIL_ADDRESS_LOOKUP_IGNORE_DISABLED
           
static String MEDIA_URI_SCHEME
           
static String USER_HOME_URI_SCHEME
           
 
Constructor Summary
DatatypeMappers()
           
 
Method Summary
static Account findAccountMember(Account parent, short memberRole)
           
static String getICalRRule(RecurrenceT recurrenceT)
           
static RecurrenceT getRecurrence(Activity activity)
           
static void toAccount(ContactT contactT, Account account)
           
static void toAlert(EmailT emailT, Alert alert)
           
static AttachmentDataT toAttachmentData(RefObject_1_0 object)
           
static SyncDataItem toContactT(Account account, boolean noData)
           
static SyncDataItem toDataItem(RefObject_1_0 object, boolean noData)
           
static SyncDataItem toEMailT(Alert alert, boolean noData)
           
static SyncDataItem toEMailT(EMail email, boolean noData)
           
static void toEvent(EventT eventT, Meeting event)
           
static SyncDataItem toEventT(Activity activity, boolean noData)
           
static void toObject(IData data, RefObject_1_0 object)
           
static String toObjectId(RefObject_1_0 object)
           
static org.openmdx.base.naming.Path toObjectIdentity(String objectId)
           
static void toTask(TaskT taskT, Task task)
           
static SyncDataItem toTaskT(Activity activity, boolean noData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_EMAIL_ADDRESS_LOOKUP_CASE_INSENSITIVE

public static final boolean IS_EMAIL_ADDRESS_LOOKUP_CASE_INSENSITIVE
See Also:
Constant Field Values

IS_EMAIL_ADDRESS_LOOKUP_IGNORE_DISABLED

public static final boolean IS_EMAIL_ADDRESS_LOOKUP_IGNORE_DISABLED
See Also:
Constant Field Values

ACTIVITY_TRACKER_URI_SCHEME

public static final String ACTIVITY_TRACKER_URI_SCHEME
See Also:
Constant Field Values

ACTIVITY_CATEGORY_URI_SCHEME

public static final String ACTIVITY_CATEGORY_URI_SCHEME
See Also:
Constant Field Values

ACTIVITY_MILESTONE_URI_SCHEME

public static final String ACTIVITY_MILESTONE_URI_SCHEME
See Also:
Constant Field Values

ACTIVITY_FILTER_GLOBAL_URI_SCHEME

public static final String ACTIVITY_FILTER_GLOBAL_URI_SCHEME
See Also:
Constant Field Values

ACTIVITY_FILTER_GROUP_URI_SCHEME

public static final String ACTIVITY_FILTER_GROUP_URI_SCHEME
See Also:
Constant Field Values

USER_HOME_URI_SCHEME

public static final String USER_HOME_URI_SCHEME
See Also:
Constant Field Values

ACTIVITY_URI_SCHEME

public static final String ACTIVITY_URI_SCHEME
See Also:
Constant Field Values

ACCOUNT_URI_SCHEME

public static final String ACCOUNT_URI_SCHEME
See Also:
Constant Field Values

ALERT_URI_SCHEME

public static final String ALERT_URI_SCHEME
See Also:
Constant Field Values

MEDIA_URI_SCHEME

public static final String MEDIA_URI_SCHEME
See Also:
Constant Field Values
Constructor Detail

DatatypeMappers

public DatatypeMappers()
Method Detail

toDataItem

public static SyncDataItem toDataItem(RefObject_1_0 object,
                                      boolean noData)
                               throws ServiceException
Throws:
ServiceException

toObject

public static void toObject(IData data,
                            RefObject_1_0 object)
                     throws ServiceException
Throws:
ServiceException

toAccount

public static void toAccount(ContactT contactT,
                             Account account)
                      throws ServiceException
Throws:
ServiceException

toTask

public static void toTask(TaskT taskT,
                          Task task)
                   throws ServiceException
Throws:
ServiceException

toEvent

public static void toEvent(EventT eventT,
                           Meeting event)
                    throws ServiceException
Throws:
ServiceException

toAlert

public static void toAlert(EmailT emailT,
                           Alert alert)
                    throws ServiceException
Throws:
ServiceException

toObjectIdentity

public static org.openmdx.base.naming.Path toObjectIdentity(String objectId)

toObjectId

public static String toObjectId(RefObject_1_0 object)

findAccountMember

public static Account findAccountMember(Account parent,
                                        short memberRole)

getRecurrence

public static RecurrenceT getRecurrence(Activity activity)

getICalRRule

public static String getICalRRule(RecurrenceT recurrenceT)

toEventT

public static SyncDataItem toEventT(Activity activity,
                                    boolean noData)
                             throws ServiceException
Throws:
ServiceException

toEMailT

public static SyncDataItem toEMailT(EMail email,
                                    boolean noData)
                             throws ServiceException
Throws:
ServiceException

toEMailT

public static SyncDataItem toEMailT(Alert alert,
                                    boolean noData)
                             throws ServiceException
Throws:
ServiceException

toTaskT

public static SyncDataItem toTaskT(Activity activity,
                                   boolean noData)

toContactT

public static SyncDataItem toContactT(Account account,
                                      boolean noData)
                               throws ServiceException
Throws:
ServiceException

toAttachmentData

public static AttachmentDataT toAttachmentData(RefObject_1_0 object)
                                        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.