1 | |
package org.kuali.student.lum.program.client.major.proposal; |
2 | |
|
3 | |
import org.kuali.student.lum.common.client.configuration.ConfigurationManager; |
4 | |
import org.kuali.student.lum.program.client.AbstractProgramConfigurer; |
5 | |
import org.kuali.student.lum.program.client.major.edit.CatalogInformationEditConfiguration; |
6 | |
import org.kuali.student.lum.program.client.major.edit.CollaboratorsEditConfiguration; |
7 | |
import org.kuali.student.lum.program.client.major.edit.LearningObjectivesEditConfiguration; |
8 | |
import org.kuali.student.lum.program.client.major.edit.ManagingBodiesEditConfiguration; |
9 | |
import org.kuali.student.lum.program.client.major.edit.ProgramRequirementsEditConfiguration; |
10 | |
import org.kuali.student.lum.program.client.major.edit.SpecializationsEditConfiguration; |
11 | |
import org.kuali.student.lum.program.client.major.edit.SupportingDocsEditConfiguration; |
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
public class MajorProposalConfigurer extends AbstractProgramConfigurer { |
17 | |
|
18 | |
protected ConfigurationManager proposalSummarySectionConfigurer; |
19 | |
|
20 | 0 | public MajorProposalConfigurer() { |
21 | |
|
22 | 0 | programSectionConfigManager = new ConfigurationManager(); |
23 | 0 | programSectionConfigManager.registerConfiguration(new MajorProposalInformationEditConfiguration(this)); |
24 | 0 | programSectionConfigManager.registerConfiguration(new MajorProposalChangeImpactEditConfiguration(this)); |
25 | 0 | programSectionConfigManager.registerConfiguration(new MajorProposalKeyProgramInfoEditConfiguration(this)); |
26 | 0 | programSectionConfigManager.registerConfiguration(new ManagingBodiesEditConfiguration(this)); |
27 | 0 | programSectionConfigManager.registerConfiguration(new SpecializationsEditConfiguration(this)); |
28 | 0 | programSectionConfigManager.registerConfiguration(new CatalogInformationEditConfiguration(this)); |
29 | 0 | programSectionConfigManager.registerConfiguration(new ProgramRequirementsEditConfiguration(this)); |
30 | 0 | programSectionConfigManager.registerConfiguration(new LearningObjectivesEditConfiguration(this)); |
31 | 0 | programSectionConfigManager.registerConfiguration(new CollaboratorsEditConfiguration(this)); |
32 | 0 | programSectionConfigManager.registerConfiguration(new SupportingDocsEditConfiguration(this)); |
33 | 0 | programSectionConfigManager.registerConfiguration(new MajorProposalSummaryConfiguration(this, true)); |
34 | |
|
35 | |
|
36 | 0 | proposalSummarySectionConfigurer = new ConfigurationManager(); |
37 | 0 | proposalSummarySectionConfigurer.registerConfiguration(new MajorProposalSummaryConfiguration(this, false)); |
38 | 0 | } |
39 | |
|
40 | |
@Override |
41 | |
public ConfigurationManager getProgramSectionConfigManager() { |
42 | 0 | if (modelDefinition.getMetadata().isCanEdit()) { |
43 | 0 | return programSectionConfigManager; |
44 | |
} else { |
45 | 0 | return proposalSummarySectionConfigurer; |
46 | |
} |
47 | |
} |
48 | |
|
49 | |
|
50 | |
|
51 | |
} |