Source Code Cross Referenced for I_CmsNewsletterMailData.java in  » Content-Management-System » opencms » com » alkacon » opencms » newsletter » 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 » Content Management System » opencms » com.alkacon.opencms.newsletter 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * File   : $Source: /usr/local/cvs/alkacon/com.alkacon.opencms.newsletter/src/com/alkacon/opencms/newsletter/I_CmsNewsletterMailData.java,v $
003:         * Date   : $Date: 2007-11-30 11:57:27 $
004:         * Version: $Revision: 1.6 $
005:         *
006:         * This file is part of the Alkacon OpenCms Add-On Module Package
007:         *
008:         * Copyright (c) 2007 Alkacon Software GmbH (http://www.alkacon.com)
009:         *
010:         * The Alkacon OpenCms Add-On Module Package is free software: 
011:         * you can redistribute it and/or modify
012:         * it under the terms of the GNU General Public License as published by
013:         * the Free Software Foundation, either version 3 of the License, or
014:         * (at your option) any later version.
015:         * 
016:         * The Alkacon OpenCms Add-On Module Package is distributed 
017:         * in the hope that it will be useful,
018:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
019:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
020:         * GNU General Public License for more details.
021:         * 
022:         * You should have received a copy of the GNU General Public License
023:         * along with the Alkacon OpenCms Add-On Module Package.  
024:         * If not, see http://www.gnu.org/licenses/.
025:         *
026:         * For further information about Alkacon Software GmbH, please see the
027:         * company website: http://www.alkacon.com.
028:         *
029:         * For further information about OpenCms, please see the
030:         * project website: http://www.opencms.org.
031:         */
032:
033:        package com.alkacon.opencms.newsletter;
034:
035:        import org.opencms.file.CmsGroup;
036:        import org.opencms.jsp.CmsJspActionElement;
037:        import org.opencms.main.CmsException;
038:        import org.opencms.xml.content.CmsXmlContent;
039:
040:        import java.util.List;
041:
042:        import org.apache.commons.mail.Email;
043:
044:        /**
045:         * Provides methods to generate newsletter emails and the list of recipients in different ways,
046:         * e.g. using a different structured content.<p>
047:         * 
048:         * @author Andreas Zahner
049:         * 
050:         * @version $Revision: 1.6 $ 
051:         * 
052:         * @since 7.0.3 
053:         */
054:        public interface I_CmsNewsletterMailData {
055:
056:            /**
057:             * Returns the newsletter xml content.<p>
058:             * 
059:             * @return the newsletter xml content
060:             */
061:            CmsXmlContent getContent();
062:
063:            /**
064:             * Returns the mail to send as newsletter, with set subject, text and from address.<p>
065:             * 
066:             * @return the mail to send as newsletter
067:             * @throws CmsException if generating the email content fails
068:             */
069:            Email getEmail() throws CmsException;
070:
071:            /**
072:             * Returns the email content to be shown in a preview, generates a valid html page that can be used.<p>
073:             * 
074:             * @return the email content to be shown in a preview as html page
075:             * @throws CmsException if generating the email preview fails
076:             */
077:            String getEmailContentPreview() throws CmsException;
078:
079:            /**
080:             * Returns the recipients of the newsletter mail, items are of type {@link javax.mail.internet.InternetAddress}.<p>
081:             * 
082:             * @return the recipients of the newsletter mail
083:             * @throws CmsException if getting the recipients from a mailing list group fails
084:             */
085:            List getRecipients() throws CmsException;
086:
087:            /**
088:             * Returns the resource type name of the newsletter XML content to use.<p>
089:             * 
090:             * @return the resource type name of the newsletter XML content to use
091:             */
092:            String getResourceTypeName();
093:
094:            /**
095:             * Initializes the necessary members to generate the email and the list of recipients.<p>
096:             * 
097:             * @param jsp the current action element
098:             * @param group the mailing list group to send the newsletter to
099:             * @param fileName the fileName of a VFS file that can be used to generate the newsletter
100:             * @throws CmsException if reading the VFS file fails
101:             */
102:            void initialize(CmsJspActionElement jsp, CmsGroup group,
103:                    String fileName) throws CmsException;
104:
105:            /**
106:             * Checks if the newsletter can be sent or not.<p>
107:             * 
108:             * This method can also write some data like the timestamp when the newsletter has been sent
109:             * or the mailing list which received it to e.g. VFS properties.<p>
110:             * 
111:             * @return true if newsletter can be sent to subscribers, otherwise false
112:             * @throws CmsException if something goes wrong
113:             */
114:            boolean isSendable() throws CmsException;
115:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.