Documentation
¶
Index ¶
- Constants
- type Admin
- func (c Admin) ChangeRole(user models.User) revel.Result
- func (c Admin) ChangeUserData(user models.User) revel.Result
- func (c Admin) Dashboard() revel.Result
- func (c Admin) DeleteCategory(ID int, table string) revel.Result
- func (c Admin) DeleteGroup(ID int) revel.Result
- func (c Admin) DeleteHelpPageEntry(ID int, table string) revel.Result
- func (c Admin) Index() revel.Result
- func (c Admin) InsertCategory(category models.Category, table string) revel.Result
- func (c Admin) InsertGroup(group models.Group) revel.Result
- func (c Admin) InsertHelpPageEntry(entry models.HelpPageEntry) revel.Result
- func (c Admin) InsertLogEntries() revel.Result
- func (c Admin) LogEntries() revel.Result
- func (c Admin) Roles() revel.Result
- func (c Admin) SearchUser(value string, searchInactive bool) revel.Result
- func (c Admin) SolveLogEntry(entry models.LogEntry) revel.Result
- func (c Admin) UpdateCategory(category models.Category, table string) revel.Result
- func (c Admin) UpdateGroup(group models.Group) revel.Result
- func (c Admin) UpdateHelpPageEntry(entry models.HelpPageEntry) revel.Result
- func (c Admin) Users(ID int) revel.Result
- type App
- type Course
- func (c Course) Allowlist(ID int) revel.Result
- func (c Course) Blocklist(ID int) revel.Result
- func (c Course) CalendarEvent(ID, courseID, shift int, monday string, day int) revel.Result
- func (c Course) CalendarEvents(ID int) revel.Result
- func (c Course) EditorInstructorList(ID int) revel.Result
- func (c Course) Events(ID int) revel.Result
- func (c Course) Meetings(ID int) revel.Result
- func (c Course) Open(ID int) revel.Result
- func (c Course) Path(ID int) revel.Result
- func (c Course) Restrictions(ID int) revel.Result
- func (c Course) Search(value string) revel.Result
- type Creator
- func (c Creator) Activate(ID int) revel.Result
- func (c Creator) Delete(ID int) revel.Result
- func (c Creator) Duplicate(ID int, title string) revel.Result
- func (c Creator) Expire(ID int) revel.Result
- func (c Creator) New(param models.NewCourseParam, file []byte) revel.Result
- func (c Creator) Search(value string) revel.Result
- type Edit
- func (c Edit) ChangeBool(ID int, listType string, option bool) revel.Result
- func (c Edit) ChangeEnrollLimit(ID int, fieldID string, value int) revel.Result
- func (c Edit) ChangeGroup(ID, parentID int, conf models.EditEMailConfig) revel.Result
- func (c Edit) ChangeRestriction(ID int, restriction models.Restriction) revel.Result
- func (c Edit) ChangeText(ID int, fieldID, value string, conf models.EditEMailConfig) revel.Result
- func (c Edit) ChangeTimestamp(ID int, fieldID, date, time string, conf models.EditEMailConfig) revel.Result
- func (c Edit) ChangeUserList(ID, userID int, listType string) revel.Result
- func (c Edit) ChangeViewMatrNr(ID, userID int, listType string, option bool) revel.Result
- func (c Edit) DeleteFromUserList(ID, userID int, listType string) revel.Result
- func (c Edit) DeleteRestriction(ID, restrictionID int) revel.Result
- func (c Edit) Download(ID int, filename string) revel.Result
- func (c Edit) NewEvent(ID int, value, eventType string, conf models.EditEMailConfig) revel.Result
- func (c Edit) Open(ID int) revel.Result
- func (c Edit) SearchUser(ID int, value, listType string, searchInactive bool) revel.Result
- func (c Edit) Validate(ID int) revel.Result
- type EditCalendarEvent
- func (c EditCalendarEvent) ChangeException(ID, courseID int, exception models.Exception) revel.Result
- func (c EditCalendarEvent) ChangeText(ID int, fieldID, value string) revel.Result
- func (c EditCalendarEvent) Delete(ID, courseID int) revel.Result
- func (c EditCalendarEvent) DeleteDayTemplate(ID, courseID int) revel.Result
- func (c EditCalendarEvent) DeleteException(ID, courseID int) revel.Result
- func (c EditCalendarEvent) Duplicate(ID, courseID int) revel.Result
- func (c EditCalendarEvent) EditDayTemplate(ID, courseID int, tmpl models.DayTmpl) revel.Result
- func (c EditCalendarEvent) NewDayTemplate(ID, courseID int, tmpl models.DayTmpl) revel.Result
- type EditEvent
- func (c EditEvent) ChangeBool(ID int, listType string, option bool) revel.Result
- func (c EditEvent) ChangeCapacity(ID int, fieldID string, value int) revel.Result
- func (c EditEvent) ChangeEnrollmentKey(ID int, key1, key2, fieldID string) revel.Result
- func (c EditEvent) ChangeText(ID int, fieldID, value string, conf models.EditEMailConfig) revel.Result
- func (c EditEvent) Delete(ID, courseID int) revel.Result
- func (c EditEvent) DeleteEnrollmentKey(ID int) revel.Result
- func (c EditEvent) Duplicate(ID, courseID int) revel.Result
- func (c EditEvent) NewMeeting(ID int, option models.MeetingInterval, conf models.EditEMailConfig) revel.Result
- type EditMeeting
- type Enrollment
- func (c Enrollment) Enroll(ID int, key, comment string) revel.Result
- func (c Enrollment) EnrollInSlot(ID, courseID, year, day int, startTime, endTime, date string, monday string) revel.Result
- func (c Enrollment) Unsubscribe(ID int) revel.Result
- func (c Enrollment) UnsubscribeFromSlot(slotID, eventID, courseID, day int, monday string) revel.Result
- type ErrorType
- type Manage
- type Participants
- func (c Participants) ChangeStatus(ID, eventID int, enrolled models.Enrolled) revel.Result
- func (c Participants) Days(ID, eventID, shift int, t string) revel.Result
- func (c Participants) DeleteSlot(ID, eventID, slotID int, t string) revel.Result
- func (c Participants) Download(ID int, conf models.ListConf) revel.Result
- func (c Participants) EMail(ID int, conf models.ListConf) revel.Result
- func (c Participants) Enroll(ID, eventID, userID int) revel.Result
- func (c Participants) Open(ID, eventID int) revel.Result
- func (c Participants) SearchUser(ID, eventID int, value string) revel.Result
- func (c Participants) Unsubscribe(ID, eventID, userID int) revel.Result
- func (c Participants) Waitlist(ID, eventID, userID int) revel.Result
- type User
- func (c User) ActivationPage() revel.Result
- func (c User) ChangePassword(oldPw, newPw1, newPw2 string) revel.Result
- func (c User) Login(credentials models.Credentials) revel.Result
- func (c User) LoginPage() revel.Result
- func (c User) Logout() revel.Result
- func (c User) NewActivationCode() revel.Result
- func (c User) NewPassword(email string) revel.Result
- func (c User) NewPasswordPage() revel.Result
- func (c User) PrefLanguagePage() revel.Result
- func (c User) Profile() revel.Result
- func (c User) Registration(user models.User) revel.Result
- func (c User) RegistrationPage() revel.Result
- func (c User) SetPrefLanguage(prefLanguage string) revel.Result
- func (c User) UpdateExternUserData(user models.User) revel.Result
- func (c User) VerifyActivationCode(activationCode string) revel.Result
Constants ¶
const ( //SUCCESS result type SUCCESS = "success" //ERROR result type ERROR = "error" //INVALID validation result type INVALID = "invalid" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct {
*revel.Controller
}
Admin implements logic to CRUD data for admin functions.
func (Admin) ChangeRole ¶
ChangeRole of an user. Sends a notification e-mail on success. - Roles: admin (activated)
func (Admin) ChangeUserData ¶
ChangeUserData updates the salutation, first name, last name and e-mail of an user. - Roles: admin (activated)
func (Admin) Dashboard ¶
Dashboard rendering. The dashboard shows page statistics. - Roles: admin (activated)
func (Admin) DeleteCategory ¶
DeleteCategory deletes a category. - Roles: admin (activated)
func (Admin) DeleteGroup ¶
DeleteGroup deletes a group. Groups can only be deleted if they have no children and contain no active courses. Upon deletion, all inactive courses of that group become the children of the parent group. - Roles: admin (activated)
func (Admin) DeleteHelpPageEntry ¶
DeleteHelpPageEntry deletes a FAQ or news feed entry. - Roles: admin (activated)
func (Admin) InsertCategory ¶
InsertCategory inserts the new category as a FAQ category or a news feed category. - Roles: admin (activated)
func (Admin) InsertGroup ¶
InsertGroup inserts a new group. A group can be the child of another group or a root group. Each active course must be part of a group. - Roles: admin (activated)
func (Admin) InsertHelpPageEntry ¶
func (c Admin) InsertHelpPageEntry(entry models.HelpPageEntry) revel.Result
InsertHelpPageEntry inserts a new entry, which is either a FAQ or a news feed entry. - Roles: admin (activated)
func (Admin) InsertLogEntries ¶
InsertLogEntries inserts all new log entries of the error log file. These are all log entries appended after the last executing of this controller. - Roles: admin (activated)
func (Admin) LogEntries ¶
LogEntries rendering. Loads all not yet solved log entries of the error log. - Roles: admin (activated)
func (Admin) Roles ¶
Roles renders all users with elevated roles (ADMIN or CREATOR). - Roles: admin (activated)
func (Admin) SearchUser ¶
SearchUser renders search results for a search value. The search results are a slice of users. - Roles: admin (activated)
func (Admin) SolveLogEntry ¶
SolveLogEntry solves a log entry. Any log entry being solved is no longer shown when rendering all log entries. - Roles: admin (activated)
func (Admin) UpdateCategory ¶
UpdateCategory updates the name of a category. - Roles: admin (activated)
func (Admin) UpdateGroup ¶
UpdateGroup updates the name and the course limit of a group. - Roles: admin (activated)
func (Admin) UpdateHelpPageEntry ¶
func (c Admin) UpdateHelpPageEntry(entry models.HelpPageEntry) revel.Result
UpdateHelpPageEntry updates a FAQ or news feed entry. - Roles: admin (activated)
type App ¶
type App struct {
*revel.Controller
}
App implements logic to CRUD general page data.
func (App) ChangeLanguage ¶
ChangeLanguage changes the language, then redirects to the page currently set as currPath. - Roles: all
func (App) DataPrivacy ¶
DataPrivacy renders the data privacy page. - Roles: all (except not activated users)
func (App) Groups ¶
Groups renders all groups and their children recursively. - Roles: all (except not activated users)
type Course ¶
type Course struct {
*revel.Controller
}
Course implements logic to load courses.
func (Course) CalendarEvent ¶
CalendarEvent of a course. Loads a specific calender event as defined by monday. - Roles: if public all, else logged in users.
func (Course) CalendarEvents ¶
CalendarEvents of a course. - Roles: if public all, else logged in users.
func (Course) EditorInstructorList ¶
EditorInstructorList of a course. - Roles: if public all, else logged in users.
func (Course) Open ¶
Open an already existing course for enrollment. - Roles: if public all, else logged in users.
func (Course) Restrictions ¶
Restrictions of a course. - Roles: if public all, else logged in users.
type Creator ¶
type Creator struct {
*revel.Controller
}
Creator implements logic to manage courses.
type Edit ¶
type Edit struct {
*revel.Controller
}
Edit implements logic to edit course data.
func (Edit) ChangeBool ¶
ChangeBool toggles the provided boolean value of a course. - Roles: creator and editors of the course
func (Edit) ChangeEnrollLimit ¶
ChangeEnrollLimit changes the enrollment limit of a course. - Roles: creator and editors of the course
func (Edit) ChangeGroup ¶
ChangeGroup of a course. - Roles: creator and editors of the course
func (Edit) ChangeRestriction ¶
ChangeRestriction adds/edits a degree/course of study/semester restriction of a course. - Roles: creator and editors of the course
func (Edit) ChangeText ¶
ChangeText changes the text of the provided column. - Roles: creator and editors of the course
func (Edit) ChangeTimestamp ¶
func (c Edit) ChangeTimestamp(ID int, fieldID, date, time string, conf models.EditEMailConfig) revel.Result
ChangeTimestamp changes the specified timestamp. - Roles: creator and editors of the course
func (Edit) ChangeUserList ¶
ChangeUserList adds a user to the user list of a course. - Roles: creator and editors of the course
func (Edit) ChangeViewMatrNr ¶
ChangeViewMatrNr toggles the matriculation number restrictions of an editor/instructor. - Roles: creator and editors of the course
func (Edit) DeleteFromUserList ¶
DeleteFromUserList removes a user from the user list of a course. - Roles: creator and editors of the course
func (Edit) DeleteRestriction ¶
DeleteRestriction of a course. - Roles: creator and editors of this course
func (Edit) NewEvent ¶
NewEvent creates a new blank event in a course. - Roles: creator and editors of this course.
func (Edit) Open ¶
Open an already existing course for modification, etc. - Roles: creator and editors of this course
func (Edit) SearchUser ¶
SearchUser searches for users for the different user lists. - Roles: creator and editors of the course
type EditCalendarEvent ¶
type EditCalendarEvent struct {
*revel.Controller
}
EditCalendarEvent implements logic to CRUD calendar event data.
func (EditCalendarEvent) ChangeException ¶
func (c EditCalendarEvent) ChangeException(ID, courseID int, exception models.Exception) revel.Result
ChangeException edits or adds an exception. Exceptions block slots of a day template. - Roles: creator and editors of the course of the calendar event
func (EditCalendarEvent) ChangeText ¶
func (c EditCalendarEvent) ChangeText(ID int, fieldID, value string) revel.Result
ChangeText of the provided column of a calendar event. - Roles: creator and editors of the course of the calendar event
func (EditCalendarEvent) Delete ¶
func (c EditCalendarEvent) Delete(ID, courseID int) revel.Result
Delete calendar event. - Roles: creator and editors of the course of the calendar event
func (EditCalendarEvent) DeleteDayTemplate ¶
func (c EditCalendarEvent) DeleteDayTemplate(ID, courseID int) revel.Result
DeleteDayTemplate of a calendar event. - Roles: creator and editors of the course of the calendar event
func (EditCalendarEvent) DeleteException ¶
func (c EditCalendarEvent) DeleteException(ID, courseID int) revel.Result
DeleteException of a calendar event. - Roles: creator and editors of the course of the calendar event
func (EditCalendarEvent) Duplicate ¶
func (c EditCalendarEvent) Duplicate(ID, courseID int) revel.Result
Duplicate calendar event. - Roles: creator and editors of the course of the event
func (EditCalendarEvent) EditDayTemplate ¶
EditDayTemplate edits a repeatable blueprint of a day. - Roles: creator and editors of the course of the calendar event
func (EditCalendarEvent) NewDayTemplate ¶
NewDayTemplate creates a repeatable blueprint of a day. - Roles: creator and editors of the course of the calendar event
type EditEvent ¶
type EditEvent struct {
*revel.Controller
}
EditEvent implements logic to edit event data.
func (EditEvent) ChangeBool ¶
ChangeBool toggles the provided boolean value of an event. - Roles: creator and editors of the course of the event
func (EditEvent) ChangeCapacity ¶
ChangeCapacity changes the capacity of an event. - Roles: creator and editors of the course of the event
func (EditEvent) ChangeEnrollmentKey ¶
ChangeEnrollmentKey sets an enrollment key. - Roles: creator and editors of the course of the event
func (EditEvent) ChangeText ¶
func (c EditEvent) ChangeText(ID int, fieldID, value string, conf models.EditEMailConfig) revel.Result
ChangeText changes the text of the provided column. - Roles: creator and editors of the course of the event
func (EditEvent) DeleteEnrollmentKey ¶
DeleteEnrollmentKey of an event. - Roles: creator and editors of the course of the event
func (EditEvent) Duplicate ¶
Duplicate event. - Roles: creator and editors of the course of the event
func (EditEvent) NewMeeting ¶
func (c EditEvent) NewMeeting(ID int, option models.MeetingInterval, conf models.EditEMailConfig) revel.Result
NewMeeting creates a new blank meeting that is part of an event. - Roles: creator and editors of the course of the event
type EditMeeting ¶
type EditMeeting struct {
*revel.Controller
}
EditMeeting implements logic to edit meeting data.
func (EditMeeting) Delete ¶
func (c EditMeeting) Delete(ID, eventID int, conf models.EditEMailConfig) revel.Result
Delete meeting. - Roles: creator and editors of the course of the meeting
func (EditMeeting) Duplicate ¶
func (c EditMeeting) Duplicate(ID, eventID int, conf models.EditEMailConfig) revel.Result
Duplicate meeting. - Roles: creator and editors of the course of the meeting
func (EditMeeting) Edit ¶
func (c EditMeeting) Edit(ID int, meeting models.Meeting, conf models.EditEMailConfig) revel.Result
Edit meeting. - Roles: creator and editors of the course of the meeting
type Enrollment ¶
type Enrollment struct {
*revel.Controller
}
Enrollment implements logic to enroll in events.
func (Enrollment) Enroll ¶
func (c Enrollment) Enroll(ID int, key, comment string) revel.Result
Enroll a user in an event. - Roles: logged in and activated users
func (Enrollment) EnrollInSlot ¶
func (c Enrollment) EnrollInSlot(ID, courseID, year, day int, startTime, endTime, date string, monday string) revel.Result
EnrollInSlot enrolls a user in a time slot of a day in a calendar event. - Roles: logged in and activated users
func (Enrollment) Unsubscribe ¶
func (c Enrollment) Unsubscribe(ID int) revel.Result
Unsubscribe a user from an event. - Roles: logged in and activated users
func (Enrollment) UnsubscribeFromSlot ¶
func (c Enrollment) UnsubscribeFromSlot(slotID, eventID, courseID, day int, monday string) revel.Result
UnsubscribeFromSlot deletes a slot of an user.
type Manage ¶
type Manage struct {
*revel.Controller
}
Manage implements the course management page.
func (Manage) Active ¶
Active renders the active courses page. - Roles: creator, editors and instructors
type Participants ¶
type Participants struct {
*revel.Controller
}
Participants implements logic to CRUD participants.
func (Participants) ChangeStatus ¶
ChangeStatus changes the payment status of a user in an event. - Roles: creator, editors and instructors of this course
func (Participants) Days ¶
func (c Participants) Days(ID, eventID, shift int, t string) revel.Result
Days renders all slots of each day of a week. - Roles: creator, editors and instructors of this course
func (Participants) DeleteSlot ¶
func (c Participants) DeleteSlot(ID, eventID, slotID int, t string) revel.Result
DeleteSlot of a calendar event.
func (Participants) Download ¶
Download a list of participants. - Roles: creator, editors and instructors of this course
func (Participants) EMail ¶
EMail sends an e-mail to a list of participants. - Roles: creator, editors and instructors of this course
func (Participants) Enroll ¶
func (c Participants) Enroll(ID, eventID, userID int) revel.Result
Enroll a user without validating enrollment constraints. - Roles: creator, editors and instructors of this course
func (Participants) Open ¶
func (c Participants) Open(ID, eventID int) revel.Result
Open a course for participants management. - Roles: creator, editors and instructors of this course
func (Participants) SearchUser ¶
func (c Participants) SearchUser(ID, eventID int, value string) revel.Result
SearchUser renders search results for a search value. - Roles: creator, editors and instructors of this course
func (Participants) Unsubscribe ¶
func (c Participants) Unsubscribe(ID, eventID, userID int) revel.Result
Unsubscribe a user from an event. - Roles: creator, editors and instructors of this course
type User ¶
type User struct {
*revel.Controller
}
User implements logic to CRUD users.
func (User) ActivationPage ¶
ActivationPage renders the activation page. - Roles: all
func (User) ChangePassword ¶
ChangePassword of an user. - Roles: logged in and activated extern users
func (User) Login ¶
func (c User) Login(credentials models.Credentials) revel.Result
Login of an user. - Roles: not logged in users
func (User) NewActivationCode ¶
NewActivationCode sends a new activation code. - Roles: logged in and not activated users
func (User) NewPassword ¶
NewPassword generates a new password and sends it via e-mail. - Roles: all
func (User) NewPasswordPage ¶
NewPasswordPage renders the page to request a new password. - Roles: not logged in users
func (User) PrefLanguagePage ¶
PrefLanguagePage renders the page to set a preferred language. - Roles: logged in users
func (User) Registration ¶
Registration registers a new external user and sends an activation e-mail. - Roles: not logged in users
func (User) RegistrationPage ¶
RegistrationPage renders the registration page. - Roles: not logged in users
func (User) SetPrefLanguage ¶
SetPrefLanguage sets the preferred language of the user. - Roles: logged in users
func (User) UpdateExternUserData ¶
UpdateExternUserData of an user. - Roles: logged in and activated extern users