|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.lum.common.server.StatementUtil
public class StatementUtil
This class contains common utility methods used with statements.
Field Summary | |
---|---|
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 Summary | |
---|---|
StatementUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NEW_STMT_TREE_ID
public static final String NEW_REQ_COMP_ID
Constructor Detail |
---|
public StatementUtil()
Method Detail |
---|
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 statements
Exception
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |