@Transactional(noRollbackFor=DoesNotExistException.class, rollbackFor=java.lang.Throwable.class) public class CredentialProgramStateChangeServiceImpl extends Object implements StateChangeService
We have a separate class because the operations need to be marked with the @Transactional annotation.
THIS CLASS IS DUPLICATED FOR MAJOR DISCIPLINE, CORE, AND CREDENTIAL PROGRAMS SINCE THERE ARE DIFFERENT SERVICE METHODS FOR EACH OF THESE TYPES (THOUGH THEY ARE SIMILAR)
| Constructor and Description |
|---|
CredentialProgramStateChangeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeState(String credentialProgramId,
String newState)
This method is called by workflow when the state changes.
|
void |
changeState(String endEntryTerm,
String endEnrollTerm,
String endInstAdmitTerm,
String credentialProgramId,
String newState)
This method is called from the UI (servlet) when state changes.
|
protected CredentialProgramInfo |
getCurrentVersion(CredentialProgramInfo credentialProgramInfo)
Get the current version of program given the selected version of program
|
void |
setProgramService(ProgramService programService)
This method is used by Spring to inject the program service into this bean.
|
void |
updateRequirementsState(List<String> programRequirementIds,
String newState)
This method will update the requirement state.
|
public CredentialProgramStateChangeServiceImpl()
public void changeState(String credentialProgramId, String newState) throws Exception
changeState in interface StateChangeServicemajorDisciplineId - state - Exceptionpublic void changeState(String endEntryTerm, String endEnrollTerm, String endInstAdmitTerm, String credentialProgramId, String newState) throws Exception
changeState in interface StateChangeServiceendEntryTerm - endEnrollTerm - programType - majorDisciplineId - newState - Exceptionprotected CredentialProgramInfo getCurrentVersion(CredentialProgramInfo credentialProgramInfo) throws Exception
credentialProgramInfo - Exceptionpublic void updateRequirementsState(List<String> programRequirementIds, String newState) throws Exception
Note that it uses StatementUtil to update the statement tree.
credentialProgramInfo - newState - Exceptionpublic void setProgramService(ProgramService programService)
programService - Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.