org.opencrx.kernel.backend
Class VCard

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

public class VCard
extends Object


Field Summary
protected  Backend backend
           
static String MIME_TYPE
           
static int MIME_TYPE_CODE
           
 
Constructor Summary
VCard(Backend backend)
           
 
Method Summary
 byte[] exportItem(Path contactIdentity, short locale)
           
 org.openmdx.base.jmi1.BasicObject importItem(byte[] item, Path segmentPath, short locale, List report)
           
 org.openmdx.base.jmi1.BasicObject importItem(Map vcard, Path segmentPath, short locale, List report, boolean updateOnly)
          Imports the vcard.
 boolean updateEMailAddress(DataproviderObject address, String newValue)
           
 boolean updatePhoneNumber(DataproviderObject address, String newValue)
           
 boolean updatePostalAddress(DataproviderObject address, String newValue, short locale)
           
 boolean updateWebAddress(DataproviderObject address, String newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

backend

protected final Backend backend
Constructor Detail

VCard

public VCard(Backend backend)
Method Detail

exportItem

public byte[] exportItem(Path contactIdentity,
                         short locale)
                  throws ServiceException
Throws:
ServiceException

updatePostalAddress

public boolean updatePostalAddress(DataproviderObject address,
                                   String newValue,
                                   short locale)
                            throws ServiceException
Throws:
ServiceException

updatePhoneNumber

public boolean updatePhoneNumber(DataproviderObject address,
                                 String newValue)
                          throws ServiceException
Throws:
ServiceException

updateWebAddress

public boolean updateWebAddress(DataproviderObject address,
                                String newValue)

updateEMailAddress

public boolean updateEMailAddress(DataproviderObject address,
                                  String newValue)

importItem

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

importItem

public org.openmdx.base.jmi1.BasicObject importItem(Map vcard,
                                                    Path segmentPath,
                                                    short locale,
                                                    List report,
                                                    boolean updateOnly)
                                             throws ServiceException
Imports the vcard. If a contact with email address EMAIL;PREF;INTERNET is found then the contact and addresses are updated with the new vcard info. If no contact is found then the contact and all its addresses are created. If createOnly=true then no existing data is updated. However, if the contact does not exist it is created.

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.