org.kuali.student.lum.program.server
Class MajorDisciplineProposalRpcServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by org.kuali.student.common.ui.server.gwt.DataGwtServlet
                      extended by org.kuali.student.lum.program.server.MajorDisciplineProposalRpcServlet
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, Servlet, ServletConfig, AssemblerRpcService, AuthorizationRpcService, BaseDataOrchestrationRpcService, MajorDisciplineProposalRpcService, MajorDisciplineRpcService

public class MajorDisciplineProposalRpcServlet
extends DataGwtServlet
implements MajorDisciplineProposalRpcService

See Also:
Serialized Form

Field Summary
static String PREVIOUS_VERSION_INFO
           
protected  StateChangeService stateChangeService
           
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
MajorDisciplineProposalRpcServlet()
           
 
Method Summary
 ProgramRequirementInfo createProgramRequirement(ProgramRequirementInfo programRequirementInfo)
           
 StatusInfo deleteProgramRequirement(String programRequirementId)
           
 List<ProgramRequirementInfo> getProgramRequirements(List<String> programRequirementIds)
           
 ProposalService getProposalService()
          Proposal service is injected by spring in the lum-gwt-context.xml file
 Boolean isLatestVersion(String versionIndId, Long versionSequenceNumber)
          Is the current version sequence number the latest version.
 Boolean isProposal(String referenceTypeKey, String referenceId)
          This method will check to see if an object with the given reference ID is a proposal.
 void setCluService(CluService cluService)
           
 void setProgramService(ProgramService programService)
           
 void setProposalService(ProposalService proposalService)
           
 void setStateChangeService(StateChangeService stateChangeService)
           
 void setStatementService(StatementService statementService)
           
 Map<Integer,ProgramRequirementInfo> storeProgramRequirements(Map<Integer,ProgramRequirementsDataModel.requirementState> states, Map<Integer,ProgramRequirementInfo> progReqs)
           
 ProgramRequirementInfo updateProgramRequirement(ProgramRequirementInfo programRequirementInfo)
           
 DataSaveResult updateState(Data data, String state)
          This method will update the state of a major discipline.
 
Methods inherited from class org.kuali.student.common.ui.server.gwt.DataGwtServlet
getData, getDataService, getMetadata, isAuthorized, saveData, setDataService, validate
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.student.common.ui.client.service.AssemblerRpcService
getData, getMetadata, saveData, validate
 
Methods inherited from interface org.kuali.student.common.ui.client.service.AuthorizationRpcService
isAuthorized
 

Field Detail

PREVIOUS_VERSION_INFO

public static final String PREVIOUS_VERSION_INFO
See Also:
Constant Field Values

stateChangeService

protected StateChangeService stateChangeService
Constructor Detail

MajorDisciplineProposalRpcServlet

public MajorDisciplineProposalRpcServlet()
Method Detail

updateState

public DataSaveResult updateState(Data data,
                                  String state)
                           throws Exception
This method will update the state of a major discipline.

Specified by:
updateState in interface MajorDisciplineProposalRpcService
Specified by:
updateState in interface MajorDisciplineRpcService
Parameters:
data - the XML used to pass data between controller to view
state - the state we should update the program to
Returns:
the result of the save
Throws:
Exception
See Also:
org.kuali.student.lum.program.client.rpc.MajorDisciplineRpcService#updateStatus(org.kuali.student.common.assembly.data.Data, java.lang.String)

getProgramRequirements

public List<ProgramRequirementInfo> getProgramRequirements(List<String> programRequirementIds)
                                                    throws Exception
Specified by:
getProgramRequirements in interface MajorDisciplineProposalRpcService
Specified by:
getProgramRequirements in interface MajorDisciplineRpcService
Throws:
Exception

storeProgramRequirements

public Map<Integer,ProgramRequirementInfo> storeProgramRequirements(Map<Integer,ProgramRequirementsDataModel.requirementState> states,
                                                                    Map<Integer,ProgramRequirementInfo> progReqs)
                                                             throws Exception
Specified by:
storeProgramRequirements in interface MajorDisciplineProposalRpcService
Specified by:
storeProgramRequirements in interface MajorDisciplineRpcService
Throws:
Exception

createProgramRequirement

public ProgramRequirementInfo createProgramRequirement(ProgramRequirementInfo programRequirementInfo)
                                                throws Exception
Specified by:
createProgramRequirement in interface MajorDisciplineProposalRpcService
Specified by:
createProgramRequirement in interface MajorDisciplineRpcService
Throws:
Exception

deleteProgramRequirement

public StatusInfo deleteProgramRequirement(String programRequirementId)
                                    throws Exception
Specified by:
deleteProgramRequirement in interface MajorDisciplineProposalRpcService
Specified by:
deleteProgramRequirement in interface MajorDisciplineRpcService
Throws:
Exception

updateProgramRequirement

public ProgramRequirementInfo updateProgramRequirement(ProgramRequirementInfo programRequirementInfo)
                                                throws Exception
Specified by:
updateProgramRequirement in interface MajorDisciplineProposalRpcService
Specified by:
updateProgramRequirement in interface MajorDisciplineRpcService
Throws:
Exception

isLatestVersion

public Boolean isLatestVersion(String versionIndId,
                               Long versionSequenceNumber)
                        throws Exception
Description copied from interface: MajorDisciplineProposalRpcService
Is the current version sequence number the latest version.

Specified by:
isLatestVersion in interface MajorDisciplineProposalRpcService
Specified by:
isLatestVersion in interface MajorDisciplineRpcService
Parameters:
versionIndId - The version independent id of program
versionSequenceNumber - The sequence number to check.
Returns:
Throws:
Exception

setProgramService

public void setProgramService(ProgramService programService)

setStatementService

public void setStatementService(StatementService statementService)

setStateChangeService

public void setStateChangeService(StateChangeService stateChangeService)

isProposal

public Boolean isProposal(String referenceTypeKey,
                          String referenceId)
This method will check to see if an object with the given reference ID is a proposal.

At the moment, it is used by the UI to decide if we should hide the action box when opening a draft proposal.

Specified by:
isProposal in interface MajorDisciplineRpcService
See Also:
MajorDisciplineRpcService.isProposal(java.lang.String, java.lang.String)

getProposalService

public ProposalService getProposalService()
Proposal service is injected by spring in the lum-gwt-context.xml file

Returns:

setProposalService

public void setProposalService(ProposalService proposalService)

setCluService

public void setCluService(CluService cluService)


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