org.kuali.student.lum.program.client.rpc
Interface MajorDisciplineProposalRpcService

All Superinterfaces:
AssemblerRpcService, AuthorizationRpcService, BaseDataOrchestrationRpcService, MajorDisciplineRpcService, com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
MajorDisciplineProposalRpcServlet

@RemoteServiceRelativePath(value="rpcservices/majorDisciplineProposalRpcService")
public interface MajorDisciplineProposalRpcService
extends MajorDisciplineRpcService


Method Summary
 ProgramRequirementInfo createProgramRequirement(ProgramRequirementInfo programRequirementInfo)
           
 StatusInfo deleteProgramRequirement(String programRequirementId)
           
 List<ProgramRequirementInfo> getProgramRequirements(List<String> programRequirementIds)
           
 Boolean isLatestVersion(String versionIndId, Long versionSequenceNumber)
          Is the current version sequence number the latest version.
 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 is called when the user changes the program state using the drop-down box, clicking certain buttons, or creating a new version of the program.
 
Methods inherited from interface org.kuali.student.lum.program.client.rpc.MajorDisciplineRpcService
isProposal
 
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
 

Method Detail

getProgramRequirements

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

storeProgramRequirements

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

createProgramRequirement

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

deleteProgramRequirement

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

updateProgramRequirement

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

isLatestVersion

Boolean isLatestVersion(String versionIndId,
                        Long versionSequenceNumber)
                        throws Exception
Is the current version sequence number the latest version.

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

updateState

DataSaveResult updateState(Data data,
                           String state)
                           throws Exception
This method is called when the user changes the program state using the drop-down box, clicking certain buttons, or creating a new version of the program.

For example, creating a new program or using the drop down box to modify with new version will change the state to DRAFT. Clicking the approve button will change the state to APPROVED, clicking the activate button will change the state to ACTIVE.

Other states will be added in the future.

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


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