corelib.services.web.components.mailinglists
Class MailEditor

java.lang.Object
  extended by corelib.services.web.components.WebComponent
      extended by corelib.services.web.components.VisualComponent
          extended by corelib.services.web.components.mailinglists.MailEditor

public class MailEditor
extends VisualComponent

Uses this component for inject mail editor on your web pages. This component must be used with the mailing list module. It allow to make a group mail sending to a mailing list. A mail can be composed of:

To send an email you must specify a smtp configutaion in your application web.xml like that:

 
 <context-param>
     <param-name>SMTP_HOST</param-name>
     <param-value>smtp.yoursmtp.com</param-value>
 </context-param>
 </context-param>
     <context-param>
     <param-name>SMTP_PORT</param-name>
     <param-value>25</param-value>
 </context-param>
 <context-param>
     <param-name>SMTP_LOGIN</param-name>
     <param-value>yourlogin</param-value>
 </context-param>
     <context-param>
     <param-name>SMTP_PASSWORD</param-name>
     <param-value>yourpassword</param-value>
 </context-param>
 
 

Since:
0.4.0
Author:
Dominique Liard & Alexia Ramaļoli

Field Summary
 
Fields inherited from class corelib.services.web.components.VisualComponent
cssClass, cssStyle, toolTipText, visible
 
Fields inherited from class corelib.services.web.components.WebComponent
dataBindings, webPage, xmlNode
 
Constructor Summary
MailEditor()
           
 
Method Summary
 void component_preRepeaterDuplications(WebPageEvent event)
           
 void component_renderBegin(WebPageEvent webPageEvent)
           
 void component_renderEnd(WebPageEvent webPageEvent)
           
 java.lang.String getFromEMail()
          Get the sender email, this email that will be register like sender.
 java.lang.String getHrefProgressBarPage()
          Get the url page for progressing bar component.
 java.lang.String getMailingListName()
          Get the mailing list name, the mailing list who send all mails (receivers).
 java.lang.String getMessageBody()
          Get the email body, is in HTML format.
 java.lang.String getMessageSubject()
          Get the email subject.
 java.lang.String getOtherConfirmationEmails()
          Get the emails to send confirmation.
 void setFromEMail(java.lang.String fromEMail)
          Fixes the sender email.
 void setHrefProgressBarPage(java.lang.String hrefProgressBarPage)
          Fixes the url page for progressing bar component.
 void setMailingListName(java.lang.String mailingListName)
          Fixes the mailing list name for sending mails.
 void setMessageBody(java.lang.String messageBody)
          Fixes the email body, in HTML format.
 void setMessageSubject(java.lang.String messageSubject)
          Fixes the email subject.
 void setOtherConfirmationEmails(java.lang.String otherConfirmationEmails)
          Fixes the emails to send confirmation.
 
Methods inherited from class corelib.services.web.components.VisualComponent
component_postRender, component_preRender, component_renderChildren, component_renderJavascriptLocalisation, encodeAttributeValue, getCssClass, getCssStyle, getOnClickListener, getSharedAttributesHtmlEncoding, getToolTipText, isVisible, renderElement, setCssClass, setCssStyle, setOnClickListener, setToolTipText, setVisible
 
Methods inherited from class corelib.services.web.components.WebComponent
addBindingExpression, addChildComponent, component_init, component_load, getChildComponents, getDataBinding, getElementsByTagName, getId, getWebPage, getXmlNode, setId, setWebPage, setXmlNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailEditor

public MailEditor()
Method Detail

getMailingListName

public java.lang.String getMailingListName()
Get the mailing list name, the mailing list who send all mails (receivers).

Returns:
The mailing list.

setMailingListName

public void setMailingListName(java.lang.String mailingListName)
Fixes the mailing list name for sending mails.

Parameters:
mailingListName - String.

getFromEMail

public java.lang.String getFromEMail()
Get the sender email, this email that will be register like sender.

Returns:
The sender email.

setFromEMail

public void setFromEMail(java.lang.String fromEMail)
Fixes the sender email.

Parameters:
fromEMail - String.

getMessageSubject

public java.lang.String getMessageSubject()
Get the email subject.

Returns:
The email subject.

setMessageSubject

public void setMessageSubject(java.lang.String messageSubject)
Fixes the email subject.

Parameters:
messageSubject - String.

getMessageBody

public java.lang.String getMessageBody()
Get the email body, is in HTML format.

Returns:
The email body.

setMessageBody

public void setMessageBody(java.lang.String messageBody)
Fixes the email body, in HTML format.

Parameters:
messageBody - String.

getOtherConfirmationEmails

public java.lang.String getOtherConfirmationEmails()
Get the emails to send confirmation. At the beginning and end of sending mails, a mail is send to this emails with a rapport of errors. By default an email confirmation is send to the registred sender.

Returns:
The emails for confirmation.

setOtherConfirmationEmails

public void setOtherConfirmationEmails(java.lang.String otherConfirmationEmails)
Fixes the emails to send confirmation. At the beginning and end of sending mails, a mail is send to this emails with a rapport of errors. By default an email confirmation is send to the registred sender.

Parameters:
otherConfirmationEmails - String.

getHrefProgressBarPage

public java.lang.String getHrefProgressBarPage()
Get the url page for progressing bar component. This page will must contains a MailingSendingProgress component.

Returns:
The MailingSendingProgress component url.

setHrefProgressBarPage

public void setHrefProgressBarPage(java.lang.String hrefProgressBarPage)
Fixes the url page for progressing bar component. This page will must contains a MailingSendingProgress component.

Parameters:
hrefProgressBarPage - String.

component_preRepeaterDuplications

public void component_preRepeaterDuplications(WebPageEvent event)
Overrides:
component_preRepeaterDuplications in class WebComponent

component_renderBegin

public void component_renderBegin(WebPageEvent webPageEvent)
Overrides:
component_renderBegin in class VisualComponent

component_renderEnd

public void component_renderEnd(WebPageEvent webPageEvent)
Overrides:
component_renderEnd in class VisualComponent


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.