org.kuali.student.lum.lu.ui.course.client.requirements
Class CourseRequirementsDataModel

java.lang.Object
  extended by org.kuali.student.lum.lu.ui.course.client.requirements.CourseRequirementsDataModel

public class CourseRequirementsDataModel
extends Object


Nested Class Summary
static class CourseRequirementsDataModel.requirementState
           
 
Field Summary
private  CourseRpcServiceAsync courseRemoteService
           
private static Integer courseReqIDs
           
private  Map<Integer,StatementTreeViewInfo> courseReqInfos
           
private  Map<Integer,CourseRequirementsDataModel.requirementState> courseReqState
           
private  boolean isInitialized
           
private  Map<Integer,StatementTreeViewInfo> origCourseReqInfos
           
private  Map<Integer,CourseRequirementsDataModel.requirementState> origCourseReqState
           
private  Controller parentController
           
private  StatementRpcServiceAsync statementRpcServiceAsync
           
private  List<StatementTypeInfo> stmtTypes
           
 
Constructor Summary
CourseRequirementsDataModel(Controller parentController)
           
 
Method Summary
 void addRule(StatementTreeViewInfo rule)
           
 void deleteRule(Integer internalProgReqID)
           
 List<StatementTreeViewInfo> getCourseReqInfo(String stmtTypeId)
           
 Integer getInternalCourseReqID(StatementTreeViewInfo rule)
           
 StatementTreeViewInfo getRule(Integer internalCourseReqID)
           
static void getStatementTypes(Callback<List<StatementTypeInfo>> onReadyCallback)
           
 StatementTypeInfo getStmtTypeInfo(String stmtTypeId)
           
 String getStmtTypeName(String stmtTypeId)
           
 List<StatementTypeInfo> getStmtTypes()
           
 boolean isDirty()
           
static boolean isEmpty(StatementTreeViewInfo rule)
           
 boolean isInitialized()
           
 boolean isRuleExists(String stmtTypeId)
           
 void markRuleAsDeleted(Integer internalCourseReqID)
           
 void markRuleAsEdited(Integer internalCourseReqID)
           
 void removeEmptyRules()
           
 void retrieveCourseRequirements(String modelId, Callback<Boolean> onReadyCallback)
           
private  void retrieveRules(String courseId, Callback<Boolean> onReadyCallback)
           
 void retrieveStatementTypes(String courseId, Callback<Boolean> onReadyCallback)
           
 void revertRuleChanges()
           
 void setInitialized(boolean initialized)
           
static void stripStatementIds(StatementTreeViewInfo tree)
           
 void updateCourseRequisites(String courseId, String courseState, Callback<List<StatementTreeViewInfo>> callback)
           
 void updateRule(Integer internalProgReqID, StatementTreeViewInfo rule)
           
 StatementTreeViewInfo updateRules(StatementTreeViewInfo newSubRule, Integer internalCourseReqID, boolean isNewRule)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

CourseRequirementsDataModel

public CourseRequirementsDataModel(Controller parentController)
Method Detail

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.