Java Code Examples for play.mvc.Controller#session()
The following examples show how to use
play.mvc.Controller#session() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LessonControllerUtils.java From judgels with GNU General Public License v2.0 | 4 votes |
public static void setCurrentStatementLanguage(String languageCode) { Controller.session("currentStatementLanguage", languageCode); }
Example 2
Source File: LessonControllerUtils.java From judgels with GNU General Public License v2.0 | 4 votes |
public static String getCurrentStatementLanguage() { return Controller.session("currentStatementLanguage"); }
Example 3
Source File: ProblemControllerUtils.java From judgels with GNU General Public License v2.0 | 4 votes |
public static void setCurrentStatementLanguage(String languageCode) { Controller.session("currentStatementLanguage", languageCode); }
Example 4
Source File: ProblemControllerUtils.java From judgels with GNU General Public License v2.0 | 4 votes |
public static String getCurrentStatementLanguage() { return Controller.session("currentStatementLanguage"); }
Example 5
Source File: ProblemControllerUtils.java From judgels with GNU General Public License v2.0 | 4 votes |
public static void setJustCreatedProblem(String slug, String additionalNote, String initLanguageCode) { Controller.session("problemSlug", slug); Controller.session("problemAdditionalNote", additionalNote); Controller.session("initLanguageCode", initLanguageCode); }
Example 6
Source File: ProblemControllerUtils.java From judgels with GNU General Public License v2.0 | 4 votes |
public static String getJustCreatedProblemSlug() { return Controller.session("problemSlug"); }
Example 7
Source File: ProblemControllerUtils.java From judgels with GNU General Public License v2.0 | 4 votes |
public static String getJustCreatedProblemAdditionalNote() { return Controller.session("problemAdditionalNote"); }
Example 8
Source File: ProblemControllerUtils.java From judgels with GNU General Public License v2.0 | 4 votes |
public static String getJustCreatedProblemInitLanguageCode() { return Controller.session("initLanguageCode"); }