org.opencrx.kernel.backend
Class VCard
java.lang.Object
org.opencrx.kernel.backend.AbstractImpl
org.opencrx.kernel.backend.VCard
public class VCard
- extends AbstractImpl
|
Constructor Summary |
protected |
VCard()
|
|
Method Summary |
protected String |
encodeString(String s)
|
static VCard |
getInstance()
|
protected Date |
getUtcDate(String dateTime,
SimpleDateFormat dateTimeFormatter)
|
protected String |
getUtcDateTime(String dateTime,
SimpleDateFormat dateTimeFormatter)
|
BasicObject |
importItem(byte[] item,
Account account,
short locale,
List<String> errors,
List<String> report)
|
String |
mergeVcard(Account account,
String sourceVcard,
List<String> statusMessage)
Update sourceVcard with account values and return merged vcard. |
Map<String,String> |
parseVCard(BufferedReader reader)
|
static void |
register()
|
Account |
updateAccount(Map<String,String> vcard,
Segment accountSegment,
short locale,
List<String> report)
|
boolean |
updateEMailAddress(EMailAddress address,
String newValue)
|
boolean |
updatePhoneNumber(PhoneNumber address,
String newValue)
|
boolean |
updatePostalAddress(PostalAddress address,
String newValue,
short locale,
Segment codeSegment)
|
boolean |
updateWebAddress(WebAddress address,
String newValue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
salutations
public static final Map<Integer,String> salutations
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
VCard
protected VCard()
register
public static void register()
getInstance
public static VCard getInstance()
throws ServiceException
- Throws:
ServiceException
getUtcDateTime
protected String getUtcDateTime(String dateTime,
SimpleDateFormat dateTimeFormatter)
throws ParseException
- Throws:
ParseException
getUtcDate
protected Date getUtcDate(String dateTime,
SimpleDateFormat dateTimeFormatter)
throws ParseException
- Throws:
ParseException
encodeString
protected String encodeString(String s)
mergeVcard
public String mergeVcard(Account account,
String sourceVcard,
List<String> statusMessage)
throws ServiceException
- Update sourceVcard with account values and return merged vcard.
- Throws:
ServiceException
updatePostalAddress
public boolean updatePostalAddress(PostalAddress address,
String newValue,
short locale,
Segment codeSegment)
throws ServiceException
- Throws:
ServiceException
updatePhoneNumber
public boolean updatePhoneNumber(PhoneNumber address,
String newValue)
throws ServiceException
- Throws:
ServiceException
updateWebAddress
public boolean updateWebAddress(WebAddress address,
String newValue)
updateEMailAddress
public boolean updateEMailAddress(EMailAddress address,
String newValue)
parseVCard
public Map<String,String> parseVCard(BufferedReader reader)
throws IOException
- Throws:
IOException
importItem
public BasicObject importItem(byte[] item,
Account account,
short locale,
List<String> errors,
List<String> report)
throws ServiceException
- Throws:
ServiceException
updateAccount
public Account updateAccount(Map<String,String> vcard,
Segment accountSegment,
short locale,
List<String> report)
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.