|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CourseService
A course is a specified area of knowledge contained and taught independently from other areas of knowledge that may or may not be related. Courses typically have specific learning objectives, defined student learning outcomes and assessments. They can be recognized for academic credit or not. Courses can be delivered in various instructional formats such as lecture, lab, discussion, seminar, colloquium, etc. A course would utilize at least one instructional format, but often will use more than one. Course is pre-configured type of CLU (Canonical Learning Unit) that represents a credit course. The courseInfo object supports a number of complex course options – cross-listed, joint and variations. Course can have any number of associated learning objectives and requisites (rules that model pre-, co-, anti-requisites and enrollment restrictions).
Method Summary | |
---|---|
CourseInfo |
createCourse(CourseInfo courseInfo,
ContextInfo contextInfo)
Creates a Course |
StatementTreeViewInfo |
createCourseStatement(String courseId,
StatementTreeViewInfo statementTreeViewInfo,
ContextInfo contextInfo)
Creates the Statement for a Course. |
CourseInfo |
createNewCourseVersion(String courseId,
String versionComment,
ContextInfo contextInfo)
Creates a new Course version based on the current course |
StatusInfo |
deleteCourse(String courseId,
ContextInfo contextInfo)
Deletes a Course. |
StatusInfo |
deleteCourseStatement(String courseId,
StatementTreeViewInfo statementTreeViewInfo,
ContextInfo contextInfo)
Delete the Statement for a Course. |
CourseInfo |
getCourse(String courseId,
ContextInfo contextInfo)
Retrieves a Course |
List<ActivityInfo> |
getCourseActivitiesByCourseFormat(String formatId,
ContextInfo contextInfo)
Retrieves the Activities for a Course. |
List<FormatInfo> |
getCourseFormatsByCourse(String courseId,
ContextInfo contextInfo)
Retrieves the formats for a Course. |
List<LoDisplayInfo> |
getCourseLearningObjectivesByCourse(String courseId,
ContextInfo contextInfo)
Retrieves the Learning Objectives for a Course. |
List<CourseInfo> |
getCoursesByIds(List<String> courseIds,
ContextInfo contextInfo)
Retrieves a list of courses by Ids |
List<StatementTreeViewInfo> |
getCourseStatements(String courseId,
String nlUsageTypeKey,
String language,
ContextInfo contextInfo)
Retrieves the Statements of a Course. |
VersionDisplayInfo |
getCurrentVersion(String refObjectTypeURI,
String refObjectId,
ContextInfo contextInfo)
Deprecated. |
List<VersionDisplayInfo> |
getVersions(String refObjectTypeURI,
String refObjectId,
ContextInfo contextInfo)
Deprecated. |
List<String> |
searchForCourseIds(QueryByCriteria criteria,
ContextInfo contextInfo)
Searches for courses based on the criteria and returns a list of Comment identifiers which match the search criteria. |
List<CourseInfo> |
searchForCourses(QueryByCriteria criteria,
ContextInfo contextInfo)
Searches for courses based on the criteria and returns a list of Comments which match the search criteria. |
StatusInfo |
setCurrentCourseVersion(String courseVersionId,
Date currentVersionStart,
ContextInfo contextInfo)
Sets a specific version of the Course as current. |
CourseInfo |
updateCourse(String courseId,
CourseInfo courseInfo,
ContextInfo contextInfo)
Updates a Course. |
StatementTreeViewInfo |
updateCourseStatement(String courseId,
String statementId,
StatementTreeViewInfo statementTreeViewInfo,
ContextInfo contextInfo)
Updates the Statement for a Course. |
List<ValidationResultInfo> |
validateCourse(String validationType,
CourseInfo courseInfo,
ContextInfo contextInfo)
Validates a course based on its dictionary |
List<ValidationResultInfo> |
validateCourseStatement(String courseId,
StatementTreeViewInfo statementTreeViewInfo,
ContextInfo contextInfo)
Validates the Statement for a Course. |
Methods inherited from interface org.kuali.student.r1.common.dictionary.service.DictionaryService |
---|
getObjectStructure, getObjectTypes |
Method Detail |
---|
CourseInfo getCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseId
- Unique Id of the Course. Maps to cluId
DoesNotExistException
- Course does not exist
InvalidParameterException
- invalid course
MissingParameterException
- missing Course
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureList<CourseInfo> getCoursesByIds(List<String> courseIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseIds
- contextInfo
-
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
List<String> searchForCourseIds(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
criteria
- the search criteriacontextInfo
- Context information containing the principalId and
locale information about the caller of service operation
InvalidParameterException
- invalid parameter
MissingParameterException
- criteria, contextInfo not specified
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureList<CourseInfo> searchForCourses(QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
criteria
- the search criteriacontextInfo
- Context information containing the principalId and
locale information about the caller of service operation
InvalidParameterException
- invalid parameter
MissingParameterException
- criteria, contextInfo not specified
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureCourseInfo createCourse(CourseInfo courseInfo, ContextInfo contextInfo) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException
courseInfo
- courseInfo
DataValidationErrorException
- One or more values invalid for this
operation
InvalidParameterException
- invalid course
MissingParameterException
- missing Course
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
VersionMismatchException
DependentObjectsExistException
CourseInfo updateCourse(String courseId, CourseInfo courseInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException, UnsupportedActionException, DependentObjectsExistException, AlreadyExistsException, CircularRelationshipException, CircularReferenceException, ReadOnlyException
courseInfo
- courseInfocourseId
-
DataValidationErrorException
- One or more values invalid for this
operation
DoesNotExistException
- course not found
InvalidParameterException
- invalid course
MissingParameterException
- missing course
VersionMismatchException
- The action was attempted on an out of
date version.
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
CircularReferenceException
CircularRelationshipException
AlreadyExistsException
DependentObjectsExistException
UnsupportedActionException
ReadOnlyException
StatusInfo deleteCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, DataValidationErrorException, AlreadyExistsException, UnsupportedActionException, DependentObjectsExistException, CircularRelationshipException, CircularReferenceException, ReadOnlyException
courseId
- identifier for Course.Maps to cluId
DoesNotExistException
- Course does not exist
InvalidParameterException
- invalid courseId
MissingParameterException
- invalid courseId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
CircularReferenceException
CircularRelationshipException
DependentObjectsExistException
UnsupportedActionException
VersionMismatchException
DataValidationErrorException
AlreadyExistsException
ReadOnlyException
List<ValidationResultInfo> validateCourse(String validationType, CourseInfo courseInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
validationType
- identifier of the extent of validationcourseInfo
- Course to be validated
DoesNotExistException
- Course does not exist
InvalidParameterException
- invalid courseId
MissingParameterException
- invalid courseId
OperationFailedException
- unable to complete requestList<FormatInfo> getCourseFormatsByCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseId
- Unique Id of the Course. Maps to cluId
DoesNotExistException
- Course does not exist
InvalidParameterException
- invalid courseId
MissingParameterException
- invalid courseId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureList<ActivityInfo> getCourseActivitiesByCourseFormat(String formatId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
formatId
- Unique Id of the Format. Maps to cluId
DoesNotExistException
- Format does not exist
InvalidParameterException
- invalid format
MissingParameterException
- missing Format
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureList<LoDisplayInfo> getCourseLearningObjectivesByCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseId
- Unique Id of the Course. Maps to cluId
DoesNotExistException
- Course does not exist
InvalidParameterException
- invalid courseId
MissingParameterException
- invalid courseId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureList<StatementTreeViewInfo> getCourseStatements(String courseId, String nlUsageTypeKey, String language, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseId
- Unique Id of the Course. Maps to cluIdnlUsageTypeKey
- Natural language usage type key (context)language
- Translation language e.g en, es, gr
DoesNotExistException
- Course does not exist
InvalidParameterException
- invalid courseId
MissingParameterException
- invalid courseId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureStatementTreeViewInfo createCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DataValidationErrorException
courseId
- Unique Id of the Course. Maps to cluIdstatementTreeViewInfoList
- a Statementree Structures
DoesNotExistException
- Course does not exist
InvalidParameterException
- invalid courseId
MissingParameterException
- invalid courseId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
DataValidationErrorException
StatementTreeViewInfo updateCourseStatement(String courseId, String statementId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DataValidationErrorException, VersionMismatchException
courseId
- Unique Id of the Course. Maps to cluIdstatementId
- statementTreeViewInfoList
- a Statementree Structures
DoesNotExistException
- Course does not exist
InvalidParameterException
- invalid courseId
MissingParameterException
- invalid courseId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
VersionMismatchException
DataValidationErrorException
StatusInfo deleteCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseId
- Unique Id of the Course. Maps to cluIdstatementTreeViewInfoList
- a Statementree Structures
DoesNotExistException
- Course does not exist
InvalidParameterException
- invalid courseId
MissingParameterException
- invalid courseId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failureList<ValidationResultInfo> validateCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseId
- Unique Id of the Course. Maps to cluIdstatementTreeViewInfoList
- a Statementree Structures
DoesNotExistException
- Course or StementTreeView does not exist
InvalidParameterException
- invalid courseId or stratement tree
view Id
MissingParameterException
- invalid courseId or statement tree view
Id
OperationFailedException
- unable to complete request
PermissionDeniedException
CourseInfo createNewCourseVersion(String courseId, String versionComment, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, ReadOnlyException
courseId
- identifier for the Course to be versionedversionComment
- comment for the current version
DataValidationErrorException
- One or more values invalid for this
operation
DoesNotExistException
- courseId not found
InvalidParameterException
- invalid courseId
MissingParameterException
- missing courseId
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
VersionMismatchException
- The action was attempted on an out of
date version
ReadOnlyException
StatusInfo setCurrentCourseVersion(String courseVersionId, Date currentVersionStart, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, IllegalVersionSequencingException, DataValidationErrorException
courseVersionId
- Version Specific Id of the CoursecurrentVersionStart
- Date when this course becomes current. Must be
in the future and be after the most current course's start
date.
DoesNotExistException
- courseVersionId not found
InvalidParameterException
- invalid courseVersionId, previousState,
newState
MissingParameterException
- missing courseVersionId, previousState,
newState
IllegalVersionSequencingException
- a Course with higher sequence
number from the one provided is marked current
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure
IllegalVersionSequencingException
DataValidationErrorException
@Deprecated VersionDisplayInfo getCurrentVersion(String refObjectTypeURI, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
refObjectTypeURI
- reference object type URIrefObjectId
- reference object Id
DoesNotExistException
- specified refObjectId, refObjectTypeURI not found
InvalidParameterException
- invalid refObjectId, refObjectTypeURI
MissingParameterException
- refObjectId, refObjectTypeURI not specified
OperationFailedException
- unable to complete request
PermissionDeniedException
- authorization failure@Deprecated List<VersionDisplayInfo> getVersions(String refObjectTypeURI, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |