org.opencrx.kernel.backend
Class VCard
java.lang.Object
org.opencrx.kernel.backend.VCard
public class VCard
- extends Object
|
Method Summary |
protected String |
encodeString(String s)
|
protected String |
getUtcDateTime(String dateTime,
SimpleDateFormat dateTimeFormatter)
|
BasicObject |
importItem(byte[] item,
org.openmdx.base.naming.Path accountIdentity,
short locale,
List<String> errors,
List<String> report)
|
String |
mergeVcard(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 account,
String sourceVcard,
List<String> statusMessage)
Update sourceVcard with account values and return merged vcard. |
static Map<String,String> |
parseVCard(BufferedReader reader)
|
BasicObject |
updateAccount(Map<String,String> vcard,
org.openmdx.base.naming.Path accountSegmentIdentity,
short locale,
List<String> report)
Updates account according to values of vcard. |
boolean |
updateEMailAddress(org.openmdx.application.dataprovider.cci.DataproviderObject address,
String newValue)
|
boolean |
updatePhoneNumber(org.openmdx.application.dataprovider.cci.DataproviderObject address,
String newValue)
|
boolean |
updatePostalAddress(org.openmdx.application.dataprovider.cci.DataproviderObject address,
String newValue,
short locale)
|
boolean |
updateWebAddress(org.openmdx.application.dataprovider.cci.DataproviderObject address,
String newValue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATETIME_FORMAT
public static final String DATETIME_FORMAT
- See Also:
- Constant Field Values
MIME_TYPE
public static final String MIME_TYPE
- See Also:
- Constant Field Values
PROD_ID
public static final String PROD_ID
- See Also:
- Constant Field Values
MIME_TYPE_CODE
public static final int MIME_TYPE_CODE
- See Also:
- Constant Field Values
DEFAULT_LOCALE
public static final short DEFAULT_LOCALE
- See Also:
- Constant Field Values
VCARD_SCHEMA
public static final String VCARD_SCHEMA
- See Also:
- Constant Field Values
backend
protected final Backend backend
VCard
public VCard(Backend backend)
getUtcDateTime
protected String getUtcDateTime(String dateTime,
SimpleDateFormat dateTimeFormatter)
throws ParseException
- Throws:
ParseException
encodeString
protected String encodeString(String s)
mergeVcard
public String mergeVcard(org.openmdx.application.dataprovider.cci.DataproviderObject_1_0 account,
String sourceVcard,
List<String> statusMessage)
throws ServiceException
- Update sourceVcard with account values and return merged vcard.
- Throws:
ServiceException
updatePostalAddress
public boolean updatePostalAddress(org.openmdx.application.dataprovider.cci.DataproviderObject address,
String newValue,
short locale)
throws ServiceException
- Throws:
ServiceException
updatePhoneNumber
public boolean updatePhoneNumber(org.openmdx.application.dataprovider.cci.DataproviderObject address,
String newValue)
throws ServiceException
- Throws:
ServiceException
updateWebAddress
public boolean updateWebAddress(org.openmdx.application.dataprovider.cci.DataproviderObject address,
String newValue)
updateEMailAddress
public boolean updateEMailAddress(org.openmdx.application.dataprovider.cci.DataproviderObject address,
String newValue)
parseVCard
public static Map<String,String> parseVCard(BufferedReader reader)
throws IOException
- Throws:
IOException
importItem
public BasicObject importItem(byte[] item,
org.openmdx.base.naming.Path accountIdentity,
short locale,
List<String> errors,
List<String> report)
throws ServiceException
- Throws:
ServiceException
updateAccount
public BasicObject updateAccount(Map<String,String> vcard,
org.openmdx.base.naming.Path accountSegmentIdentity,
short locale,
List<String> report)
throws ServiceException
- Updates account according to values of vcard. If a account with email
address EMAIL;PREF;INTERNET is found then the account and its addresses
are updated. If no contact is found then null is returned.
- Throws:
ServiceException
This software is published under the BSD license. Copyright © 2003-2009, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.