com.quadrique.jbuildingblocks.core.google.contacts
Class JbbGContacts

java.lang.Object
  extended by com.quadrique.jbuildingblocks.core.google.contacts.JbbGContacts

public class JbbGContacts
extends Object

Author:
dkumbham

Method Summary
 com.google.gdata.data.contacts.ContactEntry getContactInternal(JbbGContactsUser gUser, String id)
          Gets a contact by its id.
 com.google.gdata.data.contacts.ContactGroupEntry getGroupInternal(JbbGContactsUser gUser, String id)
          Gets a Group by its id.
 List<com.google.gdata.data.contacts.ContactGroupEntry> listContactGroups(JbbGContactsUser gUser)
          List Group entries (no parameter are taken into account) Note! only 25 results will be returned - this is default.
 List<com.google.gdata.data.contacts.ContactEntry> listContacts(JbbGContactsUser gUser)
          List Contacts entries (no parameter are taken into account) Note! only 25 results will be returned - this is default.
static JbbGContacts newInstance()
           
 List<com.google.gdata.data.contacts.ContactGroupEntry> queryContactGroups(JbbGContactsUser gUser, JbbGContactsQuery queryParameters)
          Query Contacts entries according to parameters specified.
 List<com.google.gdata.data.contacts.ContactEntry> queryContacts(JbbGContactsUser gUser, JbbGContactsQuery queryParameters)
          Query Contacts entries according to parameters specified.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static JbbGContacts newInstance()
Returns:
a new instance

getContactInternal

public com.google.gdata.data.contacts.ContactEntry getContactInternal(JbbGContactsUser gUser,
                                                                      String id)
                                                               throws IOException,
                                                                      com.google.gdata.util.ServiceException
Gets a contact by its id.

Parameters:
id - the id of the contact.
Returns:
the ContactEntry or null if not found.
Throws:
IOException
com.google.gdata.util.ServiceException

getGroupInternal

public com.google.gdata.data.contacts.ContactGroupEntry getGroupInternal(JbbGContactsUser gUser,
                                                                         String id)
                                                                  throws IOException,
                                                                         com.google.gdata.util.ServiceException
Gets a Group by its id.

Parameters:
id - the id of the group.
Returns:
the GroupEntry or null if not found.
Throws:
IOException
com.google.gdata.util.ServiceException

listContacts

public List<com.google.gdata.data.contacts.ContactEntry> listContacts(JbbGContactsUser gUser)
                                                               throws IOException,
                                                                      com.google.gdata.util.ServiceException
List Contacts entries (no parameter are taken into account) Note! only 25 results will be returned - this is default.

Parameters:
JbbGContactsUser -
Throws:
IOException
com.google.gdata.util.ServiceException

listContactGroups

public List<com.google.gdata.data.contacts.ContactGroupEntry> listContactGroups(JbbGContactsUser gUser)
                                                                         throws IOException,
                                                                                com.google.gdata.util.ServiceException
List Group entries (no parameter are taken into account) Note! only 25 results will be returned - this is default.

Parameters:
JbbGContactsUser -
Throws:
IOException
com.google.gdata.util.ServiceException

queryContacts

public List<com.google.gdata.data.contacts.ContactEntry> queryContacts(JbbGContactsUser gUser,
                                                                       JbbGContactsQuery queryParameters)
                                                                throws IOException,
                                                                       com.google.gdata.util.ServiceException
Query Contacts entries according to parameters specified.

Parameters:
JbbGContactsUser - googleUser
JbbGCOntactsQuery -
Throws:
IOException
com.google.gdata.util.ServiceException

queryContactGroups

public List<com.google.gdata.data.contacts.ContactGroupEntry> queryContactGroups(JbbGContactsUser gUser,
                                                                                 JbbGContactsQuery queryParameters)
                                                                          throws IOException,
                                                                                 com.google.gdata.util.ServiceException
Query Contacts entries according to parameters specified.

Parameters:
JbbGContactsUser - googleUser
JbbGCOntactsQuery -
Throws:
IOException
com.google.gdata.util.ServiceException


Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.