Merge branch 'motd' into 'master'
MotD Feature: There are two types of MotD: AdminMessages SessionMessages Every Message has a title, text, start- and enddate. You can declare an admin account in the arsnova.properties (security.adminaccount = <adminusername>) and with this account you can create Messages for different audiences (different types are: all (shown on startpage), loggedIn, students, tutors) which will be shown in a messageBox. SessionMessages can be created for every session by the sessioncreator and is displayed, when you enter the session. When a user that is not logged in via Guest, he pushes a list to the backend with all the messagekeys he read and acknowledged, so that he isn't shown the same messages over and over again. In addition to that, the keys are also stored in the localStorage (e.g. for guest accounts). See merge request !15
Showing
- src/main/java/de/thm/arsnova/controller/MotdController.java 177 additions, 0 deletionssrc/main/java/de/thm/arsnova/controller/MotdController.java
- src/main/java/de/thm/arsnova/dao/CouchDBDao.java 185 additions, 1 deletionsrc/main/java/de/thm/arsnova/dao/CouchDBDao.java
- src/main/java/de/thm/arsnova/dao/IDatabaseDao.java 26 additions, 0 deletionssrc/main/java/de/thm/arsnova/dao/IDatabaseDao.java
- src/main/java/de/thm/arsnova/entities/Motd.java 138 additions, 0 deletionssrc/main/java/de/thm/arsnova/entities/Motd.java
- src/main/java/de/thm/arsnova/entities/MotdList.java 68 additions, 0 deletionssrc/main/java/de/thm/arsnova/entities/MotdList.java
- src/main/java/de/thm/arsnova/entities/User.java 9 additions, 0 deletionssrc/main/java/de/thm/arsnova/entities/User.java
- src/main/java/de/thm/arsnova/security/ApplicationPermissionEvaluator.java 19 additions, 0 deletions.../thm/arsnova/security/ApplicationPermissionEvaluator.java
- src/main/java/de/thm/arsnova/services/IMotdService.java 61 additions, 0 deletionssrc/main/java/de/thm/arsnova/services/IMotdService.java
- src/main/java/de/thm/arsnova/services/MotdService.java 193 additions, 0 deletionssrc/main/java/de/thm/arsnova/services/MotdService.java
- src/main/java/de/thm/arsnova/services/UserService.java 6 additions, 0 deletionssrc/main/java/de/thm/arsnova/services/UserService.java
- src/main/resources/arsnova.properties.example 3 additions, 0 deletionssrc/main/resources/arsnova.properties.example
- src/test/java/de/thm/arsnova/dao/StubDatabaseDao.java 72 additions, 0 deletionssrc/test/java/de/thm/arsnova/dao/StubDatabaseDao.java
- src/test/resources/arsnova.properties.example 2 additions, 0 deletionssrc/test/resources/arsnova.properties.example
Please register or sign in to comment