Java Doc for ContactManagementPlugin.java in  » Web-Mail » Jwma » dtw » webmail » plugin » 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 » Web Mail » Jwma » dtw.webmail.plugin 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


dtw.webmail.plugin.ContactManagementPlugin

All known Subclasses:   dtw.webmail.plugin.std.CastorSQLContactManagement,  dtw.webmail.plugin.std.CastorXMLContactManagement,
ContactManagementPlugin
public interface ContactManagementPlugin extends JwmaPlugin(Code)
Interface for a plugin that manages user contact databases.


author:
   Dieter Wimberger
version:
   0.9.7 07/02/2003



Field Summary
final public static  intCONTACT_EXPORT
    
final public static  intCONTACT_IMPORT
    
final public static  intDATABASE_EXPORT
    
final public static  intDATABASE_IMPORT
    


Method Summary
public  JwmaContactsImplcreateContacts()
     Creates a new contact databse instance.
public  StringexportContact(JwmaContact contact, String TYPE)
     Exports a contact in the given type.
Parameters:
  contact - the JwmaContact to be exported.
Parameters:
  TYPE - the type of the export.
public  voidexportDatabase(OutputStream out, JwmaContacts db, String TYPE)
     Exports the given contact database in the given type.
public  String[]getSupportedTypes(int IMEX_TYPE)
     Returns a list of types for the given import/export method.
public  JwmaContactimportContact(InputStream in, String TYPE)
     Imports a contact of the given type.
Parameters:
  in - source for importing the contact in the given type.
Parameters:
  TYPE - the type of the import source.
public  JwmaContact[]importDatabase(InputStream in, String Type)
     Imports a database of contacts of the given type.
Parameters:
  in - source for importing the contacts in the given type.
Parameters:
  TYPE - the type of the import source.
public  booleanisPersistent(String cuid)
     Tests if a given contact database exists on the store.
public  booleanisSupportedContactImportType(String type)
     Tests if the given contact type can be imported.
public  JwmaContactsImplloadContacts(String cuid)
     Loads the given contacts database from the persistent store and returns them as a JwmaContactsImpl instance.

If contacts database with the given identity does not exist on the store, the method returns null.
Parameters:
  cuid - a String representing a uniqueidentifier for a contact database.

public  voidsaveContacts(JwmaContactsImpl contacts)
     Saves the given contacts database to the persistent store.

Field Detail
CONTACT_EXPORT
final public static int CONTACT_EXPORT(Code)



CONTACT_IMPORT
final public static int CONTACT_IMPORT(Code)



DATABASE_EXPORT
final public static int DATABASE_EXPORT(Code)



DATABASE_IMPORT
final public static int DATABASE_IMPORT(Code)





Method Detail
createContacts
public JwmaContactsImpl createContacts()(Code)
Creates a new contact databse instance. the JwmaContactsImpl instance.
See Also:   dtw.webmail.model.JwmaContactsImpl



exportContact
public String exportContact(JwmaContact contact, String TYPE) throws JwmaException(Code)
Exports a contact in the given type.
Parameters:
  contact - the JwmaContact to be exported.
Parameters:
  TYPE - the type of the export. the exported contact as String.
See Also:   ContactManagementPlugin.getSupportedTypes(int IMEX_TYPE)
See Also:   ContactManagementPlugin.CONTACT_EXPORT



exportDatabase
public void exportDatabase(OutputStream out, JwmaContacts db, String TYPE) throws JwmaException(Code)
Exports the given contact database in the given type.
Parameters:
  the - OutputStream to export to.
Parameters:
  db - the JwmaContacts database to be exported.
Parameters:
  TYPE - the type of the export.
See Also:   ContactManagementPlugin.getSupportedTypes(int IMEX_TYPE)
See Also:   ContactManagementPlugin.DATABASE_EXPORT



getSupportedTypes
public String[] getSupportedTypes(int IMEX_TYPE)(Code)
Returns a list of types for the given import/export method. The types from this array can be passed as parameters to the respective import/export method. an array of String's representing types.



importContact
public JwmaContact importContact(InputStream in, String TYPE) throws JwmaException(Code)
Imports a contact of the given type.
Parameters:
  in - source for importing the contact in the given type.
Parameters:
  TYPE - the type of the import source. the imported contact as JwmaContact.
See Also:   ContactManagementPlugin.getSupportedTypes(int IMEX_TYPE)
See Also:   ContactManagementPlugin.CONTACT_IMPORT



importDatabase
public JwmaContact[] importDatabase(InputStream in, String Type) throws JwmaException(Code)
Imports a database of contacts of the given type.
Parameters:
  in - source for importing the contacts in the given type.
Parameters:
  TYPE - the type of the import source. the imported contacts as JwmaContact[].
See Also:   ContactManagementPlugin.getSupportedTypes(int IMEX_TYPE)
See Also:   ContactManagementPlugin.DATABASE_IMPORT



isPersistent
public boolean isPersistent(String cuid) throws JwmaException(Code)
Tests if a given contact database exists on the store.
Parameters:
  cuid - a String representing a uniqueidentifier for a contact database.
throws:
  JwmaException - if an I/O error occurs.
See Also:   dtw.webmail.model.JwmaContactsImpl
See Also:   dtw.webmail.model.JwmaPreferencesImpl.getContactDatabaseID



isSupportedContactImportType
public boolean isSupportedContactImportType(String type)(Code)
Tests if the given contact type can be imported. true if supported, false otherwise.



loadContacts
public JwmaContactsImpl loadContacts(String cuid) throws JwmaException(Code)
Loads the given contacts database from the persistent store and returns them as a JwmaContactsImpl instance.

If contacts database with the given identity does not exist on the store, the method returns null.
Parameters:
  cuid - a String representing a uniqueidentifier for a contact database. the JwmaContactsImpl instance.
throws:
  JwmaException - if an I/O error occurs.
See Also:   dtw.webmail.model.JwmaContactsImpl
See Also:   dtw.webmail.model.JwmaPreferencesImpl.getContactDatabaseID




saveContacts
public void saveContacts(JwmaContactsImpl contacts) throws JwmaException(Code)
Saves the given contacts database to the persistent store.

If the contacts database does not exist on the store, the method should create it, otherwise update the existing version.
The unique identity is retrieved using the getUID() method of the given JwmaContactsImpl instance.
Parameters:
  contacts - the JwmaContactsImpl instance tosaved.
throws:
  JwmaException - if an I/O error occurs.
See Also:   dtw.webmail.model.JwmaContactsImpl
See Also:   dtw.webmail.model.JwmaContactsImpl.getUID




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