summaryrefslogtreecommitdiff
path: root/src/com/p4square/grow/frontend/TrainingPageResource.java
AgeCommit message (Collapse)Author
2013-11-09Refactored TrainingResource to use the Provider interface.Jesse Morgan
Playlists are now generated from a default playlist and regularly merged with the default playlist to get updates. Also adding the Question tests that got left out of a previous commit.
2013-09-15Adding Introduction Chapter.Jesse Morgan
Introduction chapter is always required and thus after the assessment the user is taken directly to the introduction. After the introduction training continues with whichever section the user assessed in to.
2013-09-09Redirecting to seeker if all sections are complete.Jesse Morgan
2013-09-09Adding Playlist Support.Jesse Morgan
The TrainingRecordResource now builds a playlist of videos for each user. The playlist is a map of video id to meta-data (completion date, completed, required). Some videos are required, others are not. TrainingPageResource now redirects to the earliest uncompleted chapter, based on information in the playlist. SurveyResultsResource now caches computed scores.
2013-09-01Adding video completion tracking to frontendJesse Morgan
2013-08-27Introducing F1 Authentication and Adding Site Content.Jesse Morgan
This change introduced the f1oauth and jesterpm oauth packages for interacting with Fellowship One's developer API. I have also reworked the login authentication to verify credentials through F1 and added session management to track logged in users. The Authenticator chain works as follows: on every page load we check for a session cookie, if the cookie exists, the Request is marked as authenticated and the OAuthUser object is restored in ClientInfo. If this request is going to an account page, we require authentication. The LoginFormAuthenticator checks if the user is already authenticated (via cookie) and if not redirects the user to the login page. When the login form is submitted, LoginFormAuthenticator catches the POST request and authenticates the user through F1. I'm also adding a new account page, but it is currently a work in progress. This commit also adds Allen's content to the site.
2013-08-04Adding VideosResource to return JSON blobs of video data for the training page.Jesse Morgan
2013-08-04Committing everything since its long overdue.Jesse Morgan