| org.tigris.scarab.util.Email
Field Summary | |
public static Logger | log |
Method Summary | |
public static ScarabUser | getArchiveUser() | public static String | getCharset(Locale locale) Returns a charset for the given locale that is generally
preferred by email clients. | protected String | handleRequest() Override the super.handleRequest() and process the template
our own way.
This could have been handled in a more simple way, which was
to create a new service and associate the emails with a different
file extension which would have prevented the need to override
this method, however, that was discovered after the fact and it
also seemed to be a bit more work to change the file extension. | public static boolean | isArchiveUser(ScarabUser user) | public static void | sendEmail(EmailContext context, Module module, Object fromUser, Object replyToUser, ScarabUser toUser, String template) Sends email to a single recipient. | public static void | sendEmail(EmailContext context, Module module, Object fromUser, Object replyToUser, Collection toUsers, Collection ccUsers, String template) Sends email to multiple recipients. |
log | public static Logger log(Code) | | |
getArchiveUser | public static ScarabUser getArchiveUser() throws TorqueException(Code) | | returns the dummy user which indicates
that an Email should be sent to the archive Email addresses
|
getCharset | public static String getCharset(Locale locale)(Code) | | Returns a charset for the given locale that is generally
preferred by email clients. If not specified by the property
named by
org.tigris.scarab.util.ScarabConstants.DEFAULT_EMAIL_ENCODING_KEY ,
ask the MimeTypeService for a good value (except
for Japanese, which always uses the encoding
ISO-2022-JP ).
Parameters: locale - a Locale value a String value |
handleRequest | protected String handleRequest() throws ServiceException(Code) | | Override the super.handleRequest() and process the template
our own way.
This could have been handled in a more simple way, which was
to create a new service and associate the emails with a different
file extension which would have prevented the need to override
this method, however, that was discovered after the fact and it
also seemed to be a bit more work to change the file extension.
|
isArchiveUser | public static boolean isArchiveUser(ScarabUser user)(Code) | | Checks if a user is the dummy user which indicates
that an Email should be sent to the archive Email addresses
|
|
|