Ejemplo n.º 1
0
    public static Student findStudent(
            final Group group,
            final String authId
    ) {
        for (Student student : group.getStudents().values()) {
            if (authId.equalsIgnoreCase(student.getEmail())) {
                return student;
            }
        }

        return null;
    }
Ejemplo n.º 2
0
 public static Version resolveVersion(
         final Task task,
         final IndexEntry indexEntry,
         final Group group,
         final String studentId
 ) {
     return resolveVersion(
             task,
             indexEntry.getVerAnchor(),
             indexEntry.getVerStep(),
             group.getStudents().keySet(),
             studentId
     );
 }