public class StatementUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NEW_REQ_COMP_ID
WARNING: this constant is also declared in ProgramRequirementsSummaryView.
|
static String |
NEW_STMT_TREE_ID
WARNING: this constant is also declared in ProgramRequirementsSummaryView.
|
Constructor and Description |
---|
StatementUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
stripStatementIds(StatementTreeViewInfo tree)
This method strips the statement ids from the statement tree prior to saving
the tree, which allows the web service to generate new ids from the database.
|
static void |
updateStatementTreeViewInfoState(String state,
StatementTreeViewInfo statementTreeViewInfo)
This method will recursively set the state of all statements in the tree.
|
public static final String NEW_STMT_TREE_ID
public static final String NEW_REQ_COMP_ID
public StatementUtil()
public static void updateStatementTreeViewInfoState(String state, StatementTreeViewInfo statementTreeViewInfo)
WARNING: you must call the statement service in order to update statements.
state
- is the state we should set all statements in the tree tostatementTreeViewInfo
- the tree of statementsException
public static void stripStatementIds(StatementTreeViewInfo tree)
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.
tree
- Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.