public abstract class SignupEmailBase extends Object implements SignupEmailNotification, 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 boolean |
cancellation
Indicates whether the email represents a cancellation - to be overwritten by subclasses
|
protected SignupMeeting |
meeting |
protected boolean |
modifyComment |
static String |
newline |
protected static ResourceLoader |
rb |
static String |
space |
ANNOUNCEMENT, BIWEEKLY, CUSTOM_TIMESLOTS, DAILY, GROUP, INDIVIDUAL, ONCE_ONLY, WEEKDAYS, WEEKLY| Constructor and Description |
|---|
SignupEmailBase() |
| Modifier and Type | Method and Description |
|---|---|
protected List<net.fortuna.ical4j.model.component.VEvent> |
eventsWhichUserIsAttending(User user) |
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(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 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.
|
boolean |
isCancellation() |
boolean |
isModifyComment() |
protected String |
makeFirstCapLetter(String st)
Make first letter of the string to Capital letter
|
void |
setModifyComment(boolean modifyComment) |
protected boolean |
userIsAttendingTimeslot(User user,
SignupTimeslot timeslot) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateEvents, getMeetingprotected SignupMeeting meeting
protected static ResourceLoader rb
public static final String newline
public static final String space
protected boolean cancellation
protected boolean modifyComment
public abstract List<String> getHeader()
getHeader in interface SignupEmailNotificationpublic abstract String getMessage()
getMessage in interface SignupEmailNotificationpublic abstract String getFromAddress()
getFromAddress in interface SignupEmailNotificationpublic abstract String getSubject()
getSubject in interface SignupEmailNotificationprotected String getSiteId()
protected String getSiteTitle()
protected String getSiteTitleWithQuote()
protected String getSiteAccessUrl()
protected String getAbbreviatedMeetingTitle()
protected Time getTime(Date date)
date - a Java Date object.protected String makeFirstCapLetter(String st)
st - a string valueprotected String getServiceName()
protected String getRepeatTypeMessage(SignupMeeting meeting)
protected String getServerFromAddress()
protected boolean userIsAttendingTimeslot(User user, SignupTimeslot timeslot)
protected List<net.fortuna.ical4j.model.component.VEvent> eventsWhichUserIsAttending(User user)
public boolean isCancellation()
isCancellation in interface SignupEmailNotificationpublic boolean isModifyComment()
isModifyComment in interface SignupEmailNotificationpublic void setModifyComment(boolean modifyComment)
Copyright © 2007–2017 Sakai Project. All rights reserved.