Nuxeo ECM Projects 5.4.3-SNAPSHOT

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:
Converter

public class MailAddressConverter
extends Object
implements 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
 Object getAsObject(FacesContext ctx, UIComponent uiComp, String inStr)
           
 String getAsString(FacesContext ctx, UIComponent uiComp, 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 Object getAsObject(FacesContext ctx,
                          UIComponent uiComp,
                          String inStr)
Specified by:
getAsObject in interface Converter

getAsString

public String getAsString(FacesContext ctx,
                          UIComponent uiComp,
                          Object inObj)
Specified by:
getAsString in interface Converter

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.