Class ZmContactsApp
Class Detail
ZmContactsApp(container, parentController)
Creates and initializes the contacts application.
Author: Conrad Damon.
Method Detail
activate(active)
Activates the application.
{ZmContact}
getContactByEmail(address, callback)
Gets the contact with the given address, if any. If it's not in our cache
and we are given a callback, we do a search. If a search is performed then any
addresses in the Address Lookup Group are also searched for.
{Object}
getContactByPhone(phone)
Gets information about the contact with the given phone number, if any.
Canonical list only.
{ZmContactController}
getContactController(sessionId)
Gets the contact controller.
{ZmContactList}
getContactList(callback, errorCallback, account)
Gets a ZmContactList with all of the user's local contacts. If that's a
large number, performance may be slow.
{ZmContactListController}
getContactListController(sessionId, searchResultsController)
Gets the contact list controller.
{Array}
getContactsByEmails(addresses, callback)
Gets the contacts with the given addresses, if any. If there are addresses not in our cache
and we are given a callback, we do a search. Unlike #getContactByEmail, this method does not
use or modify the Address Lookup Group.
{ZmContactList}
getGalContactList()
Gets the GAL contact list. NOTE: calling method should handle exceptions.
{constant}
getInitialSearchType()
Gets the initial search type.
{int}
getLimit(offset)
Gets the limit for the search triggered by the application launch or an overview click.
{Boolean}
isContactListLoaded(acctId)
Checks if the contact list is loaded for the specified account.
launch(params, callback)
Launches the application.
resetWebClientOfflineOperations()
Online to Offline or Offline to Online; Called from ZmApp.activate and from ZmOffline.enableApps, disableApps
setActive(active)
Sets the app as active.
setAddrLookupGroup(addrs)
Sets up a list of email addresses to use to find their contacts with a single search. The addresses passed
in can either be raw email addresses (strings), or AjxEmailAddress objects. A list of the addresses is kept
so that it can later be used to create a single search query. Each address will also keep track of the
callbacks that will need to be run with its search result (it's a list of callbacks since the same address
may be used in more than one context).
One example of this group approach is in rendering a message header, where each email address in the header is rendered based on whether it maps to a contact. The group approach lets us do a single search rather than several.
showSearchResults(results, callback, searchResultsController)
Shows the search results.
updateIdHash(contact, doDelete)
Adds/remove contacts from the contact list hash
|
||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:32 GMT-0400 (EDT)
|