public interface ContactSession extends OsidSession
This session defines methods for retrieving contacts.
This lookup session defines several views:
 ContactAdminSession.   The methods  useFederatedAddressBookView()  and  
  useIsolatedAddressBookView()  behave as a radio group and one 
  should be selected before invoking any lookup methods. This session is 
  always in comparative mode. 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | canGetContacts()Tests if this user can lookup contacts. | 
| AddressBook | getAddressBook()Gets the   AddressBook associated with this session. | 
| Id | getAddressBookId()Gets the   AddressBook  Id associated with 
  this session. | 
| ContactList | getAvailableContacts(Id referenceId)Gets a list of all current available contacts corresponding to a 
  reference   Id sorted from highlest to lowest priority. | 
| ContactList | getAvailableContactsByGenusType(Id referenceId,
                               Type contactGenusType)Gets all current available contacts for a reference and by contact 
  genus   Type sorted from highest to lowest priority. | 
| void | useFederatedAddressBookView()Federates the view for methods in this session. | 
| void | useIsolatedAddressBookView()Isolates the view for methods in this session. | 
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getAddressBookId()
 AddressBook   Id  associated with 
  this session. AddressBook Id  associated with this sessionmandatory - This method must be implemented. AddressBook getAddressBook() throws OperationFailedException, PermissionDeniedException
 AddressBook  associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canGetContacts()
 
  PERMISSION_DENIED.  This is intended as a hint to an 
  application that may opt not to offer these operations. false  if contact lookup methods are not 
          authorized,  true  otherwisemandatory - This method must be implemented. void useFederatedAddressBookView()
mandatory - This method is must be implemented. void useIsolatedAddressBookView()
mandatory - This method is must be implemented. ContactList getAvailableContacts(Id referenceId) throws OperationFailedException, PermissionDeniedException
 Id  sorted from highlest to lowest priority.referenceId - the  Id  of the reference ContactList NullArgumentException -  referenceId  is 
           null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. ContactList getAvailableContactsByGenusType(Id referenceId, Type contactGenusType) throws OperationFailedException, PermissionDeniedException
 Type  sorted from highest to lowest priority.referenceId - the  Id  of the referencecontactGenusType - a contact genus  Type NullArgumentException -  referenceId  or 
           contactGenusType  is  null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.