org.exoplatform.contact.service
Interface ContactImportExport

All Known Implementing Classes:
VCardImportExport

public interface ContactImportExport

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


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
 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
 

Method Detail

importContact

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
this method allow import contacts in form of input stream to a address book

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

exportContact

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

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

exportContact

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

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


Copyright © 2010 eXo Platform SAS. All Rights Reserved.