|
||||||||||
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<info.magnolia.cms.core.Content> |
getAllUserNodes()
Deprecated. use getAllUserNodes(UserManager manager) instead |
protected static Collection<info.magnolia.cms.security.User> |
getAllUserNodes(info.magnolia.cms.security.UserManager manager)
|
protected static void |
getGroupMembersMails(info.magnolia.cms.security.UserManager manager,
StringBuffer ret,
String groupName)
|
static Object |
getParameter(Map<String,Object> param,
String name,
String defaultValue)
|
protected static String |
getUserMail(info.magnolia.cms.security.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(info.magnolia.cms.security.UserManager manager, StringBuffer ret, String groupName)
@Deprecated protected static Collection<info.magnolia.cms.core.Content> getAllUserNodes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected static Collection<info.magnolia.cms.security.User> getAllUserNodes(info.magnolia.cms.security.UserManager manager) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected static String getUserMail(info.magnolia.cms.security.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 |