org.kuali.student.lum.program.client.requirements
Class ProgramRequirementsDataModel

java.lang.Object
  extended by org.kuali.student.lum.program.client.requirements.ProgramRequirementsDataModel

public class ProgramRequirementsDataModel
extends Object


Nested Class Summary
static class ProgramRequirementsDataModel.requirementState
           
 
Constructor Summary
ProgramRequirementsDataModel(com.google.gwt.event.shared.HandlerManager eventBus)
           
 
Method Summary
 void addRule(ProgramRequirementInfo programReqInfo)
           
 void deleteRule(Integer internalProgReqID)
           
 Integer getInternalProgReqID(ProgramRequirementInfo progReqInfo)
           
 ProgramRequirementInfo getProgReqByInternalId(Integer internalProgReqID)
           
 List<ProgramRequirementInfo> getProgReqInfo(String stmtTypeId)
           
 StatementTypeInfo getStmtTypeInfo(String stmtTypeId)
           
 String getStmtTypeName(String stmtTypeId)
           
 List<StatementTypeInfo> getStmtTypes()
           
 boolean isDirty()
           
 boolean isEmptyRule(StatementTreeViewInfo tree)
           
 boolean isInitialized()
           
 boolean isRuleExists(String stmtTypeId)
           
 void markRuleAsDeleted(Integer internalProgReqID)
           
 void markRuleAsEdited(Integer internalProgReqID)
           
 void retrieveProgramRequirements(Controller parentController, String modelId, Callback<Boolean> onReadyCallback)
           
 void revertRuleChanges()
           
 void setInitialized(boolean initialized)
           
protected  void setRuleState(ProgramRequirementInfo programReqInfo)
          Set the state of the program requirement to state of the program.
 void setupRules(Controller parentController, String modelId, Callback<Boolean> onReadyCallback)
           
 void updateProgramEntities(Callback<List<ProgramRequirementInfo>> callback)
           
 void updateRule(Integer internalProgReqID, ProgramRequirementInfo programReqInfo)
           
 ProgramRequirementInfo updateRules(StatementTreeViewInfo newSubRule, Integer internalProgReqID, boolean isNewRule)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgramRequirementsDataModel

public ProgramRequirementsDataModel(com.google.gwt.event.shared.HandlerManager eventBus)
Method Detail

setupRules

public void setupRules(Controller parentController,
                       String modelId,
                       Callback<Boolean> onReadyCallback)

retrieveProgramRequirements

public void retrieveProgramRequirements(Controller parentController,
                                        String modelId,
                                        Callback<Boolean> onReadyCallback)

updateRules

public ProgramRequirementInfo updateRules(StatementTreeViewInfo newSubRule,
                                          Integer internalProgReqID,
                                          boolean isNewRule)

updateProgramEntities

public void updateProgramEntities(Callback<List<ProgramRequirementInfo>> callback)

getProgReqInfo

public List<ProgramRequirementInfo> getProgReqInfo(String stmtTypeId)

getInternalProgReqID

public Integer getInternalProgReqID(ProgramRequirementInfo progReqInfo)

getStmtTypeInfo

public StatementTypeInfo getStmtTypeInfo(String stmtTypeId)

deleteRule

public void deleteRule(Integer internalProgReqID)

addRule

public void addRule(ProgramRequirementInfo programReqInfo)

updateRule

public void updateRule(Integer internalProgReqID,
                       ProgramRequirementInfo programReqInfo)

setRuleState

protected void setRuleState(ProgramRequirementInfo programReqInfo)
Set the state of the program requirement to state of the program.

Parameters:
programReqInfo -

markRuleAsDeleted

public void markRuleAsDeleted(Integer internalProgReqID)

markRuleAsEdited

public void markRuleAsEdited(Integer internalProgReqID)

getStmtTypeName

public String getStmtTypeName(String stmtTypeId)

isRuleExists

public boolean isRuleExists(String stmtTypeId)

isDirty

public boolean isDirty()

revertRuleChanges

public void revertRuleChanges()

getProgReqByInternalId

public ProgramRequirementInfo getProgReqByInternalId(Integer internalProgReqID)

isEmptyRule

public boolean isEmptyRule(StatementTreeViewInfo tree)

isInitialized

public boolean isInitialized()

setInitialized

public void setInitialized(boolean initialized)

getStmtTypes

public List<StatementTypeInfo> getStmtTypes()


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.