public class CourseServiceImpl extends Object implements CourseService
| Constructor and Description |
|---|
CourseServiceImpl() |
| 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 versionIndCourseId,
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.
|
CluService |
getCluService() |
CourseInfo |
getCourse(String courseId,
ContextInfo contextInfo)
Retrieves a Course
|
List<ActivityInfo> |
getCourseActivities(String formatId) |
List<ActivityInfo> |
getCourseActivitiesByCourseFormat(String formatId,
ContextInfo contextInfo)
Retrieves the Activities for a Course.
|
CourseAssembler |
getCourseAssembler() |
List<FormatInfo> |
getCourseFormats(String courseId) |
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<LoDisplayInfo> |
getCourseLos(String courseId) |
List<CourseInfo> |
getCoursesByIds(List<String> courseIds,
ContextInfo contextInfo)
Retrieves a list of courses by Ids
|
BusinessServiceMethodInvoker |
getCourseServiceMethodInvoker() |
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)
Retrieves current version associated with the objectId.
|
VersionDisplayInfo |
getCurrentVersionOnDate(String refObjectTypeURI,
String refObjectId,
Date date,
ContextInfo contextInfo) |
DictionaryService |
getDictionaryServiceDelegate() |
VersionDisplayInfo |
getFirstVersion(String refObjectTypeURI,
String refObjectId,
ContextInfo contextInfo) |
VersionDisplayInfo |
getLatestVersion(String refObjectTypeURI,
String refObjectId,
ContextInfo contextInfo) |
ObjectStructureDefinition |
getObjectStructure(String objectTypeKey) |
List<String> |
getObjectTypes() |
StatementService |
getStatementService() |
ValidatorFactory |
getValidatorFactory() |
VersionDisplayInfo |
getVersionBySequenceNumber(String refObjectTypeURI,
String refObjectId,
Long sequence,
ContextInfo contextInfo) |
List<VersionDisplayInfo> |
getVersions(String refObjectTypeURI,
String refObjectId,
ContextInfo contextInfo) |
List<VersionDisplayInfo> |
getVersionsInDateRange(String refObjectTypeURI,
String refObjectId,
Date from,
Date to,
ContextInfo contextInfo) |
List<String> |
searchForCourseIds(org.kuali.rice.core.api.criteria.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(org.kuali.rice.core.api.criteria.QueryByCriteria criteria,
ContextInfo contextInfo)
Searches for courses based on the criteria and returns a list of Comments
which match the search criteria.
|
void |
setCluService(CluService cluService) |
void |
setCourseAssembler(CourseAssembler courseAssembler) |
void |
setCourseServiceMethodInvoker(BusinessServiceMethodInvoker courseServiceMethodInvoker) |
StatusInfo |
setCurrentCourseVersion(String courseVersionId,
Date currentVersionStart,
ContextInfo contextInfo)
Sets a specific version of the Course as current.
|
void |
setDictionaryServiceDelegate(DictionaryService dictionaryServiceDelegate) |
void |
setStatementService(StatementService statementService) |
void |
setValidatorFactory(ValidatorFactory validatorFactory) |
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.
|
public CourseServiceImpl()
@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public CourseInfo createCourse(CourseInfo courseInfo, ContextInfo contextInfo) throws DataValidationErrorException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException
CourseServicecreateCourse in interface CourseServicecourseInfo - courseInfoDataValidationErrorException - One or more values invalid for this
operationInvalidParameterException - invalid courseMissingParameterException - missing CourseOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureVersionMismatchException@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public CourseInfo updateCourse(String courseId, CourseInfo courseInfo, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, VersionMismatchException, OperationFailedException, PermissionDeniedException, UnsupportedActionException, DependentObjectsExistException, AlreadyExistsException, CircularRelationshipException, CircularReferenceException, ReadOnlyException
CourseServiceupdateCourse in interface CourseServicecourseInfo - courseInfoDataValidationErrorException - 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 failureUnsupportedActionExceptionDependentObjectsExistExceptionAlreadyExistsExceptionCircularRelationshipExceptionCircularReferenceExceptionReadOnlyException@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo deleteCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, DataValidationErrorException, AlreadyExistsException, UnsupportedActionException, DependentObjectsExistException, CircularRelationshipException, CircularReferenceException, ReadOnlyException
CourseServicedeleteCourse in interface CourseServicecourseId - identifier for Course.Maps to cluIdDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedActionExceptionDependentObjectsExistExceptionCircularRelationshipExceptionCircularReferenceExceptionVersionMismatchExceptionDataValidationErrorExceptionAlreadyExistsExceptionReadOnlyException@Transactional(readOnly=true) public CourseInfo getCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseServicegetCourse in interface CourseServicecourseId - Unique Id of the Course. Maps to cluIdDoesNotExistException - Course does not existInvalidParameterException - invalid courseMissingParameterException - missing CourseOperationFailedException - unable to complete requestPermissionDeniedException - authorization failure@Transactional(readOnly=true) public List<ActivityInfo> getCourseActivities(String formatId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
@Transactional(readOnly=true) public List<FormatInfo> getCourseFormats(String courseId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
@Transactional(readOnly=true) public List<LoDisplayInfo> getCourseLos(String courseId) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
@Transactional(readOnly=true) public List<StatementTreeViewInfo> getCourseStatements(String courseId, String nlUsageTypeKey, String language, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseServicegetCourseStatements in interface CourseServicecourseId - 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 failure@Transactional(readOnly=true) public List<ValidationResultInfo> validateCourse(String validationType, CourseInfo courseInfo, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException
CourseServicevalidateCourse in interface CourseServicevalidationType - identifier of the extent of validationcourseInfo - Course to be validatedInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete request@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatementTreeViewInfo createCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DataValidationErrorException
CourseServicecreateCourseStatement in interface CourseServicecourseId - Unique Id of the Course. Maps to cluIdDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureDataValidationErrorException@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo deleteCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseServicedeleteCourseStatement in interface CourseServicecourseId - Unique Id of the Course. Maps to cluIdDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - authorization failure@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatementTreeViewInfo updateCourseStatement(String courseId, String statementId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DataValidationErrorException, VersionMismatchException
CourseServiceupdateCourseStatement in interface CourseServicecourseId - Unique Id of the Course. Maps to cluIdDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureDataValidationErrorExceptionVersionMismatchException@Transactional(readOnly=true) public List<ValidationResultInfo> validateCourseStatement(String courseId, StatementTreeViewInfo statementTreeViewInfo, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseServicevalidateCourseStatement in interface CourseServicecourseId - Unique Id of the Course. Maps to cluIdInvalidParameterException - invalid courseId or stratement tree
view IdMissingParameterException - invalid courseId or statement tree view
IdOperationFailedException - unable to complete requestPermissionDeniedExceptionpublic ObjectStructureDefinition getObjectStructure(String objectTypeKey)
getObjectStructure in interface DictionaryServicepublic List<String> getObjectTypes()
getObjectTypes in interface DictionaryServicepublic CourseAssembler getCourseAssembler()
public void setCourseAssembler(CourseAssembler courseAssembler)
public BusinessServiceMethodInvoker getCourseServiceMethodInvoker()
public void setCourseServiceMethodInvoker(BusinessServiceMethodInvoker courseServiceMethodInvoker)
public DictionaryService getDictionaryServiceDelegate()
public void setDictionaryServiceDelegate(DictionaryService dictionaryServiceDelegate)
public ValidatorFactory getValidatorFactory()
public void setValidatorFactory(ValidatorFactory validatorFactory)
public CluService getCluService()
public void setCluService(CluService cluService)
public StatementService getStatementService()
public void setStatementService(StatementService statementService)
@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public CourseInfo createNewCourseVersion(String versionIndCourseId, String versionComment, ContextInfo contextInfo) throws DataValidationErrorException, DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, VersionMismatchException, ReadOnlyException
CourseServicecreateNewCourseVersion in interface CourseServiceversionIndCourseId - 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 versionReadOnlyException@Transactional(readOnly=false, noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public StatusInfo setCurrentCourseVersion(String courseVersionId, Date currentVersionStart, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, IllegalVersionSequencingException, OperationFailedException, PermissionDeniedException, DataValidationErrorException
CourseServicesetCurrentCourseVersion in interface CourseServicecourseVersionId - 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 failureDataValidationErrorException@Transactional(readOnly=true) public VersionDisplayInfo getCurrentVersion(String refObjectTypeURI, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseServicegetCurrentVersion in interface CourseServicerefObjectTypeURI - 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@Transactional(readOnly=true) public VersionDisplayInfo getCurrentVersionOnDate(String refObjectTypeURI, String refObjectId, Date date, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
@Transactional(readOnly=true) public VersionDisplayInfo getFirstVersion(String refObjectTypeURI, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
@Transactional(readOnly=true) public VersionDisplayInfo getLatestVersion(String refObjectTypeURI, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
@Transactional(readOnly=true) public VersionDisplayInfo getVersionBySequenceNumber(String refObjectTypeURI, String refObjectId, Long sequence, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
@Transactional(readOnly=true) public List<VersionDisplayInfo> getVersions(String refObjectTypeURI, String refObjectId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
getVersions in interface CourseServiceDoesNotExistExceptionInvalidParameterExceptionMissingParameterExceptionOperationFailedExceptionPermissionDeniedException@Transactional(readOnly=true) public List<VersionDisplayInfo> getVersionsInDateRange(String refObjectTypeURI, String refObjectId, Date from, Date to, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
public List<CourseInfo> getCoursesByIds(List<String> courseIds, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseServicegetCoursesByIds in interface CourseServiceDoesNotExistExceptionInvalidParameterExceptionMissingParameterExceptionOperationFailedExceptionPermissionDeniedExceptionpublic List<String> searchForCourseIds(org.kuali.rice.core.api.criteria.QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseServicesearchForCourseIds in interface CourseServicecriteria - 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 failurepublic List<CourseInfo> searchForCourses(org.kuali.rice.core.api.criteria.QueryByCriteria criteria, ContextInfo contextInfo) throws InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseServicesearchForCourses in interface CourseServicecriteria - 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 failurepublic List<FormatInfo> getCourseFormatsByCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseServicegetCourseFormatsByCourse in interface CourseServicecourseId - Unique Id of the Course. Maps to cluIdDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - authorization failurepublic List<ActivityInfo> getCourseActivitiesByCourseFormat(String formatId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseServicegetCourseActivitiesByCourseFormat in interface CourseServiceformatId - Unique Id of the Format. Maps to cluIdDoesNotExistException - Format does not existInvalidParameterException - invalid formatMissingParameterException - missing FormatOperationFailedException - unable to complete requestPermissionDeniedException - authorization failurepublic List<LoDisplayInfo> getCourseLearningObjectivesByCourse(String courseId, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException
CourseServicegetCourseLearningObjectivesByCourse in interface CourseServicecourseId - Unique Id of the Course. Maps to cluIdDoesNotExistException - Course does not existInvalidParameterException - invalid courseIdMissingParameterException - invalid courseIdOperationFailedException - unable to complete requestPermissionDeniedException - authorization failureCopyright © 2004-2013 The Kuali Foundation. All Rights Reserved.