* It is needed because we need to make separate web service calls to update the state of these objects.
*
* @param majorDisciplineInfo
* @param newState
*/
private void updateMajorDisciplineInfoState(MajorDisciplineInfo majorDisciplineInfo, String newState) throws Exception {
// Update the statement tree
List
* e.g. v1 = ACTIVE v2 = APPROVED
*
* If you passed v2 into this method, it would return v1.
*
* If there is only one major discipline this method will return null.
*
* @param majorDisciplineInfo
* @return
*/
private MajorDisciplineInfo findPreviousVersion(MajorDisciplineInfo majorDisciplineInfo) throws Exception {
// Find all previous versions using the version independent indicator
List
* Note that it uses StatementUtil to update the statement tree.
*
* @param majorDisciplineInfo
* @param newState
* @throws Exception
*/
public void updateRequirementsState(List
* We need to do this here as opposed to in the assemblers, since we need
* to make calls out to a separate web service. Also, this needs to be done here
* because changing state no longer calls the save function.
*
* Note that core and credential programs do not have variations so
* this method isn't necessary.
*
*
* @param majorDisciplineInfo
* @param newState
* @throws Exception
*/
public void updateVariationsRequirementsState(List
*
* @param state is the state we should set all statements in the tree to
* @param statementTreeViewInfo the tree of statements
* @throws Exception
*/
public static void updateStatementTreeViewInfoState(String state, StatementTreeViewInfo statementTreeViewInfo) {
// Set the state on the statement tree itself
statementTreeViewInfo.setState(state);
// Get all the requirements components for this statement
List
* The UI needs to create temporary ids in order to work with the statements
* in memory prior to storing them in the database. On save, we strip
* the temporary ids in this method, then write the statement tree to the database,
* allowing the database to generate proper ids.
*
*
* @param tree
*/
public static void stripStatementIds(StatementTreeViewInfo tree) {
List
currentCluState
value. Otherwise null
will be returned.
*/
protected String getCourseStateFromNewState(String currentCourseState, String newCourseState) {
if (LOG.isInfoEnabled()) {
LOG.info("current CLU state is '" + currentCourseState + "' and new CLU state will be '" + newCourseState + "'");
}
return getStateFromNewState(currentCourseState, newCourseState);
}
]]>
* If you passed v2 into this method, it would return v1. *
* If there is only one major discipline this method will return null.
*
* @param majorDisciplineInfo
* @return
*/
private MajorDisciplineInfo findPreviousVersion(MajorDisciplineInfo majorDisciplineInfo) throws Exception {
// Find all previous versions using the version independent indicator
List
* Note that it uses StatementUtil to update the statement tree.
*
* @param majorDisciplineInfo
* @param newState
* @throws Exception
*/
public void updateRequirementsState(MajorDisciplineInfo majorDisciplineInfo, String newState) throws Exception {
]]>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the any property.
*
*
* For example, to add a new item, do as follows: *
* getAny().add(newItem); ** * *
* Objects of the following type(s) are allowed in the list * {@link Object } * {@link Element } * * */ public List
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the content property.
*
*
* For example, to add a new item, do as follows: *
* getContent().add(newItem); ** * *
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link Element }
* {@link String }
* {@link JAXBElement }{@code <}{@link String }{@code >}
*
*
*/
public List