org.kuali.student.lum.lu.ui.course.client.requirements
Class CourseRequirementsDataModel
java.lang.Object
org.kuali.student.lum.lu.ui.course.client.requirements.CourseRequirementsDataModel
public class CourseRequirementsDataModel
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
courseRemoteService
private final CourseRpcServiceAsync courseRemoteService
statementRpcServiceAsync
private final StatementRpcServiceAsync statementRpcServiceAsync
parentController
private Controller parentController
courseReqInfos
private Map<Integer,StatementTreeViewInfo> courseReqInfos
origCourseReqInfos
private Map<Integer,StatementTreeViewInfo> origCourseReqInfos
courseReqState
private Map<Integer,CourseRequirementsDataModel.requirementState> courseReqState
origCourseReqState
private Map<Integer,CourseRequirementsDataModel.requirementState> origCourseReqState
stmtTypes
private List<StatementTypeInfo> stmtTypes
isInitialized
private boolean isInitialized
courseReqIDs
private static Integer courseReqIDs
CourseRequirementsDataModel
public CourseRequirementsDataModel(Controller parentController)
retrieveCourseRequirements
public void retrieveCourseRequirements(String modelId,
Callback<Boolean> onReadyCallback)
retrieveStatementTypes
public void retrieveStatementTypes(String courseId,
Callback<Boolean> onReadyCallback)
retrieveRules
private void retrieveRules(String courseId,
Callback<Boolean> onReadyCallback)
updateRules
public StatementTreeViewInfo updateRules(StatementTreeViewInfo newSubRule,
Integer internalCourseReqID,
boolean isNewRule)
updateCourseRequisites
public void updateCourseRequisites(String courseId,
String courseState,
Callback<List<StatementTreeViewInfo>> callback)
stripStatementIds
public static void stripStatementIds(StatementTreeViewInfo tree)
getCourseReqInfo
public List<StatementTreeViewInfo> getCourseReqInfo(String stmtTypeId)
getInternalCourseReqID
public Integer getInternalCourseReqID(StatementTreeViewInfo rule)
getStmtTypeInfo
public StatementTypeInfo getStmtTypeInfo(String stmtTypeId)
deleteRule
public void deleteRule(Integer internalProgReqID)
addRule
public void addRule(StatementTreeViewInfo rule)
updateRule
public void updateRule(Integer internalProgReqID,
StatementTreeViewInfo rule)
markRuleAsDeleted
public void markRuleAsDeleted(Integer internalCourseReqID)
markRuleAsEdited
public void markRuleAsEdited(Integer internalCourseReqID)
getStmtTypeName
public String getStmtTypeName(String stmtTypeId)
isRuleExists
public boolean isRuleExists(String stmtTypeId)
removeEmptyRules
public void removeEmptyRules()
isDirty
public boolean isDirty()
revertRuleChanges
public void revertRuleChanges()
getRule
public StatementTreeViewInfo getRule(Integer internalCourseReqID)
getStatementTypes
public static void getStatementTypes(Callback<List<StatementTypeInfo>> onReadyCallback)
isEmpty
public static boolean isEmpty(StatementTreeViewInfo rule)
isInitialized
public boolean isInitialized()
setInitialized
public void setInitialized(boolean initialized)
getStmtTypes
public List<StatementTypeInfo> getStmtTypes()
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.