Java Doc for MailServer.java in  » Groupware » ivatagroupware » com » ivata » groupware » business » mail » server » 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 » Groupware » ivatagroupware » com.ivata.groupware.business.mail.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ivata.groupware.business.mail.server.MailServer

All known Subclasses:   com.ivata.groupware.business.mail.server.HMailServer,  com.ivata.groupware.business.mail.server.ScriptMailServer,  com.ivata.groupware.business.mail.server.JavaMailServer,
MailServer
public interface MailServer extends SecurityServer(Code)

Extends the standard security server to add mail-specific features.


author:
   Colin MacLeod
author:
   colin.macleod@ivata.com




Method Summary
public  StoreconnectStore(MailSession mailSession)
    

Helper.

public  FoldergetFolder(SecuritySession securitySession, Store store, String name)
     Wrapper for Store.getFolder to get around the fact that courier/cyrus imap prefixes all "personal namespace" folder names with "INBOX".
Parameters:
  securitySession - used to access the settings.
Parameters:
  store - valid, connected store.
Parameters:
  name - name of the folder you want to open.
 ListgetUserAliases(SecuritySession securitySession, String userName)
    

Gets all of the email aliases for the user provided.

This method calls the script getUserAliases.


Parameters:
  userName - the user for whom to get the email aliases.
 StringgetUserForwarding(SecuritySession securitySession, String userName)
    

Get the email addresss this user's mail is forwarded to.

This method calls the script getUserForwarding.


Parameters:
  userName - the user for whom to activate/deactive emailforwarding.
 StringgetVacationMessage(SecuritySession securitySession, String userName)
    

Gets the current vacation method for the user provided.

 booleanhasNewMessages(SecuritySession securitySession, String userName, String folderName)
    

Get the time the specified mail folder was last modified as a long.

 voidremoveList(SecuritySession securitySession, String name)
    
 voidsetList(SecuritySession securitySession, String name, Collection users)
    
 voidsetUserAliases(SecuritySession securitySession, String userName, Collection aliases)
    
 voidsetUserForwarding(SecuritySession securitySession, String userName, String address)
    

Set an email addresss to forward this user's mail to.

 voidsetVacationMessage(SecuritySession securitySession, String userName, String message)
    

Sets the vacation method for the user provided.




Method Detail
connectStore
public Store connectStore(MailSession mailSession) throws SystemException(Code)

Helper. Get the store from the mail session and connect it.




getFolder
public Folder getFolder(SecuritySession securitySession, Store store, String name) throws SystemException(Code)
Wrapper for Store.getFolder to get around the fact that courier/cyrus imap prefixes all "personal namespace" folder names with "INBOX".
Parameters:
  securitySession - used to access the settings.
Parameters:
  store - valid, connected store.
Parameters:
  name - name of the folder you want to open. folder for the name you passed.
throws:
  SystemException - if the settings cannot be accessed, or there isany exception accessing the store.



getUserAliases
List getUserAliases(SecuritySession securitySession, String userName) throws SystemException(Code)

Gets all of the email aliases for the user provided.

This method calls the script getUserAliases.


Parameters:
  userName - the user for whom to get the email aliases. a java.util.Collection containingString values for each of the aliases.
throws:
  BusinessException - containing the content of the standarderror stream, if the script returns non-zero.



getUserForwarding
String getUserForwarding(SecuritySession securitySession, String userName) throws SystemException(Code)

Get the email addresss this user's mail is forwarded to.

This method calls the script getUserForwarding.


Parameters:
  userName - the user for whom to activate/deactive emailforwarding. email address all email for this user is forwarded to, ornull if there is no forwarding for this user.
throws:
  BusinessException - containing the content of the standarderror stream, if the script returns non-zero.



getVacationMessage
String getVacationMessage(SecuritySession securitySession, String userName) throws SystemException(Code)

Gets the current vacation method for the user provided.

This method calls the script getVacationMessage.


Parameters:
  userName - the user for whom to set the vacation message. the current vacation message for this user, ornull ifthe user does not have a vacation message.
throws:
  BusinessException - containing the content of the standarderror stream, if the script returns non-zero.



hasNewMessages
boolean hasNewMessages(SecuritySession securitySession, String userName, String folderName) throws SystemException(Code)

Get the time the specified mail folder was last modified as a long. This can then be saved and compared to subsequent calls of this method to see if the folder has changed.


Parameters:
  userName - the name of the user for whom to locate the folder.
Parameters:
  folderName - the name of the folder to locate. operating system specific timestamp indicating when thefolder was last changed.
throws:
  BusinessException - if the folder doesn't exists or thereis an application problem retrieving the modified time.



removeList
void removeList(SecuritySession securitySession, String name) throws SystemException(Code)

Removes an existing mailing list from the system.

The removeList script is called with name as its only parameter.


Parameters:
  name - the name of the list to remove.
throws:
  BusinessException - containing the content of the standarderror stream, if the script returns non-zero.



setList
void setList(SecuritySession securitySession, String name, Collection users) throws SystemException(Code)

Adds or amends a mailing list with the name and users provided.

This method calls the setList script with the name as the first parameter and the user names of each of the users as following parameters.


Parameters:
  name - the name of the list to be added.
Parameters:
  users - java.util.Collection containingUserLocal instances of each of the users in the list.Note that if you are changing an existing list, this array shouldcontain all of the users, not just the new ones.
throws:
  BusinessException - containing the content of the standarderror stream, if the script returns non-zero.



setUserAliases
void setUserAliases(SecuritySession securitySession, String userName, Collection aliases) throws SystemException(Code)

Gets all of the email aliases for the user provided.

This method calls the script setUserAliases.


Parameters:
  userName - the user for whom to get the email aliases.
Parameters:
  aliases - a java.util.Collection containingString values for each of the aliases.
throws:
  BusinessException - containing the content of the standarderror stream, if the script returns non-zero.



setUserForwarding
void setUserForwarding(SecuritySession securitySession, String userName, String address) throws SystemException(Code)

Set an email addresss to forward this user's mail to. If address is set to null then any previous email forwarding is removed.
Parameters:
  userName - the user for whom to activate/deactive emailforwarding.
Parameters:
  address - email address to forward all email for this user to.If thisaddress is set to null then any previous forwarding isremoved.
throws:
  BusinessException - containing the content of the standarderrorstream, if the script returns non-zero.




setVacationMessage
void setVacationMessage(SecuritySession securitySession, String userName, String message) throws SystemException(Code)

Sets the vacation method for the user provided. This message will be sent to all mails received at this address until it has been cleared, by calling this method again with a null value for the message parameter.

This method calls the setVacationMessage script with user name and message as parameters. If the message parameter is null, then the script is called with just the user name parameter.


Parameters:
  userName - the user for whom to set the vacation message.
Parameters:
  message - the new vacation message for this user. Set tonull to remove any existing vacation message.
throws:
  BusinessException - containing the content of the standarderror stream, if the script returns non-zero.



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