Interface AcademicRecordSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for retrieving an acedmic record for a student. Lookup methods assume only effective entries are returned.
This lookup session defines several views:
- isolated course catalog view: All program entry methods in this
session operate, retrieve and pertain to program entries defined
explicitly in the current course catalog. Using an isolated view is
useful for managing
ProgramEntrieswith the ProgramEntryAdminSession. - federated course catalog view: All program entry lookup methods in this session operate, retrieve and pertain to all program entries defined in this course catalog and any other program entries implicitly available in this course catalog through course catalog inheritence.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can perform academic record lookups.getAssessmentEntriesByDateForStudent(Id resourceId, DateTime from, DateTime to) Gets all effective assessment entries for a student completed within the given date range inclusive.getAssessmentEntriesForStudent(Id resourceId) Gets all effective assessment entries for a student.getAwardEntriesByDateForStudent(Id resourceId, DateTime from, DateTime to) Gets all effective award entries for a student completed within the given date range inclusive.getAwardEntriesForStudent(Id resourceId) Gets all effective award entries for a student.getCompletedCourseEntriesForStudent(Id resourceId) Gets all completed course entries for a student.getCompletedProgramEntriesForStudent(Id resourceId) Gets completed program entries for a student with summary results.Gets theCourseCatalogassociated with this session.Gets theCourseCatalogIdassociated with this session.getCourseEntriesByTermForStudent(Id resourceId, Id termId) Gets all effective course entries for a student in the given term.getCredentialEntriesByDateForStudent(Id resourceId, DateTime from, DateTime to) Gets all effective credential entries for a student awarded within the given date range inclusive.getCredentialEntriesForStudent(Id resourceId) Gets all effective credential entries for a student.getEnrolledProgramEntriesForStudent(Id resourceId) Gets program entries for a student in which the student is currently enrolled.getProgramEntriesByTermForStudent(Id resourceId, Id termId) Gets all effective program entries for a student in the given term.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getCourseCatalogId
Id getCourseCatalogId()Gets theCourseCatalogIdassociated with this session.- Returns:
- the
CourseCatalog Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCourseCatalog
Gets theCourseCatalogassociated with this session.- Returns:
- the course catalog
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupAcademicRecord
boolean canLookupAcademicRecord()Tests if this user can perform academic record lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useFederatedCourseCatalogView
void useFederatedCourseCatalogView()Federates the view for methods in this session. A federated view will include entries in catalogs which are children of this catalog in the course catalog hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedCourseCatalogView
void useIsolatedCourseCatalogView()Isolates the view for methods in this session. An isolated view restricts retrievals to this course catalog only.- Compliance:
mandatory- This method is must be implemented.
-
getCompletedProgramEntriesForStudent
ProgramEntryList getCompletedProgramEntriesForStudent(Id resourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets completed program entries for a student with summary results.- Parameters:
resourceId- theIdof aResource- Returns:
- the returned
ProgramEntryList - Throws:
NotFoundException-resourceIdis not foundNullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getEnrolledProgramEntriesForStudent
ProgramEntryList getEnrolledProgramEntriesForStudent(Id resourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets program entries for a student in which the student is currently enrolled.- Parameters:
resourceId- theIdof aResource- Returns:
- the returned
ProgramEntryList - Throws:
NotFoundException-resourceIdis not foundNullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getProgramEntriesByTermForStudent
ProgramEntryList getProgramEntriesByTermForStudent(Id resourceId, Id termId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets all effective program entries for a student in the given term.- Parameters:
resourceId- theIdof aResourcetermId- theIdof aTerm- Returns:
- the returned
ProgramEntryList - Throws:
NotFoundException-resourceIdis not foundNullArgumentException-resourceIdortermIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getCourseEntriesByTermForStudent
CourseEntryList getCourseEntriesByTermForStudent(Id resourceId, Id termId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets all effective course entries for a student in the given term.- Parameters:
resourceId- theIdof aResourcetermId- theIdof aTerm- Returns:
- the returned
CourseEntryList - Throws:
NotFoundException-resourceIdis not foundNullArgumentException-resourceIdortermIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getCompletedCourseEntriesForStudent
CourseEntryList getCompletedCourseEntriesForStudent(Id resourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets all completed course entries for a student.- Parameters:
resourceId- theIdof aResource- Returns:
- the returned
CourseEntryList - Throws:
NotFoundException-resourceIdis not foundNullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getCredentialEntriesForStudent
CredentialEntryList getCredentialEntriesForStudent(Id resourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets all effective credential entries for a student.- Parameters:
resourceId- theIdof aResource- Returns:
- the returned
CredentialEntryList - Throws:
NotFoundException-resourceIdis not foundNullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getCredentialEntriesByDateForStudent
CredentialEntryList getCredentialEntriesByDateForStudent(Id resourceId, DateTime from, DateTime to) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets all effective credential entries for a student awarded within the given date range inclusive.- Parameters:
resourceId- theIdof aResourcefrom- starting dateto- ending date- Returns:
- the returned
CredentialEntryList - Throws:
InvalidArgumentException-fromis greater thantoNotFoundException-resourceIdis not foundNullArgumentException-resourceId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAssessmentEntriesForStudent
AssessmentEntryList getAssessmentEntriesForStudent(Id resourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets all effective assessment entries for a student.- Parameters:
resourceId- theIdof aResource- Returns:
- the returned
AssessmentEntryList - Throws:
NotFoundException-resourceIdis not foundNullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAssessmentEntriesByDateForStudent
AssessmentEntryList getAssessmentEntriesByDateForStudent(Id resourceId, DateTime from, DateTime to) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets all effective assessment entries for a student completed within the given date range inclusive.- Parameters:
resourceId- theIdof aResourcefrom- starting dateto- ending date- Returns:
- the returned
AssessmentEntryList - Throws:
InvalidArgumentException-fromis greater thantoNotFoundException-resourceIdis not foundNullArgumentException-resourceId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAwardEntriesForStudent
AwardEntryList getAwardEntriesForStudent(Id resourceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets all effective award entries for a student.- Parameters:
resourceId- theIdof aResource- Returns:
- the returned
AwardEntryList - Throws:
NotFoundException-resourceIdis not foundNullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAwardEntriesByDateForStudent
AwardEntryList getAwardEntriesByDateForStudent(Id resourceId, DateTime from, DateTime to) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets all effective award entries for a student completed within the given date range inclusive.- Parameters:
resourceId- theIdof aResourcefrom- starting dateto- ending date- Returns:
- the returned
AwardEntryList - Throws:
InvalidArgumentException-fromis greater thantoNotFoundException-resourceIdis not foundNullArgumentException-resourceId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-