View Javadoc

1   /**
2    * Copyright 2012 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   *
15   */
16  package org.kuali.student.enrollment.class2.acal.service;
17  
18  import org.kuali.student.enrollment.acal.dto.AcademicCalendarInfo;
19  import org.kuali.student.enrollment.acal.dto.TermInfo;
20  import org.kuali.student.enrollment.acal.service.AcademicCalendarService;
21  import org.kuali.student.enrollment.class2.acal.dto.AcademicTermWrapper;
22  import org.kuali.student.enrollment.class2.acal.dto.AcalEventWrapper;
23  import org.kuali.student.enrollment.class2.acal.dto.KeyDatesGroupWrapper;
24  import org.kuali.student.enrollment.class2.acal.form.AcademicCalendarForm;
25  import org.kuali.student.enrollment.uif.service.KSViewHelperService;
26  
27  import java.util.List;
28  
29  /**
30   * @author Kuali Student Team
31   */
32  public interface AcademicCalendarViewHelperService extends KSViewHelperService {
33  
34      public void populateAcademicCalendar(String acalId, AcademicCalendarForm acalForm);
35  
36      public AcademicCalendarInfo createAcademicCalendar(AcademicCalendarForm acalForm) throws Exception;
37  
38      public AcademicCalendarInfo getLatestAcademicCalendar() throws Exception;
39  
40      public void copyToCreateAcademicCalendar(AcademicCalendarForm form);
41  
42      public List<AcalEventWrapper> populateEventWrappers(String acalId) throws Exception;
43  
44      public AcalEventWrapper createEvent(String acalId, AcalEventWrapper event) throws Exception;
45  
46      public AcalEventWrapper updateEvent(String eventId, AcalEventWrapper event) throws Exception;
47  
48      public void saveTerm(AcademicTermWrapper termWrapper, String acalId,boolean isOfficial,boolean calculateInstrDays) throws Exception;
49  
50      public void populateInstructionalDays(AcademicTermWrapper termWrapper);
51  
52      public List<AcademicTermWrapper> populateTermWrappers(String acalId, boolean isCopy,boolean calculateInstrDays);
53  
54      public void validateAcademicCalendar(AcademicCalendarForm acalForm);
55  
56      public void validateTerm(List<AcademicTermWrapper> termWrapper,int termToValidateIndex,AcademicCalendarInfo acal);
57  
58      public void populateAcademicCalendarDefaults(AcademicCalendarForm acalForm);
59  
60      public AcademicTermWrapper populateTermWrapper(TermInfo termInfo, boolean isCopy,boolean calculateInstrDays)throws Exception;
61  
62  }