public class StudentMenuUtilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.ArrayList<StudentMenu> |
studentMenus
Student menus currently present in the environment.
|
static java.util.ArrayList<StudentRepresentation> |
studentRepresentations
Students currently logged in on the device.
|
Constructor and Description |
---|
StudentMenuUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
bringAllStudentsToTop(IStage stage)
Brings all student menus and menu icons to the top of the environment.
|
static StudentMenu |
generateStudentMenu(StudentRepresentation student,
IStage stage,
SynergyNetApp app)
Creates a student menu for a given student representation.
|
static StudentMenu |
login(java.lang.String studentID,
IStage stage,
SynergyNetApp app)
Will log in a student with the supplied ID.
|
static void |
logout(java.lang.String studentID,
IStage stage)
Logs out a specific student from the environment and removes their menu.
|
static void |
logoutAll(IStage stage)
Logs out all students in the environment and removes their menus.
|
static void |
logoutAllOfClass(java.lang.String className,
IStage stage)
Logs out all students belonging to a specific class.
|
static void |
setAbilityToAddContentFromGallery(boolean allowGalleryAdd)
Sets whether students representations present in the environment can add
content from their personal galleries to the applications.
|
public static java.util.ArrayList<StudentMenu> studentMenus
public static java.util.ArrayList<StudentRepresentation> studentRepresentations
public static void bringAllStudentsToTop(IStage stage)
public static StudentMenu generateStudentMenu(StudentRepresentation student, IStage stage, SynergyNetApp app)
student
- The student representation to create a student menu for.public static StudentMenu login(java.lang.String studentID, IStage stage, SynergyNetApp app)
studentID
- ID of the student to be logged in.public static void logout(java.lang.String studentID, IStage stage)
studentID
- ID of the student to be logged out.public static void logoutAll(IStage stage)
public static void logoutAllOfClass(java.lang.String className, IStage stage)
className
- Name of the class for which all students belonging to it
should be logged out.public static void setAbilityToAddContentFromGallery(boolean allowGalleryAdd)
allowGalleryAdd
- true = items can be added from personal galleries.
false = items cannot be added from personal galleries.