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

All Superinterfaces:
AssemblerRpcService, AuthorizationRpcService, BaseDataOrchestrationRpcService, com.google.gwt.user.client.rpc.RemoteService
All Known Subinterfaces:
CoreProgramRpcService, CredentialProgramRpcService, MajorDisciplineProposalRpcService
All Known Implementing Classes:
CoreProgramRpcServlet, CredentialProgramRpcServlet, MajorDisciplineProposalRpcServlet, MajorDisciplineRpcServlet

@RemoteServiceRelativePath(value="rpcservices/majorDisciplineRpcService")
public interface MajorDisciplineRpcService
extends BaseDataOrchestrationRpcService


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.
 Boolean isProposal(String referenceTypeKey, String referenceId)
           
 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.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
Throws:
Exception

storeProgramRequirements

Map<Integer,ProgramRequirementInfo> storeProgramRequirements(Map<Integer,ProgramRequirementsDataModel.requirementState> states,
                                                             Map<Integer,ProgramRequirementInfo> progReqs)
                                                             throws Exception
Throws:
Exception

createProgramRequirement

ProgramRequirementInfo createProgramRequirement(ProgramRequirementInfo programRequirementInfo)
                                                throws Exception
Throws:
Exception

deleteProgramRequirement

StatusInfo deleteProgramRequirement(String programRequirementId)
                                    throws Exception
Throws:
Exception

updateProgramRequirement

ProgramRequirementInfo updateProgramRequirement(ProgramRequirementInfo programRequirementInfo)
                                                throws Exception
Throws:
Exception

isLatestVersion

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

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.

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

isProposal

Boolean isProposal(String referenceTypeKey,
                   String referenceId)


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