true
if learner satisfied any of the conditions and is allowed to pass
*/
- private boolean determineConditionGateStatus(GateActivity gate, User learner) {
+ private boolean determineConditionGateStatus(ConditionGateActivity conditionGate, User learner) {
boolean shouldOpenGate = false;
- if (gate instanceof ConditionGateActivity) {
- ConditionGateActivity conditionGate = (ConditionGateActivity) gate;
- // Work out the tool session appropriate for this user and gate activity. We expect there to be only one at
- // this point.
- ToolSession toolSession = null;
- for (Activity inputActivity : conditionGate.getInputActivities()) {
- toolSession = lamsCoreToolService.getToolSessionByLearner(learner, inputActivity);
- }
+ // Work out the tool session appropriate for this user and gate activity. We expect there to be only one at
+ // this point.
+ ToolSession toolSession = null;
+ for (Activity inputActivity : conditionGate.getInputActivities()) {
+ toolSession = lamsCoreToolService.getToolSessionByLearner(learner, inputActivity);
+ }
- if (toolSession != null) {
+ if (toolSession != null) {
- // Go through each condition until we find one that passes and that opens the gate.
- // Cache the tool output so that we aren't calling it over an over again.
- Map
- |
-
-
- |
-
- |
-
---|---|---|
- font-weight-bold"
- data-portrait="${userDto.portraitUuid}" data-fullname="${userDto.lastName}, ${userDto.firstName}">
- ${userDto.lastName}, ${userDto.firstName}
-
- |
-
-
- |
- - - ${groupDto.traScore} - - | -
+ |
+
+
+ |
+
+ |
+
---|---|---|
+ font-weight-bold"
+ data-portrait="${userDto.portraitUuid}" data-fullname="${userDto.lastName}, ${userDto.firstName}">
+ ${userDto.lastName}, ${userDto.firstName}
+
+ |
+
+
+ |
+ + + ${groupDto.traScore} + + | +