final ContactGroupFeed requestFeed = new ContactGroupFeed();
/** * Declare the extensions of the feeds for the Google Contacts service. */ private void declareExtensions() { new ContactFeed().declareExtensions(extProfile); new ContactGroupFeed().declareExtensions(extProfile); new ProfileFeed().declareExtensions(extProfile); BatchUtils.declareExtensions(extProfile); }
/** * Declare the extensions of the feeds for the Google Contacts service. */ private void declareExtensions() { new ContactFeed().declareExtensions(extProfile); new ContactGroupFeed().declareExtensions(extProfile); new ProfileFeed().declareExtensions(extProfile); BatchUtils.declareExtensions(extProfile); }
/** * Declare the extensions of the feeds for the Google Contacts service. */ private void declareExtensions() { new ContactFeed().declareExtensions(extProfile); new ContactGroupFeed().declareExtensions(extProfile); new ProfileFeed().declareExtensions(extProfile); BatchUtils.declareExtensions(extProfile); }
/** * Create a contacts groups batch result for negative case. * * @param groupId ID of the contact group. * @return ContactFeed object containing the batch. * @throws ServiceException the service exception. * @throws IOException Signals that an I/O exception has occurred. * @throws MalformedURLException error in the provided URLs. * @throws BatchInterruptedException Batch Interruption failure exception. */ public ContactGroupFeed retrieveBatchContactGroupFeed(final String groupId) throws BatchInterruptedException, MalformedURLException, IOException, ServiceException { final ContactGroupFeed batchFeed = new ContactGroupFeed(); final ContactGroupEntry retrieveEntry = new ContactGroupEntry(); final StringBuilder requestUrlBuilder = new StringBuilder("https://www.google.com/m8/feeds/groups/").append(emailAddress).append("/full/") .append(groupId); retrieveEntry.setId(requestUrlBuilder.toString()); BatchUtils.setBatchId(retrieveEntry, "retrieve"); BatchUtils.setBatchOperationType(retrieveEntry, BatchOperationType.QUERY); batchFeed.getEntries().add(retrieveEntry); return directInvokerContactsService.batch(new URL( "https://www.google.com/m8/feeds/groups/default/full/batch"), batchFeed); } }