Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openolat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zentraler Informatikdienst
Digitale Medien und Lerntechnologien
olat
openolat
Commits
f4c56265
Commit
f4c56265
authored
4 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-5109: export all assessed users for administrators
parent
56ab454f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/course/nodes/iq/IQIdentityListCourseNodeController.java
+14
-5
14 additions, 5 deletions
...t/course/nodes/iq/IQIdentityListCourseNodeController.java
with
14 additions
and
5 deletions
src/main/java/org/olat/course/nodes/iq/IQIdentityListCourseNodeController.java
+
14
−
5
View file @
f4c56265
...
...
@@ -250,7 +250,7 @@ public class IQIdentityListCourseNodeController extends IdentityListCourseNodeCo
}
private
boolean
isTestRunning
()
{
List
<
Identity
>
identities
=
getIdentities
();
List
<
Identity
>
identities
=
getIdentities
(
false
);
if
(
isTestQTI21
())
{
return
qtiService
.
isRunningAssessmentTestSession
(
getCourseRepositoryEntry
(),
courseNode
.
getIdent
(),
getReferencedRepositoryEntry
(),
identities
);
...
...
@@ -452,21 +452,30 @@ public class IQIdentityListCourseNodeController extends IdentityListCourseNodeCo
courseNode
,
assessedIdentity
,
coachCourseEnv
);
}
private
List
<
Identity
>
getIdentities
()
{
/**
*
* @param allIfAdmin Admin. have the possibility to see not participants.
* @return A list of identities
*/
private
List
<
Identity
>
getIdentities
(
boolean
allIfAdmin
)
{
AssessmentToolOptions
asOptions
=
getOptions
();
List
<
Identity
>
identities
=
asOptions
.
getIdentities
();
if
(
group
!=
null
)
{
identities
=
groupService
.
getMembers
(
group
,
GroupRoles
.
participant
.
toString
());
}
else
if
(
identities
!=
null
)
{
identities
=
asOptions
.
getIdentities
();
}
else
if
(
asOptions
.
isAdmin
()){
identities
=
ScoreAccountingHelper
.
loadParticipants
(
getCourseEnvironment
());
}
else
if
(
asOptions
.
isAdmin
())
{
if
(
allIfAdmin
)
{
identities
=
ScoreAccountingHelper
.
loadUsers
(
getCourseEnvironment
());
}
else
{
identities
=
ScoreAccountingHelper
.
loadParticipants
(
getCourseEnvironment
());
}
}
return
identities
;
}
private
void
doExportResults
(
UserRequest
ureq
)
{
List
<
Identity
>
identities
=
getIdentities
();
List
<
Identity
>
identities
=
getIdentities
(
true
);
if
(
identities
!=
null
&&
!
identities
.
isEmpty
())
{
MediaResource
resource
;
CourseEnvironment
courseEnv
=
getCourseEnvironment
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment