org.exoplatform.contact.service.impl
Class VCardImportExport

java.lang.Object
  extended by org.exoplatform.contact.service.impl.VCardImportExport
All Implemented Interfaces:
ContactImportExport

public class VCardImportExport
extends java.lang.Object
implements ContactImportExport

Author : Huu-Dung Kieu huu-dung.kieu@bull.be 16 oct. 07


Constructor Summary
VCardImportExport(JCRDataStorage storage)
           
 
Method Summary
 java.io.OutputStream exportContact(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String username, java.lang.String[] addressBookIds)
          this method allow export contacts in some address books in form of output stream
 java.io.OutputStream exportContact(java.lang.String username, java.util.List<Contact> contacts)
          this method allow export contacts in form of output stream
protected  org.exoplatform.ws.frameworks.cometd.ContinuationService getContinuationService()
           
 void importContact(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String username, java.io.InputStream input, java.lang.String groupId)
          this method allow import contacts in form of input stream to a address book
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCardImportExport

public VCardImportExport(JCRDataStorage storage)
                  throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

exportContact

public java.io.OutputStream exportContact(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                          java.lang.String username,
                                          java.lang.String[] addressBookIds)
                                   throws java.lang.Exception
Description copied from interface: ContactImportExport
this method allow export contacts in some address books in form of output stream

Specified by:
exportContact in interface ContactImportExport
Parameters:
sProvider - should use system session
username - userId of current user
addressBookIds - array id of address books that user wants to export
Returns:
output stream contains contacts information
Throws:
java.lang.Exception

exportContact

public java.io.OutputStream exportContact(java.lang.String username,
                                          java.util.List<Contact> contacts)
                                   throws java.lang.Exception
Description copied from interface: ContactImportExport
this method allow export contacts in form of output stream

Specified by:
exportContact in interface ContactImportExport
Parameters:
username - userId of current user
contacts - list contacts that user wants to export
Returns:
output stream contains contacts information
Throws:
java.lang.Exception

importContact

public void importContact(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                          java.lang.String username,
                          java.io.InputStream input,
                          java.lang.String groupId)
                   throws java.lang.Exception
Description copied from interface: ContactImportExport
this method allow import contacts in form of input stream to a address book

Specified by:
importContact in interface ContactImportExport
Parameters:
sProvider - should use system session
username - userId of current user
input - input stream contains contacts information
groupId - id of address book that user wants to import contacts to
Throws:
java.lang.Exception

getContinuationService

protected org.exoplatform.ws.frameworks.cometd.ContinuationService getContinuationService()


Copyright © 2010 eXo Platform SAS. All Rights Reserved.