|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.lum.workflow.CourseStateChangeServiceImpl
@Transactional(noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public class CourseStateChangeServiceImpl
Constructor Summary | |
---|---|
CourseStateChangeServiceImpl()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CourseStateChangeServiceImpl()
Method Detail |
---|
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 course
Exception
protected void activateCourse(CourseInfo courseToActivate, String prevEndTermAtpId, ContextInfo contextInfo) throws Exception
courseToActivate
- prevEndTermAtpId
- the end term we set on the current version
Exception
protected void retireCourse(CourseInfo courseToRetire, ContextInfo contextInfo) throws Exception
courseToRetire
- the course to retire
Exception
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |