Java Doc for IContactFacade.java in  » Mail-Clients » columba-1.4 » org » columba » addressbook » facade » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Mail Clients » columba 1.4 » org.columba.addressbook.facade 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.columba.addressbook.facade.IContactFacade

All known Subclasses:   org.columba.addressbook.facade.ContactFacade,
IContactFacade
public interface IContactFacade (Code)
Provides high-level contact management methods. This Facade API is the only way to access functionality of this component.

In case the facade implementation doesn't support specific functionality, an java.lang.IllegalArgumentException should be thrown. Components making use of this facade, should try to handle missing method implementations gracefully, if possible.

Unchecked exceptions based on java.lang.RuntimeException are used only. A StoreException is thrown in case of an internal store backend error or failure a client usually can't resolve gracefully. A IllegalArgumentException is used in case the client didn't make use of the method correctly.

Following an example on how to register a new facade implementation:

 ServiceRegistry.register(MyFacadeImpl.class, IContactFacade)
 

author:
   fdietz




Method Summary
 voidaddContact(String id, IContactItem contactItem)
     Add new contact to contact folder with specified id.
 voidaddContact(IContactItem contactItem)
     Add new contact to a contact folder.
 voidaddContacts(String id, IContactItem[] contactItem)
     Add an array of contacts to the contact folder with specified id.
 voidaddContacts(IContactItem[] contactItems)
     Add an array of contacts to a contact folder.
public  StringfindByEmailAddress(String folderId, String emailAddress)
     Find a contact by email address in specified contact folder.
public  StringfindByName(String folderId, String name)
     Find a contact by name in specified contact folder.

First tries to find a vCard "SORT_AS", then vCard "LASTNAME" and last vCard "FIRSTNAME", until a match is found.

public  List<IContactItem>getAllContacts(String folderId)
     Retrieve all IContactItem instances from a contact folder with selected unique id.
public  List<IGroupItem>getAllGroups(String folderId)
     Retrieve all IGroupItem instances from a contact folder with selected unique id.
public  List<IHeaderItem>getAllHeaderItems(String folderId, boolean flattenGroupItems)
     Retrieve all IHeaderItem instances from contact folder with selected unique id.
Parameters:
  folderId - contact folder unique id
Parameters:
  flattenGroupItems - If true, convert IGroupItem toList.
public  IContactItemgetContactItem(String folderId, String contactId)
     Retrieve contact item with given id from specified contact folder.



Method Detail
addContact
void addContact(String id, IContactItem contactItem) throws StoreException, IllegalArgumentException(Code)
Add new contact to contact folder with specified id.
Parameters:
  id - contact folder unique id
Parameters:
  contactItem - The IContactItem to add to the specified folder
throws:
  StoreException - in case of an internal storage backend failure
throws:
  IllegalArgumentException - in case of invalid arguments, in case this method is notsupported by a facade implementation



addContact
void addContact(IContactItem contactItem) throws StoreException, IllegalArgumentException(Code)
Add new contact to a contact folder. Implementation should prompt user for a destination contact folder.
Parameters:
  contactItem - The IContactItem to add to the specified folder
throws:
  StoreException - in case of an internal storage backend failure
throws:
  IllegalArgumentException - in case of invalid arguments, in case this method is notsupported by a facade implementation



addContacts
void addContacts(String id, IContactItem[] contactItem) throws StoreException, IllegalArgumentException(Code)
Add an array of contacts to the contact folder with specified id.
Parameters:
  id - contact folder unique id
Parameters:
  contactItems - Array of IContactItemS to add to the specified folder
throws:
  StoreException - in case of an internal storage backend failure
throws:
  IllegalArgumentException - in case of invalid arguments, in case this method is notsupported by a facade implementation



addContacts
void addContacts(IContactItem[] contactItems) throws StoreException, IllegalArgumentException(Code)
Add an array of contacts to a contact folder. Implementation should prompt user for a destination contact folder.
Parameters:
  contactItems - Array of IContactItemS to add to the specified folder
throws:
  StoreException - in case of an internal storage backend failure
throws:
  IllegalArgumentException - in case of invalid arguments, in case this method is notsupported by a facade implementation



findByEmailAddress
public String findByEmailAddress(String folderId, String emailAddress) throws StoreException, IllegalArgumentException(Code)
Find a contact by email address in specified contact folder.
Parameters:
  folderId - contact folder unique id
Parameters:
  emailAddress - email address to search for contact id, in case a matching contact was found.nullotherwise.
throws:
  StoreException - in case of an internal storage backend failure
throws:
  IllegalArgumentException - in case of invalid arguments, in case this method is notsupported by a facade implementation



findByName
public String findByName(String folderId, String name) throws StoreException, IllegalArgumentException(Code)
Find a contact by name in specified contact folder.

First tries to find a vCard "SORT_AS", then vCard "LASTNAME" and last vCard "FIRSTNAME", until a match is found. If several contacts match the first one is used and all other results are ignored.
Parameters:
  folderId - contact folder unique id
Parameters:
  name - name to search for contact id, in case a matching contact was found.nullotherwise.
throws:
  StoreException - in case of an internal storage backend failure
throws:
  IllegalArgumentException - in case of invalid arguments, in case this method is notsupported by a facade implementation




getAllContacts
public List<IContactItem> getAllContacts(String folderId) throws StoreException, IllegalArgumentException(Code)
Retrieve all IContactItem instances from a contact folder with selected unique id.
Parameters:
  folderId - contact folder unique id list of IContactItem instances, nevernull
throws:
  StoreException - in case of an internal storage backend failure
throws:
  IllegalArgumentException - in case of invalid arguments, in case this method is notsupported by a facade implementation



getAllGroups
public List<IGroupItem> getAllGroups(String folderId) throws StoreException, IllegalArgumentException(Code)
Retrieve all IGroupItem instances from a contact folder with selected unique id.
Parameters:
  folderId - contact folder unique id list of IGroupItem instances, nevernull
throws:
  StoreException - in case of an internal storage backend failure
throws:
  IllegalArgumentException - in case of invalid arguments, in case this method is notsupported by a facade implementation



getAllHeaderItems
public List<IHeaderItem> getAllHeaderItems(String folderId, boolean flattenGroupItems) throws StoreException, IllegalArgumentException(Code)
Retrieve all IHeaderItem instances from contact folder with selected unique id.
Parameters:
  folderId - contact folder unique id
Parameters:
  flattenGroupItems - If true, convert IGroupItem toList. The result will be a listcontaining only IContactItem instances.Otherwise, the list will contain IContactItemand IGroupItem instances. list of IHeaderItem instances, nevernull
throws:
  StoreException - in case of an internal storage backend failure
throws:
  IllegalArgumentException - in case of invalid arguments, in case this method is notsupported by a facade implementation



getContactItem
public IContactItem getContactItem(String folderId, String contactId) throws StoreException, IllegalArgumentException(Code)
Retrieve contact item with given id from specified contact folder.
Parameters:
  folderId - unique contact folder id
Parameters:
  contactId - unique contact id contact item instance if available, nullotherwise.
throws:
  StoreException - in case of an internal storage backend failure
throws:
  IllegalArgumentException - in case of invalid arguments, in case this method is notsupported by the facade implementation



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.