public interface CourseService extends DictionaryService
| Modifier and Type | Method and Description |
|---|---|
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.
|
getObjectStructure, getObjectTypesCourseInfo getCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseId - Unique Id of the Course. Maps to cluIdDoesNotExistException - Course does not existInvalidParameterException - invalid courseMissingParameterException - missing CourseOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureList<CourseInfo> getCoursesByIds(List<String> courseIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseIds - contextInfo - DoesNotExistExceptionInvalidParameterExceptionMissingParameterExceptionOperationFailedExceptionPermissionDeniedExceptionList<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 operationInvalidParameterException - invalid parameterMissingParameterException - criteria, contextInfo not specifiedOperationFailedException - unable to complete requestPermissionDeniedException - 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 operationInvalidParameterException - invalid parameterMissingParameterException - criteria, contextInfo not specifiedOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureCourseInfo createCourse(CourseInfo courseInfo, ContextInfo contextInfo) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException
courseInfo - courseInfoDataValidationErrorException - One or more values invalid for this
operationInvalidParameterException - invalid courseMissingParameterException - missing CourseOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureVersionMismatchExceptionDependentObjectsExistExceptionCourseInfo 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
operationDoesNotExistException - course not foundInvalidParameterException - invalid courseMissingParameterException - missing courseVersionMismatchException - The action was attempted on an out of
date version.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureCircularReferenceExceptionCircularRelationshipExceptionAlreadyExistsExceptionDependentObjectsExistExceptionUnsupportedActionExceptionReadOnlyExceptionStatusInfo 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 cluIdDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureCircularReferenceExceptionCircularRelationshipExceptionDependentObjectsExistExceptionUnsupportedActionExceptionVersionMismatchExceptionDataValidationErrorExceptionAlreadyExistsExceptionReadOnlyExceptionList<ValidationResultInfo> validateCourse(String validationType, CourseInfo courseInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException
validationType - identifier of the extent of validationcourseInfo - Course to be validatedDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestList<FormatInfo> getCourseFormatsByCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseId - Unique Id of the Course. Maps to cluIdDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureList<ActivityInfo> getCourseActivitiesByCourseFormat(String formatId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
formatId - Unique Id of the Format. Maps to cluIdDoesNotExistException - Format does not existInvalidParameterException - invalid formatMissingParameterException - missing FormatOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureList<LoDisplayInfo> getCourseLearningObjectivesByCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseId - Unique Id of the Course. Maps to cluIdDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - 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, grDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - 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 StructuresDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureDataValidationErrorExceptionStatementTreeViewInfo 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 StructuresDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureVersionMismatchExceptionDataValidationErrorExceptionStatusInfo deleteCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
courseId - Unique Id of the Course. Maps to cluIdstatementTreeViewInfoList - a Statementree StructuresDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - 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 StructuresDoesNotExistException - Course or StementTreeView does not existInvalidParameterException - invalid courseId or stratement tree
view IdMissingParameterException - invalid courseId or statement tree view
IdOperationFailedException - unable to complete requestPermissionDeniedExceptionCourseInfo 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 versionDataValidationErrorException - One or more values invalid for this
operationDoesNotExistException - courseId not foundInvalidParameterException - invalid courseIdMissingParameterException - missing courseIdOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureVersionMismatchException - The action was attempted on an out of
date versionReadOnlyExceptionStatusInfo 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 foundInvalidParameterException - invalid courseVersionId, previousState,
newStateMissingParameterException - missing courseVersionId, previousState,
newStateIllegalVersionSequencingException - a Course with higher sequence
number from the one provided is marked currentOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureIllegalVersionSequencingExceptionDataValidationErrorException@Deprecated VersionDisplayInfo getCurrentVersion(String refObjectTypeURI, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
refObjectTypeURI - reference object type URIrefObjectId - reference object IdDoesNotExistException - specified refObjectId, refObjectTypeURI not foundInvalidParameterException - invalid refObjectId, refObjectTypeURIMissingParameterException - refObjectId, refObjectTypeURI not specifiedOperationFailedException - unable to complete requestPermissionDeniedException - authorization failure@Deprecated List<VersionDisplayInfo> getVersions(String refObjectTypeURI, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.