Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.mail.web.converter
Class MailAddressConverter

java.lang.Object
  extended by org.nuxeo.ecm.platform.mail.web.converter.MailAddressConverter
All Implemented Interfaces:
javax.faces.convert.Converter

public class MailAddressConverter
extends java.lang.Object
implements javax.faces.convert.Converter

Simple mail address converter: most of the addresses imported from the POP3 or IMAP mailbox simply return the string "null ". To avoid a list of nulls this converter removes the "null" aliases and only keep the mail address. Also return a mailto: link to the sender.

Author:
Christophe Capon

Constructor Summary
MailAddressConverter()
           
 
Method Summary
 java.lang.Object getAsObject(javax.faces.context.FacesContext ctx, javax.faces.component.UIComponent uiComp, java.lang.String inStr)
           
 java.lang.String getAsString(javax.faces.context.FacesContext ctx, javax.faces.component.UIComponent uiComp, java.lang.Object inObj)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailAddressConverter

public MailAddressConverter()
Method Detail

getAsObject

public java.lang.Object getAsObject(javax.faces.context.FacesContext ctx,
                                    javax.faces.component.UIComponent uiComp,
                                    java.lang.String inStr)
Specified by:
getAsObject in interface javax.faces.convert.Converter

getAsString

public java.lang.String getAsString(javax.faces.context.FacesContext ctx,
                                    javax.faces.component.UIComponent uiComp,
                                    java.lang.Object inObj)
Specified by:
getAsString in interface javax.faces.convert.Converter

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.