@Transactional(noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public class CourseStateChangeServiceImpl extends Object
Constructor and Description |
---|
CourseStateChangeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
activateCourse(CourseInfo courseToActivate,
String prevEndTermAtpId,
ContextInfo contextInfo)
Activate a course version.
|
StatusInfo |
changeState(String courseId,
String newState,
String prevEndTermAtpId,
ContextInfo contextInfo)
Change the state of a course to a new state
|
protected CourseInfo |
getCurrentVersionOfCourse(CourseInfo course,
ContextInfo contextInfo)
Get the current version of course from another version of course
|
protected void |
retireCourse(CourseInfo courseToRetire,
ContextInfo contextInfo)
Retire a course version.
|
void |
setCourseService(CourseService courseService) |
void |
updateStatementTreeViewInfoState(CourseInfo courseInfo,
ContextInfo contextInfo)
This method will load all the statements in a course from the course web
service, recursively update the state of each statement in the statement
tree, and save the update statements back to the web service.
|
public CourseStateChangeServiceImpl()
public StatusInfo changeState(String courseId, String newState, String prevEndTermAtpId, ContextInfo contextInfo) throws Exception
courseId
- id of coursenewState
- the new state for the courseprevEndTermAtpId
- the current version end date of courseException
protected void activateCourse(CourseInfo courseToActivate, String prevEndTermAtpId, ContextInfo contextInfo) throws Exception
courseToActivate
- prevEndTermAtpId
- the end term we set on the current versionException
protected void retireCourse(CourseInfo courseToRetire, ContextInfo contextInfo) throws Exception
courseToRetire
- the course to retireException
protected CourseInfo getCurrentVersionOfCourse(CourseInfo course, ContextInfo contextInfo) throws Exception
Exception
public void setCourseService(CourseService courseService)
public void updateStatementTreeViewInfoState(CourseInfo courseInfo, ContextInfo contextInfo) throws DoesNotExistException, InvalidParameterException, MissingParameterException, OperationFailedException, PermissionDeniedException, DataValidationErrorException, CircularReferenceException, VersionMismatchException
courseInfo
- The course to update (call setState() in this object to set
the state)DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
DataValidationErrorException
CircularReferenceException
VersionMismatchException
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.