|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.mail.util.MailUtil
public class MailUtil
Provides static utility methods to work with emails in Magnolia.
Field Summary | |
---|---|
static org.slf4j.Logger |
log
|
Constructor Summary | |
---|---|
MailUtil()
|
Method Summary | |
---|---|
static java.lang.String |
convertEmailList(java.lang.String mailTo)
convert email address mapping . |
static java.util.Map<java.lang.String,java.lang.String> |
convertToMap(java.lang.String parameters)
Transforms a string name=value\r\nname=value.. |
static java.util.List<MailAttachment> |
createAttachmentList()
Creates a list with the documents uploaded in the form. |
static java.util.List<MailAttachment> |
createAttachmentList(java.util.Map parameters)
|
protected static java.util.Collection<Content> |
getAllUserNodes()
TODO use UserManager. |
protected static void |
getGroupMembersMails(UserManager manager,
java.lang.StringBuffer ret,
java.lang.String groupName)
|
static java.lang.Object |
getParameter(java.util.Map<java.lang.String,java.lang.Object> param,
java.lang.String name,
java.lang.String defaultValue)
|
protected static java.lang.String |
getUserMail(User user)
|
static void |
logMail(java.util.Map params,
java.lang.String loggerName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.slf4j.Logger log
Constructor Detail |
---|
public MailUtil()
Method Detail |
---|
public static java.util.Map<java.lang.String,java.lang.String> convertToMap(java.lang.String parameters) throws java.io.IOException
java.io.IOException
public static java.util.List<MailAttachment> createAttachmentList()
public static java.util.List<MailAttachment> createAttachmentList(java.util.Map parameters)
public static java.lang.String convertEmailList(java.lang.String mailTo)
user-
will be replace by the email address of the user as stored in the user repository
group-
will
protected static void getGroupMembersMails(UserManager manager, java.lang.StringBuffer ret, java.lang.String groupName)
protected static java.util.Collection<Content> getAllUserNodes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected static java.lang.String getUserMail(User user)
public static java.lang.Object getParameter(java.util.Map<java.lang.String,java.lang.Object> param, java.lang.String name, java.lang.String defaultValue)
public static void logMail(java.util.Map params, java.lang.String loggerName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |