|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.student.lum.workflow.CourseStateChangeServiceImpl
@Transactional(noRollbackFor=DoesNotExistException.class,
rollbackFor=java.lang.Throwable.class)
public class CourseStateChangeServiceImpl
| Field Summary | |
|---|---|
private CourseService |
courseService
|
| Constructor Summary | |
|---|---|
CourseStateChangeServiceImpl()
|
|
| Method Summary | |
|---|---|
protected void |
activateCourse(CourseInfo courseToActivate,
String prevEndTermAtpId)
Activate a course version. |
StatusInfo |
changeState(String courseId,
String newState,
String prevEndTermAtpId)
Change the state of a course to a new state |
protected CourseInfo |
getCurrentVersionOfCourse(CourseInfo course)
Get the current version of course from another version of course |
protected void |
retireCourse(CourseInfo courseToRetire)
Retire a course version. |
void |
setCourseService(CourseService courseService)
|
private void |
updateCourseVersionStates(CourseInfo thisVerCourse,
String thisVerNewState,
CourseInfo currVerCourse,
String currVerNewState,
boolean makeCurrent,
String prevEndTermAtpId)
Based on null values, updates states of thisVerCourse and currVerCourse and sets thisVerCourse as the current version. |
void |
updateStatementTreeViewInfoState(CourseInfo courseInfo)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private CourseService courseService
| Constructor Detail |
|---|
public CourseStateChangeServiceImpl()
| Method Detail |
|---|
public StatusInfo changeState(String courseId,
String newState,
String prevEndTermAtpId)
throws Exception
courseId - id of coursenewState - the new state for the courseprevEndTermAtpId - the current version end date of course
Exception
protected void activateCourse(CourseInfo courseToActivate,
String prevEndTermAtpId)
throws Exception
courseToActivate - prevEndTermAtpId - the end term we set on the current version
Exception
protected void retireCourse(CourseInfo courseToRetire)
throws Exception
courseToRetire - the course to retire
Exception
protected CourseInfo getCurrentVersionOfCourse(CourseInfo course)
throws Exception
verIndId -
Exception
@Transactional(readOnly=false)
private void updateCourseVersionStates(CourseInfo thisVerCourse,
String thisVerNewState,
CourseInfo currVerCourse,
String currVerNewState,
boolean makeCurrent,
String prevEndTermAtpId)
throws Exception
thisVerCourse - this is the version that the user selected to change the statethisVerNewState - this is state that the user selected to change thisVerCourse
tocurrVerCourse - this is the current version of the course
(currentVersionStartDt <= now && currentVersionEndDt > now)currVerNewState - this is the state that we need to set the current version to.
Set to null to not update the currVerCourse state.makeCurrent - if true we'll set thisVerCourse as the current version.prevEndTermAtpId - the end term for the previous version to end on
Exceptionpublic void setCourseService(CourseService courseService)
public void updateStatementTreeViewInfoState(CourseInfo courseInfo)
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||