public abstract class SignupEmailBase extends Object implements org.sakaiproject.signup.logic.messages.SignupEmailNotification, org.sakaiproject.signup.model.MeetingTypes
This is a abstract base class for Signup Email. It provides some must-have or common used methods like getFooter()
| Modifier and Type | Field and Description |
|---|---|
protected org.sakaiproject.signup.model.SignupMeeting |
meeting |
static String |
newline |
protected static org.sakaiproject.util.ResourceLoader |
rb |
static String |
space |
| Constructor and Description |
|---|
SignupEmailBase() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAbbreviatedMeetingTitle() |
protected String |
getFooter(String newline) |
protected String |
getFooter(String newline,
String targetSiteId) |
abstract String |
getFromAddress()
get the from address for this email
|
abstract List<String> |
getHeader()
get the email Header, which contains destination email address, subject
etc.
|
abstract String |
getMessage()
get the main message for this email
|
protected String |
getRepeatTypeMessage(org.sakaiproject.signup.model.SignupMeeting meeting) |
protected String |
getServerFromAddress() |
protected String |
getServiceName() |
protected String |
getShortSiteTitle(String targetSiteId) |
protected String |
getShortSiteTitleWithQuote(String targetSiteId) |
protected String |
getSiteAccessUrl() |
protected String |
getSiteAccessUrl(String targetSiteId) |
protected String |
getSiteId()
get current site Id
|
protected String |
getSiteTitle() |
protected String |
getSiteTitle(String targetSiteId) |
protected String |
getSiteTitleWithQuote() |
protected String |
getSiteTitleWithQuote(String targetSiteId) |
abstract String |
getSubject()
get the subject for this email
|
protected org.sakaiproject.time.api.Time |
getTime(Date date)
This will convert the Java date object to a Sakai's Time object, which
provides all the useful methods for output.
|
protected String |
makeFirstCapLetter(String st)
Make first letter of the string to Capital letter
|
protected org.sakaiproject.signup.model.SignupMeeting meeting
protected static org.sakaiproject.util.ResourceLoader rb
public static final String newline
public static final String space
public abstract List<String> getHeader()
getHeader in interface org.sakaiproject.signup.logic.messages.SignupEmailNotificationpublic abstract String getMessage()
getMessage in interface org.sakaiproject.signup.logic.messages.SignupEmailNotificationpublic abstract String getFromAddress()
getFromAddress in interface org.sakaiproject.signup.logic.messages.SignupEmailNotificationpublic abstract String getSubject()
getSubject in interface org.sakaiproject.signup.logic.messages.SignupEmailNotificationprotected String getSiteId()
protected String getSiteTitle()
protected String getSiteTitleWithQuote()
protected String getSiteAccessUrl()
protected String getAbbreviatedMeetingTitle()
protected org.sakaiproject.time.api.Time getTime(Date date)
date - a Java Date object.protected String makeFirstCapLetter(String st)
st - a string valueprotected String getServiceName()
protected String getRepeatTypeMessage(org.sakaiproject.signup.model.SignupMeeting meeting)
protected String getServerFromAddress()
Copyright © 2007-2014 Sakai Project. All Rights Reserved.