AllEnrollments¶
-
public class
AllEnrollments
¶ The DAO that utilizes a MDS back-end for retrieving instances.
Methods¶
completedDuring¶
-
public List<Enrollment>
completedDuring
(DateTime start, DateTime end)¶ Return all enrollments that have been completed during the given time range.
Parameters: - start – the start date and time
- end – the end date end time
Returns: the list of the enrollments which satisfy the search conditions
findByCurrentMilestone¶
-
public List<Enrollment>
findByCurrentMilestone
(String currentMilestone)¶ Returns the list of enrollments with the given current milestone name.
Parameters: - currentMilestone – the current milestone name
Returns: the list of the enrollments which satisfy the search conditions
findByExternalId¶
-
public List<Enrollment>
findByExternalId
(String externalId)¶ Returns the list of enrollments with the given external id.
Parameters: - externalId – the external id
Returns: the list of the enrollments which satisfy the search conditions
findByMetadataProperty¶
-
public List<Enrollment>
findByMetadataProperty
(String property, String value)¶ Returns these enrollments, that have got a given key-value entry in their metadata.
Parameters: - property – the metadata key
- value – the metadata value
Returns: the list of the enrollments which satisfy the search conditions
findBySchedule¶
-
public List<Enrollment>
findBySchedule
(List<String> scheduleNames)¶ Returns the list of enrollments with the given schedule names.
Parameters: - scheduleNames – the names of the schedule
Returns: the list of the enrollments which satisfy the search conditions
findByStatus¶
-
public List<Enrollment>
findByStatus
(EnrollmentStatus status)¶ Returns the list of enrollments with the given status.
Parameters: - status – the enrollment status
Returns: the list of the enrollments which satisfy the search conditions
retrieveAll¶
-
public List<Enrollment>
retrieveAll
()¶ Returns all enrollments stored in the database.
Returns: the list of the enrollments