|
||||||||||
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 String |
convertEmailList(String mailTo)
convert email address mapping . |
static Map<String,String> |
convertToMap(String parameters)
Transforms a string name=value\r\nname=value.. |
static List<MailAttachment> |
createAttachmentList()
Creates a list with the documents uploaded in the form. |
static List<MailAttachment> |
createAttachmentList(Map parameters)
|
protected static Collection<Content> |
getAllUserNodes()
Deprecated. use getAllUserNodes(UserManager manager) instead |
protected static Collection<User> |
getAllUserNodes(UserManager manager)
|
protected static void |
getGroupMembersMails(UserManager manager,
StringBuffer ret,
String groupName)
|
static Object |
getParameter(Map<String,Object> param,
String name,
String defaultValue)
|
protected static String |
getUserMail(User user)
|
static void |
logMail(Map params,
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 Map<String,String> convertToMap(String parameters) throws IOException
IOException
public static List<MailAttachment> createAttachmentList()
public static List<MailAttachment> createAttachmentList(Map parameters)
public static String convertEmailList(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, StringBuffer ret, String groupName)
protected static Collection<User> getAllUserNodes(UserManager manager) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Deprecated protected static Collection<Content> getAllUserNodes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected static String getUserMail(User user)
public static Object getParameter(Map<String,Object> param, String name, String defaultValue)
public static void logMail(Map params, String loggerName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |